loading words...

May 06, 2019 10:44:18

Anyone can code

by @craigpetterson PATRON | 212 words | 226🔥 | 227💌

Craig Petterson

Current day streak: 226🔥
Total posts: 227💌
Total words: 60595 (242 pages 📄)

We had a motto at work; if you can say it in English, we can do it in code. I've not heard it in a while and I don't know how true that is really, but there is a simple truth to it. 

If you can say or write coherent sentences, you can code. At lot of a developers job is putting these sentence in a new language, it just happens that that language is a code syntax.

The equivalent of coding is learning a new language. That's exactly what it is really.

This is another reason why I love Ruby. The basics are simple, the syntax is English.

For showing different colours on my habits page I use a simple condition:

English:

if value is greater than 0, then show green span, else show red span.

Ruby:

```
if value > 0
  green_span
else
  red_span
end

```

There are many ways to learn how to code, but it doesn't have to be complicated. There are great articles, tutorials and general advice out there when learning to code.

I've personally been a big fan of Steph Smith's approach recently. She has some great articles on her blog.

Almost everything can be picked up from Google and/or Stack Overflow. That's basically a developers life.


  • 1

    @craigpetterson lol remind me of this product https://code2flow.com

    Knight avatar Knight | May 08, 2019 07:09:19
  • 1

    @craigpetterson great and simply put. I love discovering new coding blogs as well. Thank you for this :)

    Sara Silva avatar Sara Silva | May 07, 2019 09:17:05
    • 1

      @sarasilva You're welcome! Hopefully, you mean mine and not Steph's (quietly sobs)

      Craig Petterson avatar Craig Petterson | May 07, 2019 16:01:18
    • 1

      @craigpetterson can I say both? 😁

      Sara Silva avatar Sara Silva | May 08, 2019 12:59:46
  • 1

    @craigpetterson knock knock Hmmm shhhh #Teamstreak members. looks through peephole I think someone wants to come in. Yes, yes I know he can't come in until tomorrow. But let's get ready for him.

    Brandon Wilson avatar Brandon Wilson | May 06, 2019 07:44:02
contact: email - twitter / Terms / Privacy