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

A2.3 Practice Makes Perfect

If you haven’t already, you should follow the exact steps detailed in this appendix to build the Roman numeral converter. Don’t stop there, however. Implement the converter a second time, ​without​ referring to this book. Think about what the next step should be, build a test, find a simple way to implement it, and refactor your code. Then do it again—maybe not immediately, but perhaps the next day or a week later. Time yourself with each run through the kata, seeking to minimize the keystrokes and effort required to derive a complete solution. If you’ve been away from TDD or C++ for a while, use it as a warm-up exercise.

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