Live data from Hacker News

How to be a better programmer in 6 minutes

secretgeek.net

1–10 of 48 posts

Re: How to be a better programmer in 6 minutes

#3
One thing that really helped me when I code is to switch to a real "coding font".

Wile the default monospace font on OSX (monaco) is fine, I find that my eyes adjusts better to the "proggy clean" fonts (avaiable for free here: http://www.proggyfonts.com/ ).

With good coding fonts, you are able fit more into the screen, distinguish between 1 and l, 0 and o more easily..etc. Here's a discussion on programming fonts a while back on HN (http://news.ycombinator.com/item?id=255257)

Re: How to be a better programmer in 6 minutes

#4
Who can do numbers 3, 5 and 8 in six minutes? I guess they will make you a Better Programmer (tm), but will consume slightly more time. Or does the article claim to make me a Better Programmer by just letting me know how to become a Better Programmer?

On the positive side: I like the idea of automatic uglification of "bad" code.

Re: How to be a better programmer in 6 minutes

#6
post #2

All very good tips. I prefer a smaller font when hacking because I like to be able to scan more of the codebase, but I can see how it could force a person to tighten up the scope of their methods/functions.

One good font-related tip: Make comments stand out (dark, bold) rather than fade into the background. Forces me to write better comments, and prevents comment from getting out of sync with the code.

Re: How to be a better programmer in 6 minutes

#8
post #2

All very good tips. I prefer a smaller font when hacking because I like to be able to scan more of the codebase, but I can see how it could force a person to tighten up the scope of their methods/functions.

An alternative to using a larger font is to use a smaller screen. I've been having a blast writing little stuff on my netbook in bed.

Re: How to be a better programmer in 6 minutes

#10
I'm supposed to master an obscure language element, read through the source code of an open source project, refactor a method, run a static analysis tool, and do all the rest--all within six minutes?

I do like the idea for making hard-coded strings stand out, however.

Post reply on HN