Skip to Main Content
Test Driven Development for Embedded C
book

Test Driven Development for Embedded C

by James W. Grenning
April 2011
Intermediate to advanced content levelIntermediate to advanced
356 pages
8h 55m
English
Pragmatic Bookshelf
Content preview from Test Driven Development for Embedded C

But What About Performance and Size?

Some of you may be concerned over the extra functions and function calls that are the result of refactoring, maybe for speed, maybe for memory size. You may have such constrained environments that you have to squeeze every last bit of space and performance out of it. My advice, as well as that of many others, is to first structure code for clarity and optimize only when measurements support the optimizations.

Make It Work, Then Right, Then Fast

In Extreme Programming Explained [Bec00], Kent Beck promotes this motto:

  • Make it work.

  • Make it right.

  • Make it fast.

What would you rather do, debug some optimized tricky code or optimize some clean and well-factored code? It’s not a trick question. Making clean ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design Patterns for Embedded Systems in C

Design Patterns for Embedded Systems in C

Bruce Powel Douglass

Publisher Resources

ISBN: 9781941222997Errata Page