Buy new:
-29% $38.79
FREE delivery Saturday, May 18
Ships from: Amazon.com
Sold by: Amazon.com
$38.79 with 29 percent savings
List Price: $54.99

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
FREE Returns
FREE delivery Saturday, May 18
Or fastest delivery Thursday, May 16. Order within 17 hrs 58 mins
In Stock
$$38.79 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$38.79
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Sold by
Amazon.com
Returns
30-day easy returns
30-day easy returns
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Returns
30-day easy returns
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$18.21
Get Fast, Free Shipping with Amazon Prime FREE Returns
Book is in good condition and may include underlining highlighting and minimal wear. The book can also include "From the library of" labels. May not contain miscellaneous items toys, dvds, etc. . We offer 100% money back guarantee and 24 7 customer service. Free 2-day shipping with Amazon Prime! Book is in good condition and may include underlining highlighting and minimal wear. The book can also include "From the library of" labels. May not contain miscellaneous items toys, dvds, etc. . We offer 100% money back guarantee and 24 7 customer service. Free 2-day shipping with Amazon Prime! See less
FREE delivery May 26 - June 5 on orders shipped by Amazon over $35
Or fastest delivery May 25 - 31
$$38.79 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$38.79
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Something went wrong. Please try your request again later.

Code Complete: A Practical Handbook of Software Construction, Second Edition 2nd Edition

4.6 4.6 out of 5 stars 1,260 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$38.79","priceAmount":38.79,"currencySymbol":"$","integerValue":"38","decimalSeparator":".","fractionalValue":"79","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"gffIxa5%2FLKLAiEbK2MvAB3UDjPoz86SCr3ph9zVKdrGgk4UVeTjb6ji0TLE7fD%2F0uGnc0ObuWUFWOaPPDG9bBySiupnV5zz8eisxagHCM47RzYDWabYktbRFV7p%2BJHNzpbtNWsY52Pw%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$18.21","priceAmount":18.21,"currencySymbol":"$","integerValue":"18","decimalSeparator":".","fractionalValue":"21","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"gffIxa5%2FLKLAiEbK2MvAB3UDjPoz86SCKdG7xjN7ixGJ1Us8OEhDwU8N30Pq9nt9vqxgYK6Yrosc5BQgjxfr0K02MCtDaKM9K3B7AAS4sMSbY%2BNh4qSk6pdkWi056dhk7lH%2FaCsZMCkbSIjDnigE3T5lC7SklEV3ciPt1SvHO9fLRUe5UVa%2FhkISD1sbtfl2","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Widely considered one of the best practical guides to programming, Steve McConnell’s original code complete has been helping developers write better software for more than a decade. Now this classic book has been fully updated and revised with leading-edge practices—and hundreds of new code samples—illustrating the art and science of software construction. Capturing the body of knowledge available from research, academia, and everyday commercial practice, McConnell synthesizes the most effective techniques and must-know principles into clear, pragmatic guidance. No matter what your experience level, development environment, or project size, this book will inform and stimulate your thinking—and help you build the highest quality code.

Discover the timeless techniques and strategies that help you:

  • Design for minimum complexity and maximum creativity
  • Reap the benefits of collaborative development
  • Apply defensive programming techniques to reduce and flush out errors
  • Exploit opportunities to refactor—or evolve—code, and do it safely
  • Use construction practices that are right-weight for your project
  • Debug problems quickly and effectively
  • Resolve critical construction issues early and correctly
  • Build quality into the beginning, middle, and end of your project .
Read more Read less

Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

$38.79
Get it as soon as Saturday, May 18
In Stock
Ships from and sold by Amazon.com.
+
$39.99
Get it as soon as Saturday, May 18
In Stock
Ships from and sold by Amazon.com.
+
$39.73
Only 2 left in stock - order soon.
Ships from and sold by WhitePaper Books.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

From the Publisher

Code Complete by Steve McConnell

From the Preface

My primary concern in writing this book has been to narrow the gap between the knowledge of industry gurus and professors on the one hand and common commercial practice on the other. Many powerful programming techniques hide in journals and academic papers for years before trickling down to the programming public.

