Live data from Hacker News

Ask HN: How do you get better at coding?

news.ycombinator.com

1–10 of 73 posts

Re: Ask HN: How do you get better at coding?

#5
I write code on personal projects every day. Sometimes when time is an issue it's just a single line bug fix or an update to some documentation, but regardless I get a little green square on my Github graph every day. It has two important effects. Firstly, it means I have to keep coming up with new things to write code for to stop it getting boring, so I explore a new things a lot. Secondly, it's made me think about how I can stop wasting time when I code, and how I can use my tools better. I've been doing it for about 200 days now, and I've definitely improved already (this is after being a developer for 20 years so far).

Re: Ask HN: How do you get better at coding?

#9
I get better at coding by coding.

No, really. You can read all the books, blog posts, open source code samples you want, but nothing will substitute writing code.

I maintain a handful of side projects as well as write code daily for my job. Plus, I love it. Also, my side projects usually encompass something I have no idea how to do, which quickly elevates my skill level. I love learning, so it works for me.

Re: Ask HN: How do you get better at coding?

#10
I believe a large part of getting better at coding is reading about good coding practices and simply reading other developers' code, regardless of its quality. For example when I was in junior college a programmer-on-duty recommended I read Kernighan and Plauger's "Elements of Programming Style." Reading this style guide had an immense impact on me. Following that book, I discovered Kernighan and Plauger's "Software Tools" which illustrated important aspects of the UNIX philosophy (and good design principles) such as "Write programs that do one thing well" and "write programs that work together."
Post reply on HN