KBD

Keith Devens .com

Thursday, August 28, 2008 Flag waving
And if you go too far up, abstraction-wise, you run out of oxygen. Sometimes smart thinkers just don't... – Joel Spolsky
← Yet another Microsoft Security HoleAnd all my test cases pass →

Daily link icon Friday, August 1, 2003

Advice to programmers

If I could give one piece of advice to any budding programmer, or any seasoned programmer who's maybe in a slump, it would be this: Learn to like debugging. You're guaranteed to spend a whole lot of your life doing it, and it's really as much of a problem solving task as the original programming is. Obviously it's not as fun as getting your features done, and we should do everything possible in improving our craft so we can more often get things right on the first try. But really, you have to teach yourself to like debugging.

That's why I liked so much what Paul Graham had to say:

I like debugging: it's the one time that hacking is as straightforward as people think it is. You have a totally constrained problem, and all you have to do is solve it. Your program is supposed to do x. Instead it does y. Where does it go wrong? You know you're going to win in the end. It's as relaxing as painting a wall.

It helps if most of your bugs are "Oh, that's interesting, I didn't think of that", or "Oh neat, that was an interesting side effect I didn't expect", rather than "Damnit, I can't believe I forgot to do that." Hopefully as you become a better programmer you have fewer of those, but either way, as a programmer, probably your best bet for keeping yourself happy is to teach yourself to adopt Graham's attitude.

← Yet another Microsoft Security HoleAnd all my test cases pass →

Comments XML gif

Mean Dean (http://www.healyourchurchwebsite.com) wrote:

Debugging is okay, provided the debugging tools are okay. I mean like MSFT or hate them, the debugging features of .NET make the task much easier than some old school practices I've endured since 1983.

∴ Mean Dean | 1-Aug-2003 10:04am est | http://www.healyourchurchwebsite.com | #2605

Glenn Slaven (http://glenn.bluemountains.net.au) wrote:

I agree Dean. While I much prefer some of the open source languages, you can't beat the step-through-execution of the VB(6/.NET) IDE combined with the ability to view the immediate contents of all variables and objects.

This, however, doesn't stop me from believing that ASP is just plain wrong. (Although I have been told that ASP.net does rock, I've not had a chance to test it yet)

∴ Glenn Slaven | 1-Aug-2003 8:59pm est | http://glenn.bluemountains.net.au | #2611

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

August 2008
SunMonTueWedThuFriSat
 12
3456789
10111213141516
17181920212223
24252627282930
31 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 1 posts

Recent comments XML

Girls, please don't get breast implants

Wow, After all this time, the​comments on this page continue to​grow. It wa...

Ajeet: Aug 25, 2:36am

Generated in about 0.178s.

(Used 8 db queries)

mobile phone