or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
35 used & new from $4.35

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 your Kindle here.
 
  

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

~ (Author)
3.6 out of 5 stars  See all reviews (7 customer reviews)

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

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

Want it delivered Tuesday, November 24? Choose One-Day Shipping at checkout. Details
19 new from $27.43 16 used from $4.35

Frequently Bought Together

Customers buy this book with Software Craftsmanship: The New Imperative by Pete McBreen

Find the Bug: A Book of Incorrect Programs + Software Craftsmanship: The New Imperative
  • This item: Find the Bug: A Book of Incorrect Programs by Adam Barr

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Software Craftsmanship: The New Imperative by Pete McBreen

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


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)  $20.31
The Best Software Writing I: Selected and Introduced by Joel Spolsky (v. 1)

The Best Software Writing I: Selected and Introduced by Joel Spolsky (v. 1)

by Joel Spolsky
4.0 out of 5 stars (27)  $18.24
Debugging

Debugging

by David J. Agans
4.8 out of 5 stars (22)  $15.34
Designing Interfaces

Designing Interfaces

by Jenifer Tidwell
4.3 out of 5 stars (54)  $29.05
Code Complete: A Practical Handbook of Software Construction

Code Complete: A Practical Handbook of Software Construction

by Steve McConnell
4.7 out of 5 stars (113)  $31.49
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.


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: #1,067,573 in Books (See Bestsellers in Books)

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

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

More About the Author

Adam Barr
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Adam Barr Page

What Do Customers Ultimately Buy After Viewing This Item?

Find the Bug: A Book of Incorrect Programs
76% buy the item featured on this page:
Find the Bug: A Book of Incorrect Programs 3.6 out of 5 stars (7)
$31.49
Debugging
9% buy
Debugging 4.8 out of 5 stars (22)
$15.34
Puzzles for Programmers and Pros
8% buy
Puzzles for Programmers and Pros 4.2 out of 5 stars (6)
$16.49
Programming Pearls (2nd Edition)
5% buy
Programming Pearls (2nd Edition) 4.4 out of 5 stars (35)
$25.80

Tags Customers Associate with This Product

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

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

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 17 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)



 
12 of 14 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)



 
7 of 8 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)


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 10 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 12 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

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
   



So You'd Like to...


Create a guide

Product Information from the Amapedia Community

Beta (What's this?)


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.