KBD

Keith Devens .com

Saturday, March 20, 2010 Flag waving
ALL YOUR BASE ARE BELONG TO US. – Zero Wing
← 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)
:

March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



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

Recent comments XML

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.108s.

(Used 8 db queries)