Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
   
More Buying Choices
27 used & new from $6.01

Have one to sell? Sell yours here
 
   
Find the Bug: A Book of Incorrect Programs
 
See larger image
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

Find the Bug: A Book of Incorrect Programs (Paperback)

by Adam Barr (Author)
3.6 out of 5 stars See all reviews (7 customer reviews)

List Price: $34.99
Price: $27.29 & this item ships for FREE with Super Saver Shipping. Details
You Save: $7.70 (22%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 2 left in stock--order soon (more on the way).

Want it delivered Tuesday, July 7? Choose One-Day Shipping at checkout. Details
13 new from $22.73 14 used from $6.01

Frequently Bought Together

Customers buy this book with The Best Software Writing I: Selected and Introduced by Joel Spolsky (v. 1) by Joel Spolsky

Find the Bug: A Book of Incorrect Programs + The Best Software Writing I: Selected and Introduced by Joel Spolsky (v. 1)
Price For Both: $43.78

Customers Who Bought This Item Also Bought

Software Craftsmanship: The New Imperative

Software Craftsmanship: The New Imperative

by Pete McBreen
4.3 out of 5 stars (24)  $26.99
Designing Interfaces: Patterns for Effective Interaction Design

Designing Interfaces: Patterns for Effective Interaction Design

by Jenifer Tidwell
4.2 out of 5 stars (52)  $32.97
Debugging

Debugging

by David, J Agans
4.8 out of 5 stars (19)  $16.15
Code Complete: A Practical Handbook of Software Construction

Code Complete: A Practical Handbook of Software Construction

by Steve McConnell
4.8 out of 5 stars (106)  $31.49
Programming Interviews Exposed: Secrets to Landing Your Next Job, 2nd Edition (Programmer to Programmer)

Programming Interviews Exposed: Secrets to Landing Your Next Job, 2nd Edition (Programmer to Programmer)

by John Mongan
4.2 out of 5 stars (68)  $18.89
Explore similar items

Editorial Reviews

Product Description
Finding bugs and understanding what is really happening within code is a lostart. Only truly good programmers are able to emulate the processor in theirown mind (e.g. read the code and understand how it might work without goingto the trouble of running it). Adam Barr wonders how programmers aresupposed to build better programs if they do not know what is going on incode. The true pursuit of most software programmers is not creatingapplications from scratch; the reality of their day-to-day work is that theyusually have to deal with inherited code. This code, likely written by someoneelse, must be optimized, tweaked, and improved. Therefore, programmers whoare adept at reading, understanding, and improving code are in hot demand.These skills are drawn to the forefront with the help of this new book.This book is language-independent. The author borrows from his extensiveexperience at Microsoft Corporation and as an independent consultant to showhow programming skills can be honed by going through the exercise of findingthe bugs in existing code. By teaching programmers how to troubleshoot, it isthe author's belief that programmers will learn how to think like a programmer,and ultimately produce better software in a more timely fashion.

From the Back Cover

50 exercises to help you find bugs faster -- with less aggravation!

Bug hunting is an art, and you need to be a master. Get Find the Bug, and you'll become one. Long-time Microsoft programmer Adam Barr presents 50 programs, each with exactly one bug. Your assignment: find it. As you do, Barr will teach you how to "think like your processor"... anticipating exactly how code will behave, even without running it. You'll learn better ways to read code, understand it -- and above all, improve it. Whether you're building new systems or maintaining someone else's, you'll find bugs earlier, faster, with less frustration... and write cleaner code to begin with.

  • Presents "bugged" programs in C, Java, Python, Perl, and x86 assembly language, with carefully explained solutions
  • Includes language overviews to help you debug all 50 examples, even if you don't know the language
  • Shows how to look past the "surface" of code to uncover its hidden internal logic
  • Offers practical guidance on analyzing programs, including specific inputs to test
  • Presents a wide range of realistic bugs, with no phony "gotchas"
  • Draws on the types of coding and debugging challenges Microsoft uses to interview new programmers
  • An indispensable resource for working programmers, maintainers, testers, quality specialists, and everyone involved in code reviews

© Copyright Pearson Education. All rights reserved.



See all Editorial Reviews

Product Details

  • Paperback: 336 pages
  • Publisher: Addison-Wesley Professional; 1 edition (October 16, 2004)
  • Language: English
  • ISBN-10: 0321223918
  • ISBN-13: 978-0321223913
  • Product Dimensions: 9.2 x 7 x 0.7 inches
  • Shipping Weight: 1 pounds (View shipping rates and policies)
  • Average Customer Review: 3.6 out of 5 stars See all reviews (7 customer reviews)
  • Amazon.com Sales Rank: #734,581 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #35 in  Books > Computers & Internet > Programming > Languages & Tools > Debugging

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

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

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

 
15 of 16 people found the following review helpful:
3.0 out of 5 stars Going from language to language is of dubious benefit, March 29, 2005
By Charles Ashbacher "(cashbacher@yahoo.com)" (Marion, Iowa United States(cashbacher@yahoo.com)) - See all my reviews
(TOP 50 REVIEWER)      
While this book does something that I am in strongly in favor of, I don't agree with the approach. Barr presents a series of code segments that contain bugs and the reader is challenged to find the error(s). The bugs introduced into the code are fairly common, so finding them will be excellent practice for coders at all levels of experience. The segments of code are short, generally less than two pages, so finding the bugs does not require a great deal of searching.
The problem is that the programs are written in C, Python, Java, Perl and x86 assembly. If you are experienced in a particular language, then the bugs will probably not challenge you. However, if you are a novice in a language, the ten pages devoted to introducing the language will not be enough to get you up to speed. I have taught all of these languages and I found it difficult to shift from one language to another. The syntax differences between the languages are enough to confuse even people experienced in all of them. I am also unconvinced that finding bugs in a language you are not using and are unfamiliar with will make you a better programmer.
The general sequence of the bug presentations is:

*) A textual explanation of the problem.
*) The source code.
*) Suggestions of questions to consider.
*) Hints of operations to perform when stepping through the code.
*) Explanation of the bug(s).