Although leading-edge software-development practice has advanced rapidly in recent years, common practice hasn't. Many programs are still buggy, late, and over budget, and many fail to satisfy the needs of their users. Because these practices aren't often reported outside the pages of highly specialized technical journals, however, most programming organizations aren't yet using them today. This handbook shortcuts the process, making key discoveries available to the average programmer now.

- Steve McConnell

Who should read this book?

Experienced Programmers

technical Leader

Self-taught programmers

Students

Experienced Programmers

This handbook serves experienced programmers who want a comprehensive, easy-to-use guide to software development. The programming practices described here will help you keep big projects under control and help you maintain and modify software successfully as the demands of your projects change.

Technical Leads

Many technical leads have used Code Complete to educate less-experienced programmers on their teams. You can also use it to fill your own knowledge gaps.

Self-Taught Programmers

Self-taught programmers are found in the emerging group of professionals—engineers, accountants, scientists, teachers, and small business owners—who program as part of their jobs but who do not necessarily view themselves as programmers. Regardless of the extent of your programming education, this handbook can give you insight into effective programming practices.

Students

Use this guide to bridge theoretical knowledge with practical skills as you transition from an academic environment to a professional career.

Editorial Reviews

About the Author

Steve McConnell is recognized as one of the premier authors and voices in the development community. He is Chief Software Engineer of Construx Software and was the lead developer of Construx Estimate and of SPC Estimate Professional, winner of Software Development magazine's Productivity Award. He is the author of several books, including Code Complete and Rapid Development, both honored with Software Development magazine's Jolt Award.

Product details

  • Publisher ‏ : ‎ Microsoft Press; 2nd edition (July 7, 2004)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 960 pages
  • ISBN-10 ‏ : ‎ 0735619670
  • ISBN-13 ‏ : ‎ 978-0735619678
  • Item Weight ‏ : ‎ 3.35 pounds
  • Dimensions ‏ : ‎ 7.5 x 1.63 x 9.13 inches
  • Customer Reviews:
    4.6 4.6 out of 5 stars 1,260 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Steve McConnell
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Steve McConnell is an award-winning, best selling CEO and author. His newest book is "More Effective Agile: A Roadmap for Software Leaders." His first book, "Code Complete", has been recognized as the best-selling, best-reviewed software development book of all time. His books have been translated into 20 languages and sold more than one million copies worldwide.

Steve is passionate about increasing software organizational performance by improving the skills of individuals and teams. Steve is founder and CEO at Construx Software, which provides training, consulting, coaching and free resources focused on more effective software development practices. Check it out at construx.com.

Steve's newest book, More Effective Agile, was published in August 2019. Check out resources related to Steve's new book at moreeffectiveagile.com.

Customer reviews

4.6 out of 5 stars
4.6 out of 5
1,260 global ratings
Self-diagram of Topic Coverage from Book
5 Stars
Self-diagram of Topic Coverage from Book
Bought it used and is in good shape!Haven't read through all of it, but off to a good start.Included a picture of a self-description of how much details it'll cover in each topic in this book.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Reviewed in the United States on September 25, 2010
The focus of Code Complete is software construction, i.e. the coding part of software development. As Steve McConnell notes in the preface, "construction is the only activity that is guaranteed to be done". You can skip almost any step (requirements, testing etc), but if you don't write any code there is not going to be any software.

I bought my copy of the first edition of Code Complete in 1997, and I was immediately fascinated. I had never read anything like it before - a book that concentrated on the actual writing of the code. For example, it had a whole chapter on if- and case-statements, and another chapter on the naming of variables. I had no idea there was so much to learn about these seemingly straight forward activities. It was immediately useful to me, and I started to apply as much as I could of what I learnt from it.

Although it concentrated on coding, it covered a broad spectrum of activities around coding, from requirements and design to testing, debugging and optimization. It also had a great reference section with suggestions of further reading in the area of software engineering. This became my starting point for finding lots of other good books to read, like 
Peopleware: Productive Projects and Teams (Second Edition)  and  Programming Pearls (2nd Edition) .

