Code Complete 2. Good, but not a silver bullet

Oh goodie!, Code Complete 2 is on the horizon(via Shawn).

While many consider this book to be the "bible of coding", I can't help but feel overwhelmed by such a response. I read it, it is definitely good and has great information and advice, but to some extent I found it rather dry. The fact that I only knew VB when I read it might have helped this situation but, forget that for now. Say a new coder comes to my company. I slap them with this thickie and then what? can I actually expect a dev to read all this (assuming most everything there is news to them) and :

  • Remember everything?
  • Change all their habits`?
  • See the light?

Hardly. Changing habits (even new ones) comes only in one way that I know of: working on it. Not only that, to change a dev's ways one would have to mentor that dev into "seeing the light" and it would still be a slow,hard process for everyone involved. Like it or not, The amount of skill that a senior developer has in writing clean code, the stuff they take for granted as standard writing style, readable code, unit testing, and all those things which we praise day in and day out, that is a friggin' lot to learn for any person. And it takes a lot of time. I don't see myself ,during my junior developer days, getting to a point where I need to stop and ask myself "Wait, how would a loop be written using Code Complete way?". Not because I wouldn't want to, but because I would need someone to remind me to do that. Someone more experienced than I am, because I will not be able to see my mistakes.

Anyway, Code Complete is still a great book and , looking at the manuscript for the next version, there's a lot that looks very useful. I especially liked the parts about testing and developer testing(Test Driven Development)

Published Wednesday, January 14, 2004 10:45 PM by RoyOsherove
Filed under:

Comments

Wednesday, January 14, 2004 3:48 PM by Scott Galloway

# re: Code Complete 2. Good, but not a silver bullet

Roy, I agree, this really isn't ideal for junior developers - if you're a relatively experienced developer though, it can prompt you away from slipping into bad habits. I try to reread Code Complete about once a year - and I have to say, I believe my development style is better for it...
Wednesday, January 14, 2004 4:45 PM by Les Matheson

# re: Code Complete 2. Good, but not a silver bullet

Glad to hear you pointing out that Code Complete isn't the silver bullet -- I've fought so many supposed silver-bullets over 20 years that I've forgotten what half of them were. One day I realized that there is a silver bullet indeed! Its the realization that software is complex, requires much skill, experience, etc., and that there is nothing which shortcuts that fact (although there are many things which help). Once that insight sinks in, people start behaving in sane ways.
Wednesday, January 14, 2004 8:04 PM by SBC

# re: Code Complete 2. Good, but not a silver bullet

I still have my first edition of CC from a decade ago and still learn something from it !
About the 'silver bullet' - wasn't there a famous essay that stated there is *NO* silver bullet in software engineering? (I think it was Cox or Brooks..)
Thursday, January 15, 2004 12:35 AM by Leon Bambrick

# re: Code Complete 2. Good, but not a silver bullet

hi Mister Oshergrove - how are you?

i was reading your blog entry - and i thought 'code complete.. where have i heard of that lately?' then i realised - oh - that's the book that i am resting my elbow on at this very minute!

i've been flicking through it lately - all very wise and informative - but like you say - it's not something you're ready for until you've experienced a few disastrous projects first hand.

the 1993 edition i've got could do with some serious updating. as some of the young whipper snappers around the office would say: "it's soooo Old Skool".

cheers
Thursday, January 15, 2004 4:09 AM by Roy Osherove

# re: Code Complete 2. Good, but not a silver bullet

Heh. Old school. I like that :)
Friday, January 16, 2004 3:10 AM by SA

# re: Code Complete 2. Good, but not a silver bullet

Your blog entry surprised me about code complete. It is really not as dry as people think. It is one of the few books I refer often for testing and developement. One more book in this line is "The practice of Programming" by Kernighan and Pike.
Yours' is one of the few blogs I read daily. Keep up the good work

Thanks
Friday, January 16, 2004 4:43 AM by Paul Bartlett

# re: Code Complete 2. Good, but not a silver bullet

Though many people know Code Complete, Rapid Development (by the same author) is often overlooked. Personally I found it even more useful, I guess from the point of view of a senior developer trying to figure out how project management works (or doesn't), and how to improve things from both sides of the fence.
Friday, January 16, 2004 4:46 AM by Roy Osherove

# re: Code Complete 2. Good, but not a silver bullet

Paul. Yes, I've read rapid dev as well and found it actually more useful for my day to day practices as a reference. I actually used it for my first brainstorming exercises at one of my first positions as team lead. It helped a lot.