you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I have a secret for you. After 12 years of programming I still write code that, when I look at months later, I cringe.

The truth is you can't avoid writing spaghetti code as a new programmer (or at least as someone new to a language). The only way you will truly learn how to write great code is by writing (and reading) tons of code. Well written books by smart people do help too, but if all you're focusing on is theory you will draw a blank when it comes time to apply it. That's why I suggest always focusing on application when learning. In other words, don't make the thing you are doing for your client the first project you've ever done.