| ||||||||||||
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.
© Copyright Pearson Education. All rights reserved.
Find the Bug: A Book of Incorrect ProgramsAuthor Bio
ADAM BARR lives in Redmond, WA, and works at Microsoft Corporation as a Program Manager on Windows Server. For ten years, he was a Software Design Engineer at Microsoft Corporation, where he worked on products ranging from Windows NT, Windows 2000, and Windows XP to Microsoft Interactive Television and Softimage Digital Studio. He has exceptional experience in C programming and Windows NT kernel development and debugging. He is author of Proudly Serving My Corporate Masters: What I Learned in Ten Years as a Microsoft Programmer.
© Copyright Pearson Education. All rights reserved.
Product Details
Would you like to update product info or give feedback on images?
|
|
Share your thoughts with other customers:
|
||||||||||||||||||||||
|
Most Helpful Customer Reviews
16 of 19 people found the following review helpful:
3.0 out of 5 stars
Going from language to language is of dubious benefit,
By Charles Ashbacher (Marion, Iowa United States) - See all my reviews (TOP 500 REVIEWER) (VINE VOICE) (HALL OF FAME REVIEWER)
This review is from: Find the Bug: A Book of Incorrect Programs (Paperback)
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.
13 of 15 people found the following review helpful:
5.0 out of 5 stars
Great "out of the box" thinking...,
By Thomas Duff "Duffbert" (Portland, OR United States) - See all my reviews (VINE VOICE) (TOP 500 REVIEWER) (HALL OF FAME REVIEWER) (REAL NAME)
This review is from: Find the Bug: A Book of Incorrect Programs (Paperback)
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.
8 of 9 people found the following review helpful:
5.0 out of 5 stars
Great read!,
By JC Cannon (Sammamish, WA U.S.A.) - See all my reviews
This review is from: Find the Bug: A Book of Incorrect Programs (Paperback)
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.
Share your thoughts with other customers: Create your own review
|
|
Tags Customers Associate with This Product(What's this?)Click on a tag to find related items, discussions, and people.
|
|
This product's forum
Active discussions in related forums
Search Customer Discussions
|
Related forums
|