TestDrivenDevelopmentforEmbeddedCByJamesW.GrenningPublisher:PragmaticBookshelfReleased:April2011Pages:352TDDisamodernprogrammingpracticeCdevelopersneedtoknow.It'sadifferentwaytoprogram---unittestsarewritteninatightfeedbackloopwiththeproductioncode,assuringyourcodedoeswhatyouthink.Yougetvaluablefeedbackeveryfewminutes.Youfindmistakesbeforetheybecomebugs.Yougetearlywarningofdesignproblems.Yougetimmediatenotificationofsideeffectdefects.Yougettospendmoretimeaddingvaluablefeaturestoyourproduct.JamesisoneofthefewexpertsinapplyingTDDtoembeddedC.Withhis1.5decadesoftraining,coaching,andpracticingTDDinC,C++,Java,andC#hewillleadyoufrombeinganoviceinTDDtousingthetechniquesthatfewhavemastered.ThisbookisfullofcodewrittenforembeddedCprogrammers.Youdon'tjustseetheendproduct,youseecodeandtestsevolve.Jamesleadsyouthroughthethoughtprocessanddecisionsmadeeachstepoftheway.You'lllearntechniquesfortest-drivingcoderightnexttothehardware,andyou'lllearndesignprinciplesandhowtoapplythemtoCtokeepyourcodecleanandflexible.Toruntheexamplesinthisbook,youwillneedaC/C++developmentenvironmentonyourmachine,andtheGNUGCCtoolchainorMicrosoftVisualStudioforC++(someprojectconversionmaybeneeded).
1