Writing Solid Code (Microsoft Programming Series)
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Writing Solid Code (Microsoft Programming Series) [Paperback]

Steve Maguire (Author)
3.7 out of 5 stars  See all reviews (43 customer reviews)


Available from these sellers.


7 new from $50.00 71 used from $0.01

Customers Who Bought This Item Also Bought


Editorial Reviews

Amazon.com Review

Any programmer worth their silicon knows that it is wiser to invest time preventing bugs from hatching than to try to exterminate them afterwards. And this is one of the best books for developing a proactive attitude towards electronic entomology. Follow Maguire's advice, and your testers, supervisors and customers will love you. Recommended.

Product Description

"This book has useful things to say and an engaging way of saying them...a worthwhile addition to the shelves of any full-time programmer." - PC Week. Here, from a former Microsoft developer, are super secrets for developing bug-free C programs. Maguire provides examples of how bugs are caught at Microsoft (using actual case histories) and shows how readers can use these proven programming techniques to get products to market faster.

Product Details

  • Paperback: 256 pages
  • Publisher: Microsoft Press; 1 edition (January 1, 1993)
  • Language: English
  • ISBN-10: 1556155514
  • ISBN-13: 978-1556155512
  • Product Dimensions: 9.1 x 7.3 x 0.9 inches
  • Shipping Weight: 1.4 pounds
  • Average Customer Review: 3.7 out of 5 stars  See all reviews (43 customer reviews)
  • Amazon Bestsellers Rank: #236,564 in Books (See Top 100 in Books)
    #15 in  Books > Computers & Internet > Programming > Languages & Tools > Debugging

More About the Author

Steve Maguire
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Steve Maguire Page

Look Inside This Book


What Do Customers Ultimately Buy After Viewing This Item?

Writing Solid Code (Microsoft Programming Series)
73% buy the item featured on this page:
Writing Solid Code (Microsoft Programming Series) 3.7 out of 5 stars (43)
Code Complete: A Practical Handbook of Software Construction
13% buy
Code Complete: A Practical Handbook of Software Construction 4.7 out of 5 stars (121)
$31.49
Rapid Development: Taming Wild Software Schedules
5% buy
Rapid Development: Taming Wild Software Schedules 4.8 out of 5 stars (114)
$23.10
Software Estimation: Demystifying the Black Art (Best Practices (Microsoft))
5% buy
Software Estimation: Demystifying the Black Art (Best Practices (Microsoft)) 4.7 out of 5 stars (40)
$26.39

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(2)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

43 Reviews
5 star:
 (15)
4 star:
 (16)
3 star:
 (2)
2 star:
 (5)
1 star:
 (5)
 
 
 
 
 
