KBD

Keith Devens .com

Sunday, September 7, 2008 Flag waving
Darwin made it possible to be an intellectually-fulfilled atheist. – Richard Dawkins (The Blind Watchmaker)

Archive: August 01, 2003

← July 31, 2003August 02, 2003 →

Daily link icon Friday, August 1, 2003

And all my test cases pass

Woo frickin hoo. See, the more you can teach yourself to like debugging, the more quickly you can get to this point.

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.

← July 31, 2003August 02, 2003 →
September 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930 



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

Recent comments XML

new⇒I hate Norton Antivirus

Long long live AVG I love you!...

kevin sands: Sep 6, 7:31pm

I hate ASP.NET

CF, why pick that piece of trash?​Cold Confusion. Is it finally​really a OO...

ColdConfusion: Sep 5, 8:36pm

Maps of Iraq

This is for Linda, I will be​visiting that site some time in the​near futur...

Bob: Sep 5, 1:20pm

Girls, please don't get breast implants

Well alright I just read my above​comment and I wanted to add​this...I shou...

76.66.140.8: Sep 4, 7:31pm

Spider solitaire

I don't think the question was​necessarily if there are unbeatable​games.  ...

Jared: Sep 4, 12:44pm

Convert Pantone Colors to RGB and Hex - Color Conversion Chart

The colors on those website don't​seem to relate to the pantone data​we hav...

blah: Sep 3, 10:12am

Generated in about 0.049s.

(Used 7 db queries)

mobile phone