Skip to Content
Modern C++ Programming with Test-Driven Development
book

Modern C++ Programming with Test-Driven Development

by Jeff Langr
October 2013
Intermediate to advanced
368 pages
9h 20m
English
Pragmatic Bookshelf
Content preview from Modern C++ Programming with Test-Driven Development

8.3 Themes

We’ll work through an example of incrementally improving a legacy codebase. You’ll learn a handful of specific techniques, each tailored to the specific legacy challenge at hand. The approaches you’ll learn are a subset of at least a couple dozen such techniques found in Working Effectively with Legacy Code [Fea04] and elsewhere. You’ll discover that the techniques are simple to learn and that once you’ve learned a handful, it’s pretty easy to figure out many of the rest.

Core themes for approaching legacy challenges include the following:

  • Test-drive whenever you can. Test-drive code changes into either new members or even new classes when possible.

  • Don’t decrease the test coverage. It’s very easy to introduce a small amount of code ...

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

Effective Modern C++

Effective Modern C++

Scott Meyers
Modern CMake for C++

Modern CMake for C++

Rafał Świdziński
Embracing Modern C++ Safely

Embracing Modern C++ Safely

John Lakos, Vittorio Romeo, Rostislav Khlebnikov, Alisdair Meredith

Publisher Resources

ISBN: 9781941222423Errata