Average Customer Review
3.7 out of 5 stars (43 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
36 of 37 people found the following review helpful:
4.0 out of 5 stars Still Offers Good Advice, December 4, 2002
By Paul J. Mantyla (Sunnyvale, CA USA) - See all my reviews
(REAL NAME)   
This review is from: Writing Solid Code (Microsoft Programming Series) (Paperback)
The negative reviews I've read tend to fall into two categories: 1) Anti-Microsoft Bashing and 2) Nitpicking.

This book isn't a recipe book, and it's a bit dated, having been written during the days of DOS and the first Macintosh, but the underlying themes and general advice are still valid:

- Enable compiler warnings and pay attention to them.
- Use assertions to validate your assumptions.
- Don't quietly ignore error conditions or invalid input.
- For a complicated, critical algorithm, consider using a second algorithm to validate the first. (e.g. validate binary search with a linear search).
- Don't write multi-purpose functions such as realloc (it can grow memory, shrink memory, free memory, or allocate new memory -- it does it all).
- Check boundary conditions carefully.
- Avoid risky language idioms.
- Write code for the "average" programmer. Don't make the "average" programmer reach for a reference manual to understand your code.
- Fix bugs now, not later.
- There are no free features; don't allow needless flexibility (like realloc).
- Ultimately the developer is responsible for finding bugs; he shouldn't write sloppy code and hope that QA will find all his bugs.

Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
19 of 19 people found the following review helpful:
5.0 out of 5 stars Please ignore previous negative reviews, November 22, 2003
By Robert O. Alexander (Bellevue, WA United States) - See all my reviews
(REAL NAME)   
This review is from: Writing Solid Code (Microsoft Programming Series) (Paperback)
I was shocked to see this book get some negative reviews. Those that blasted Microsoft missed the point. This book provides invaluable advice in a quick read. For example, "If you have to look it up, the code is not obvious," or, "If you find yourself designing a function so that it returns an error, stop and ask yourself whether there's any way you can redfined the function to eliminate the error condition." This is the book that convinced me to single-step all my code. The heuristics on proactive bug prevention, which are summarized in the appendix by the way, will save your team time and let you move on to adding features rather than fighting fires.
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
73 of 88 people found the following review helpful:
2.0 out of 5 stars Flaws and outdated advice detract from otherwise good advice, January 15, 2001
By B. Scott Andersen (Acton, MA USA) - See all my reviews
(REAL NAME)   
This review is from: Writing Solid Code (Microsoft Programming Series) (Paperback)
Writing Solid Code was first published over eight years ago and concerns a subject, development in C, that hasn't gotten much press lately. In an era where it seems like everything is OO and developed in C++ or Java, the simple truth is C and non-OO development still has a strong place in our industry. This may explain why a book such as this continues to draw attention.

The writing has a feel of the old C classics such as The Elements of Programming Style (Kernighan, Plauger) which also offered lots of advice with little or no formal reasoning or literature citations to back up that advice. As a consequence, the text has a personal, easy flow but contains some recommendations which are questionable at best.

First, I should outline what is right with this work. There are many nuggets of wisdom that seem obvious if not uncontroversial: enable all compiler warnings, use lint, use assertions, and don't wait until you have a bug to step through your code. Enough of these reasonable guidelines appear in the text to lull the reader into a false sense of security with the remainder of the work.

What makes this book dangerous for new developers is the number of points that are either marginal in value or just plain wrong. While it is impossible to give a comprehensive list in a brief review, here is a few: arguments against defensive programming, don't ship the debug version, avoid boolean arguments, and don't clean up code unless the clean-up is critical to the product's success.

Finally, the recommendation "Make it fast, even if it is not guaranteed to be portable" flys in the face of one of the biggest success stories mentioned early in the book: getting Microsoft to build the Macintosh version directly from the newly created Windows source and sharing 80% of the code (with the accompanying savings) in the process. The truth is, a typical piece of software's life is significantly longer than the hardware it was written for and, therefore, will be ported.

It is possible to write C code so it is reasonably portable, readable, and "modern in every way." In the book's defense, this wasn't strictly the purpose and scope of the book. Instead, the book was "Microsoft's techniques for developing bug-free C programs." In the early 1990's, Microsoft had to deliver software on slow processors with a segmented memory model. I got the sense that some of the recommendations in this book were due to those constraints (which are no longer present--even on Windows machines at this point).

Until and unless MS Press updates the work to relax some of the recommendations obviously aimed at managing primative hardware and immature software I can't recommend this book. If, however, such a revision was made that included those changes and the additions of such notions as Refactoring (Fowler) this could be a valuable resource for C programmers or those who which to develop C coding standards.
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Life Changing
"Writing Solid Code" contains a creative list of excellent ways to improve your software coding ability, with an emphasis on techniques that simplify and speed up the debugging... Read more
Published 3 months ago by Margaret P.

4.0 out of 5 stars Excellent read
Certainly no book can cover all the best practices to write best code but this book has done good attempt. Read more
Published 24 months ago by Prashant

4.0 out of 5 stars Good "old school" book
This book quickly reminded me that the "old school" rules to software development will always apply, no matter how many new labels you put on it (e.g. Agile). Read more
Published on January 27, 2008 by Mark Hurley

4.0 out of 5 stars Old but still relevant today
This book has been recently recommended to me by Amazon based on my previous purchase habits and I decided to go take a look at its description. Read more
Published on October 8, 2007 by Olivier Langlois

5.0 out of 5 stars Too old to read, too good to forget
I would not read this book now but I'm so sorry the author does not write an updated one! This book really changed the way I wrote code.
Published on January 24, 2007 by A. Nahir

3.0 out of 5 stars One of the books to read -- though not the only one
You may not be impressed when you see that this is a Microsoft book. You may get bored at the beginning when all the examples are C and most about memory management. Read more
Published on October 24, 2006 by T. Harris

5.0 out of 5 stars Maguire is my hero
This is hands down, my favorite book on software engineering. If you care at all about writing quality code, you should read this book. Read more
Published on April 14, 2006 by A. Page

1.0 out of 5 stars Just look at the publishing date.
You are looking at a 10-year-old book with a bunch of green screens on the cover. What more can I say. I bought it in preparation for an interview with Microsoft. Read more
Published on September 23, 2003 by Mark Twain

5.0 out of 5 stars Should be mandatory for every professional programmer
This is one of the best books on programming ever written. Maguire concentrates on how to eradicate bugs early in the cycle. At first what he says seems so simple. Read more
Published on July 23, 2003

4.0 out of 5 stars Don't buy this book if you ENJOY debugging code!
Having read a number of reviews of this book several weeks ago
I decided to give it a go! After reading just 2 chapters I was
implementing a number of his suggestions... Read more
Published on May 9, 2002 by Trevor Hand

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   





Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.



Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.