"Fix the cause, not the symptom.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't fix bugs later; fix them now.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Make code intelligible at the point of call. Avoid Boolean arguments.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Make it hard to ignore error conditions. Don't bury error codes in return values.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Throw away your bag of tricks. Be truly clever: Write boring code.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't keep 'trying' solutions until you find one that works. Take the time to find the correct solution.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Tight C code does not guarantee efficient machine code.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't allow unnecessary flexibility.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Document unclear assertions.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Write functions that, given valid inputs, cannot fail.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Always ask, "Can this variable or expression over- or underflow?"
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Implement 'The Task' just once. Handle special cases just once.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Always look for, and eliminate, flaws in your interfaces.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Define explicit function arguments. Eliminate ambiguity.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't write multipurpose functions. Write separate functions to allow stronger argument validation.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Eliminate random behavior. Force bugs to be reproducible."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"If something happens rarely, force it to happen often.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't reference memory that you don't own.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Maintain both ship and debug versions of your code."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Strip undefined behavior from your code."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Shred your garbage."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Use assertions to validate all function arguments."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Design your tests carefully. Nothing should be arbitrary.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Strive to implement transparent integrity checks.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"As you step through code, focus on data flow.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Write and test code in small chunks. Always test your code, even if that means your schedule will slip.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Step through every code path."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Create thorough subsystem checks, and use them often.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Implement your designs as accurately as possible.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't implement nonstrategic features. There is no free lunch.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Use lint to catch bugs your compiler may miss.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Write comments that emphasize potential hazards.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't clean up code unless the cleanup is critical to the product's success.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't clean up code unless the cleanup is critical to the product's success."
- Steve Maguire
|
"Enable all compiler warnings.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Use a second algorithm to validate your results.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't hide bugs when you program defensively."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Either remove implicit assumptions, or assert that they are valid."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don't wait until you have a bug to step through your code.
"
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don’t fix bugs later; fix them now."
- Steve Maguire, Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Never allow the same bug to bite you twice."
- Steve Maguire, Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Handle your special cases just one."
- Steve Maguire, Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Don’t keep "trying" solutions until you find one that works. Take the time to find the correct solution."
- Steve Maguire, Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|
"Use assertions to detect impossible conditions."
- Steve Maguire - , Writing Solid Code: Microsoft's Techniques for Developing Bug-Free C Programs by Steve Maguire , ISBN: 1556155514
|