So this summer I decided to re-read this seminal book, partly to see what's new in the second edition, and partly to see if still think it is such a great book.

To answer my own question - yes, it is still the number one book on writing code. It is near encyclopaedic in its coverage of the nuts and bolts of programming. There are chapters on the naming of variables, on organizing straight-line code, on conditionals, on loops, on lay-out, on good commenting and on how to write good methods.

In it, there are frequent references to scientific studies that support the advice given in the book. For example, how long should variable names be? Instead of just giving us his opinion, McConnell summarized the findings of several scientific studies on the subject.

Each time there is reference to a study, there is a little "hard data" symbol in the margin. There are other symbols in the margin as well, "Coding Horror" for code examples of what not to do, and "Key Point" for, well, key points. The margin is also used for cross references to other chapters, and for quotes related to the subject discussed. For me, this works really well. It is both useful and makes the text easier to read. In general, the book is very well laid out.

Some of my favourite advice from the book (all of which I remember from reading the first edition) are:

Chapter 7.1 Valid Reasons to Create a Routine - for example: Reduce complexity, Introduce an intermediate understandable abstraction, and Avoid duplicate code (there are 6 more valid reasons in this chapter). The second part of the chapter is called Operations That Seem Too Simple to Put Into Routines and contains a great example of why it can be good to put even a one-line calculation in a routine - the code becomes more readable, and small operations tend to turn into larger operations.

Page 172 (and 264 for variables) Use opposites precisely. When naming "opposite" methods and variables, be careful to use the correct pairs, like add/remove, begin/end, create/destroy etc. This makes the relationship between them clear and obvious.

Page 433 Break complicated tests into partial tests with new boolean variables. This is such a simple thing, but it makes the code a lot more readable.

Page 754 "Make the incompleteness of a statement obvi". For example, when breaking up a logical and over two lines, end the first line with && - that way, it is clear that the statement continues on the next line.

Even though the book truly is great, there are a few things to complain about. In the first edition, the chapters on layout and comments came right after the chapters on the different control structures. But in the second edition, these two chapters have been moved further back. To me, that doesn't make sense, since they too are related to how you actually write your code. Now there are chapters on testing, debugging, optimization and refactoring in between.

And talking about refactoring: while this is an important subject, I don't feel the chapter on refactoring is particularly good. This chapter is new in the second edition. The summary of refactoring is OK, but a good part of the chapter consists of just listing different kinds of refactorings.

Overall though, the second edition is a nice face lift. The code examples are now mostly in Java, C++ or Visual Basic (in the first edition they were in Pascal, C or Ada). But since all the major themes of the book were already present in the first edition, it does not make a big difference if you happen to read the first edition instead of the second edition.

Code Complete is thick - 862 pages (not counting the bibliography and index). If that feels like a lot to read, then I suggest you start by just reading one or two chapters, for example "Using Conditionals" or "Layout and Style". They (and pretty much any chapter in the book) can easily be read without first reading the preceding chapters, and these will give you a sense of what you can expect from the other chapters. Even if these are all you read, you will still get a lot of value from the book.

However, if you are a programmer and care about how you write code, you owe it to yourself to read the whole book. It is considered by many (including me) to be the best book available on programming, and it will almost certainly make you a better programmer. Highly recommended.
31 people found this helpful
Report
Reviewed in the United States on November 23, 2017
This book deserves 5 stars because it is a comprehensive analysis of software construction, it is objective and scientific, it is well-written and well-organized and it carries a lot of weight in the software industry (yes, this is important).

Comprehensive Analysis of Software Construction
This book’s scope is the “construction” of software which primarily includes detailed design, coding, debugging, integration and developer testing. According to McConnell, there wasn’t a book written on the construction aspect of programming at the time of writing the first volume (in 1993). Also, according to McConnell, construction is the most important part of programming as it takes up the most time, it must be done, and it has the biggest impact on the success of a project. To sum it up, this book touches on everything you need to know during the construction phase and has a chapter devoted to each topic. My favorite chapters are Chapter 6 (Working Classes), Chapter 21 (Collaborative Construction) and Chapter 33 (Personal Character). Go look at the table of contents if you don’t believe this book is comprehensive.

