Learning to code is usually fun, but not always. It can be confusing and frustrating and often times boring. SitePoint offers a little mind trick to get around this: treat a new concept like you're playing with a shiny new thing.
Photo by kjarrett
That's how kids are learning to code — through fun and games — and how many self-taught programmers learn as well — experimenting and trying new things out.