Ask HN: What habits made you a better programmer?
21–30 of 103 posts
Re: Ask HN: What habits made you a better programmer?
#222. Writing down every question that occurs to me about the technology I am working with, at any point, specifically the behaviour of libraries and nuances of programming languages: I am not an expert in any programming language. Then chasing those questions until they are resolved.
3. When stuck with a slippery bug, attempting to reconstruct the bug in a toy program. If reconstructed, fixing it is easier. If not, I know it's not where I thought it was. Sometimes I never make it as far as actually writing the toy program; the intent is enough.
Re: Ask HN: What habits made you a better programmer?
#23* turning off Twitter & IM
* closing email and Google Reader
* headphones headphones headphones
* big ol' notepad for notes and doodles
Kill as many distractions as possible, make the ability to create & think ridiculously easy and just keep on truckin until you have something to test.
Re: Ask HN: What habits made you a better programmer?
#24Re: Ask HN: What habits made you a better programmer?
#25Noticing pain points. It takes time to develop a taste for good solutions. But when you modify or write code, and you say, "this is harder than it should be," this is a code smell and there is a better way to globally solve the problem. Thinking first, writing later. When practicing for the ACM programming competitions in college, I discovered that when writing code before understanding the solution, I eventually nee…
Thinking first, writing later .... I discovered that when writing code before understanding the solution, I eventually needed to start over.
I think this may depend on how and when you think most effectively. Having the discipline to be productive in pure thought is impossibly difficult to quantify. At times I feel productive working that way, but other times just writing code helps me think through things faster. I type fast so it's not a big burden to type a lot of stuff even if I have to delete it.
Of course, sometimes just drawing things out on paper helps as well. I seem to recall Dijkstra making some criticisms of that, but for me it is often highly effective.
Re: Ask HN: What habits made you a better programmer?
#26Re: Ask HN: What habits made you a better programmer?
#272) Learning how to communicate effectively. Keeping interested parties in the loop at all times. Not hiding mistakes or difficulties, or waiting until the last minute to let a PM know that a task is going to be late.
3) Not falling into the 'stupid user' trap. Your users aren't stupid. They know their business better than you do. You need to understand and accomodate their workflow, not the other way around.
Re: Ask HN: What habits made you a better programmer?
#28Never just shrugging some problem off with "boy that's weird." I usually can't let something go until I understand what caused an issue. It eventually became unrealistic to chase down every oddity, but I've done enough of them to learn a lot about different pitfalls.
Re: Ask HN: What habits made you a better programmer?
#29This has helped immensely when I've gone back months later and tried to figure out what I was thinking; now, it actually makes sense!
Re: Ask HN: What habits made you a better programmer?
#30Knowing when to stop. When you reach a seemingly impassable problem, talking it over with other people and then sleeping on it will make everything clearer come morning. If you work constantly you are a worse programmer than those who know to take breaks. These are the people who are thinking about what they're doing.