Slashdot Mirror


Classic Coding Tome Updated

Tim Halloran writes "Steve McConnell has updated his book 'Code Complete' a 960 page language agnostic tome about code construction. This is the best book of its type I've ever encountered and the update is welcome (as the first edition is over a decade old...I suddenly feel as I'm getting old :-). More information, and a sample chapter are here. As a programming team lead I have provided this book to team members to get them critically thinking about how they write code."

2 of 48 comments (clear)

  1. Re:Many obvious statements by SlowMovingTarget · · Score: 5, Interesting

    If you read the first edition, one the things it did was give weight to things that are "obvious."

    It's obvious that indents should be no more than 4 spaces and no less than 2 spaces, and that only one option should be used consistently throughout a given body of code. The cool thing was that the book gave you the results of studies that backed up this "obvious" statement. It put programming lore on a factual basis.

    I came to the first edition of Code Complete with several years of programming experience under my belt. I had much the same response to it as I did to Pragmatic Programmer, namely that it helped me understand why I had developed some of the habits I had. It also helped me find those areas where I still needed polish.

    Both of these books aimed at teaching how to program well, not how to program. I hope this second edition is up to the standard of the first.

    The book is aimed at developers who may have graduated from some college class that taught them the Java language (for example), but did not teach them how to use it properly. Browsing through the sample chapter you mention, it seems to stay true to the character of the original. I notice on page 21 of the PDF that he discusses studies on information hiding. You and I may know the value of encapsulation, but the book points to facts that back up our lore on the subject.

    The upshot of this fact is that Code Complete looks great in a references section of document that makes a technical argument, in much the same way The Mythical Man Month does (a stunning achievement in IT literature... it's ~ 30 years old and still right for the most part). All three of the books I mention here are worth reading simply because they capture good programming practice in a way no other piece of writing has.

  2. Code Complete by kabz · · Score: 5, Insightful

    This book is the best programming book I have ever read.

    I believe that my own productivity increased by about 50% at least after reading it.

    Code Complete answers many of the questions that nag the working programmer, and busts through much of the BS that people spout about programming.

    The book covers a huge range of material, from code formatting and style, to how to build teams. Clue: don't put all the programmers no one else wants in a team to build an important project ;-)

    The writing style is friendly and peppered with hilarious case studies such as 'Escape from Gilligan's Island', where the same mistakes happen over and over again.

    Everyone who has worked on large programming projects will recognise some of these anecdotes. In one case I watched from start to finish as an 'experienced consultant' ruined a perfectly good project with secrecy over his bad and undocumented code. All the warning signs were there. If the manager had read this book, a programming catastrophe might have been averted.

    I have bought this book a few times, and given it to management in-duh-viduals to read. Sometimes it helped.

    If you are a programmer or a manager, or just interested in software, buy this book and read it. I guarantee you will learn something.

    --
    -- "It's not stalking if you're married!" My Wife.