Which is certainly a sound approach.
I dithered a bit when trying to settle on a ranking for this book, largely due to the multiple languages. In the end, I settled on three stars because I believe that if you go through this book, it is more likely that instead of doing a few things well, you will do many things poorly.
Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)



 
7 of 7 people found the following review helpful:
5.0 out of 5 stars Great read!, November 1, 2004
By JC Cannon (Sammamish, WA U.S.A.) - See all my reviews
Adam Barr steps you through code analysis in a logical fashion, guiding you around some obvious and not so obvious pitfalls. His writing style makes it easy to understand his concepts. Adam's selection of languages benefits programmers of all backgrounds. I especially enjoyed looking through the Python examples. The language summary at the beginning of each chapter is a great idea to acquaint newcomers to a language. Experienced programmers as well as hobbyists will find great value in the examples. Not only will you become a better debugger, you will become a better programmer.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
11 of 13 people found the following review helpful:
5.0 out of 5 stars Great "out of the box" thinking..., October 31, 2004
By Thomas Duff "Duffbert" (Portland, OR United States) - See all my reviews
(TOP 50 REVIEWER)    (REAL NAME)      
If you're a programmer who has to look at code that others have written, you'll appreciate this book... Find The Bug by Adam Barr (Addison-Wesley).
Chapter list: Bug Classification; Tips on Walking Through Code; C; Python; Java; Perl; x86 Assembly Language; Classification of Bugs; Index of Bugs by Type; References; Index

This is a excellent text to help you improve your skills on reading code and mentally debugging it. There are 10 short program or routines for each of the five languages. Your goal is to walk through the code and figure out what is the hidden error in it. There are three or four suggestions if you need help thinking it through, a couple of direct hints to focus your thoughts, and a complete explanation at the end. Even though you may not be familiar with some of the languages, Barr gives you a basic coverage of the fundamentals at the beginning of the chapter so that you can see if you are able to spot the error. Add to all that some good information on how best to walk through code, and you end up with a book that should be part of every developer's training. If you're part of a development group that does code walkthroughs, this would be an excellent guide to help everyone become more effective during the process.

A good way to step outside your normal thought processes and improve your skills... good stuff.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


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

2.0 out of 5 stars Marginally fun
Pro's: Great variety, level of challenge, and good ideas.
Cons: Sometimes lessons are very obscure without being practical. Assembly language is the devil. Read more
Published 5 months ago by R. Florian

1.0 out of 5 stars what a waste of money
Don't buy this book; save a tree!

It says nothing about actually useful practices, like unit-testing. Read more
Published 8 months ago by Valeriy Vorotyntsev

4.0 out of 5 stars Interesting brain teasers for coders
This book has a set of bugs to work through in C, Java, Perl, Python, and Assembler. The bugs range from rudimentary syntax mistakes to more complex and subtle bugs. Read more
Published on January 9, 2005 by Jack D. Herrington

5.0 out of 5 stars Great Book

I am a programmer . I find this book helpfull. A must have for security specialists.
Published on October 18, 2004 by Sulaiman Alhasawi

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

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


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Up to 50% Off Chocolates

Leonidas Chocolates Sale
Save up to 50% on gourmet chocolates from Ghirardelli, Godiva, Leonidas Belgian Chocolates, and more from Amazon Gourmet.
 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

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.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

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

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Glenn Beck's Common Sense
Paranoia
Paranoia by Joseph Finder
Glenn Beck's Common Sense
Darkfever
Darkfever by Karen Marie Moning

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates