Modern C++ Programming with Test-Driven Development

Modern C++ Programming with Test-Driven Development

If you program in C++ you've been neglected. Test-driven development (TDD) is a modern software development practice that can dramatically reduce the number of defects in systems, produce more maintainable code, and give you the confidence to change your software to meet changing needs. But C++ programmers have been ignored by those promoting TDD--until now. In this book, Jeff Langr gives you hands-on lessons in the challenges and rewards of doing TDD in C++. Modern C++ Programming With Test-Driven Development, the only comprehensive treatment on TDD in C++ provides you with everything you need to know about TDD, and the challenges and benefits of implementing it in your C++ systems. Its many detailed code examples take you step-by-step from TDD basics to advanced concepts. As a veteran C++ programmer, you're already writing high-quality code, and you work hard to maintain code quality. It doesn't have to be that hard. In this book, you'll learn: how to use TDD to improve legacy C++ systems how to identify and deal with troublesome system dependencies how to do dependency injection, which is particularly tricky in C++ how to use testing tools for C++ that aid TDD new C++11 features that facilitate TDD As you grow in TDD mastery, you'll discover how to keep a massive C++ system from becoming a design mess over time, as well as particular C++ trouble spots to avoid. You'll find out how to prevent your tests from being a maintenance burden and how to think in TDD without giving up your hard-won C++ skills. Finally, you'll see how to grow and sustain TDD in your team. Whether you're a complete unit-testing novice or an experienced tester, this book will lead you to mastery of test-driven development in C++. What You Need A C++ compiler running under Windows or Linux, preferably one that supports C++11. Examples presented in the book were built under gcc 4.7.2. Google Mock 1.6 (downloadable for free; it contains Google Test as well) or an alternate C++ unit testing tool. Most examples in the book are written for Google Mock, but it isn't difficult to translate them to your tool of choice. A good programmer's editor or IDE. cmake, preferably. Of course, you can use your own preferred make too. CMakeLists.txt files are provided for each project. Examples provided were built using cmake version 2.8.9. Various freely-available third-party libraries are used as the basis for examples in the book. These include: cURL JsonCpp Boost (filesystem, date_time/gregorian, algorithm, assign) Several examples use the boost headers/libraries. Only one example uses cURL and JsonCpp.

Download Now
Author
Publisher Pragmatic Bookshelf
Release Date
ISBN 1680504029
Pages 368 pages
Rating 4/5 (26 users)

More Books:

Modern C++ Programming with Test-Driven Development
Language: en
Pages: 368
Authors: Jeff Langr
Categories: Computers
Type: BOOK - Published: 2013-10-10 - Publisher: Pragmatic Bookshelf

GET EBOOK

If you program in C++ you've been neglected. Test-driven development (TDD) is a modern software development practice that can dramatically reduce the number of
Modern C++ Programming with Test-Driven Development
Language: en
Pages: 360
Authors: Jeff Langr
Categories: Computers
Type: BOOK - Published: 2014-09-21 - Publisher: CreateSpace

GET EBOOK

If you program in C++ you've been neglected. Test-driven development (TDD) is a modern software development practice that can dramatically reduce the number of
Test Driven Development for Embedded C
Language: en
Pages: 356
Authors: James W. Grenning
Categories: Computers
Type: BOOK - Published: 2011-04-25 - Publisher: Pragmatic Bookshelf

GET EBOOK

Another day without Test-Driven Development means more time wasted chasing bugs and watching your code deteriorate. You thought TDD was for someone else, but it
Practices for Scaling Lean & Agile Development
Language: en
Pages: 624
Authors: Craig Larman
Categories: Computers
Type: BOOK - Published: 2010-01-26 - Publisher: Pearson Education

GET EBOOK

Lean and Agile Development for Large-Scale Products: Key Practices for Sustainable Competitive Success Increasingly, large product-development organizations are
Test-driven Development
Language: en
Pages: 220
Authors: Kent Beck
Categories: Computers
Type: BOOK - Published: 2003 - Publisher: Addison-Wesley Professional

GET EBOOK

Write clean code that works with the help of this groundbreaking software method. Example-driven teaching is the basis of Beck's step-by-step instruction that w
Modern Programming: Object Oriented Programming and Best Practices
Language: en
Pages: 266
Authors: Graham Lee
Categories: Computers
Type: BOOK - Published: 2019-06-28 - Publisher: Packt Publishing Ltd

GET EBOOK

Discover the untapped features of object-oriented programming and use it with other software tools to code fast, efficient applications. Key FeaturesExplore the
Clean C++
Language: en
Pages: 291
Authors: Stephan Roth
Categories: Computers
Type: BOOK - Published: 2017-09-27 - Publisher: Apress

GET EBOOK

Write maintainable, extensible, and durable software with modern C++. This book is a must for every developer, software architect, or team leader who is interes
Embedded and Real Time System Development: A Software Engineering Perspective
Language: en
Pages: 330
Authors: Mohammad Ayoub Khan
Categories: Technology & Engineering
Type: BOOK - Published: 2013-11-19 - Publisher: Springer

GET EBOOK

Nowadays embedded and real-time systems contain complex software. The complexity of embedded systems is increasing, and the amount and variety of software in th
Mechatronics 2019: Recent Advances Towards Industry 4.0
Language: en
Pages: 515
Authors: Roman Szewczyk
Categories: Technology & Engineering
Type: BOOK - Published: 2019-08-28 - Publisher: Springer Nature

GET EBOOK

This book gathers papers presented at Mechatronics 2019, an international conference held in Warsaw, Poland, from September 16 to 18, 2019. The contributions di
Software Engineering for Modern Web Applications: Methodologies and Technologies
Language: en
Pages: 402
Authors: Brandon, Daniel M.
Categories: Computers
Type: BOOK - Published: 2008-06-30 - Publisher: IGI Global

GET EBOOK

"This book presents current, effective software engineering methods for the design and development of modern Web-based applications"--Provided by publisher.