Objective and Scientific
McConnell backs up most of his claims with scientific evidence (referencing the results of different programming studies) throughout the book. He is also objective and presents dissenting opinions when there isn’t a clear winner. He is also honest when there isn’t much evidence to support his claims (for example, there isn’t actually much evidence backing up his documentation techniques even though they are probably best practice). This builds trust between the reader and the author. We know he has done his due diligence and we don’t need to go fact check everything. His technique of backing up opinions with scientific studies is surprisingly lacking in most software communities. It makes me realize how often we spout opinions without backing them up with hard data.

Well-written and Well-organized
This book might be dry at times, but it’s very well-written and well-organized. You can skip around to different sections and use it more like a reference instead of reading cover-to-cover if you’d like. My favorite parts of its organization are the ‘Key Points’ highlighted throughout the text, the checklists and key points at the end of chapters, and helpful code examples which reinforce his points. Also, I love his metaphor that you should organize your code in a similar logical structure that you would organize a book (with table of contents, sections, chapters, etc.) Some will say the book is repetitive (and it can be), but repetition is important because you rarely remember anything after reading it once. Repetition is the way ideas are reinforced and remembered.

Carries a Lot of Weight in the Industry
Some might argue this shouldn’t be a factor when reviewing a book, but I disagree. When you are newer to the industry (I’ve been programming professionally for around 2 years), you need to learn from the best. The way you identify who is best is by someone’s reputation and status in an industry. This book (and McConnell himself) are held in high esteem by very influential people in the industry. This matters because you can trust the concepts he is advocating and move quicker in your learning.

Conclusion
Overall, this book is a must-read for programmers and will probably have the best ROI for programmers who have been working professionally for 1-2 years (because you’ve seen some of the good and some of the bad practices that McConnell talks about). Yes, this book is long, sometimes dry and repetitive, and some advice is obvious. But it absolutely helps give more confidence when constructing software, when giving code reviews, and when forming a culture of good habits on your team.

The main takeaway is this: your number one goal as a programmer is to manage complexity. Make things easier to understand, more readable and more maintainable - it will save time in the long-run. We spend much more time reading code than writing code. It’s important to think about the programmer who will be reading and maintaining your code (a lot of times it is yourself). We aren’t smart enough to understand entire codebases and we are limited by our brains. Use techniques like abstraction, encapsulation, self-documenting code, and collaboration with other programmers to make your code better.
43 people found this helpful
Report

Top reviews from other countries

Translate all reviews to English
Rsm
5.0 out of 5 stars Unparalleled
Reviewed in Brazil on June 21, 2022
This book is an awesome reading dor anyone serious about software development.

It may take a while to master its content but totally worth the time and price.
lollollol
5.0 out of 5 stars cool
Reviewed in Italy on May 7, 2024
teaches how do u write beautiful and cool
code fr
Placeholder
5.0 out of 5 stars Grt
Reviewed in India on November 13, 2023
Nice and must to have one with any programmer........ original and new book....
José Huerta Ibarra
5.0 out of 5 stars A este libro le llaman "La Biblia del cómputo"
Reviewed in Mexico on April 9, 2021
Es un libro de consulta para resolver cualquier problema que tenga el programador en la elaboración de programas complejos. Siempre surgen dudas sobre como realizar algunas tareas de diferente dificultad. Code Complete es un recurso de indudable utilidad, pues no solo orienta al programador sobre cómo solucionar determinado problema sino que señala cual es el contexto, la estructura general que subyace en la programación. Indudablemente es un libro que debe formar parte de la biblioteca de todo programador.
Ahmed ElShenawy
5.0 out of 5 stars Great condition and quality
Reviewed in Germany on July 30, 2022
Book arrived protected without scratches or bumps. All pages are there.