Modern C++ Programming with Test-Driven Development

Langr, Jeff

  • 4.42 out of 5 stars
    122 ratings by Goodreads
ISBN 10: 1937785483 ISBN 13: 9781937785482
Published by The Pragmatic Programmers, 2014
New Paperback

From Rarewaves.com UK, London, United Kingdom Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

AbeBooks Seller since June 11, 2025

This specific item is no longer available.

About this Item

Description:

f 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. Seller Inventory # LU-9781937785482

  • 4.42 out of 5 stars
    122 ratings by Goodreads

Report this item

Synopsis:

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.

About the Author: Jeff Langr wrote Agile in a Flash with Tim Ottinger. It's a unique set of reference and recommendation cards that you can find tacked to many monitors and walls in agile shops. He has written other books and more than one hundred articles on software development, and trains and consults in software development, including test-driven development.

"About this title" may belong to another edition of this title.

Bibliographic Details

Title: Modern C++ Programming with Test-Driven ...
Publisher: The Pragmatic Programmers
Publication Date: 2014
Binding: Paperback
Condition: New

Top Search Results from the AbeBooks Marketplace

Stock Image

Langr, Jeff
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
Used Paperback

Seller: HPB-Red, Dallas, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Good. Connecting readers with great books since 1972! Used textbooks may not include companion materials such as access codes, etc. May have some wear or writing/highlighting. We ship orders daily and Customer Service is our top priority! Seller Inventory # S_368324751

Contact seller

Buy Used

US$ 14.51
Convert currency
Shipping: US$ 3.75
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Seller Image

Langr, Jeff
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
Used Softcover

Seller: ZBK Books, Carlstadt, NJ, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: good. Fast Shipping - Good and clean conditions used book. Pages and cover are intact. Limited notes marks and highlighting may be present. May show signs of normal shelf wear and bends on edges. Item may be missing CDs or access codes. May include library marks. Seller Inventory # ZWV.1937785483.G

Contact seller

Buy Used

US$ 17.75
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Langr, Jeff
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
Used paperback

Seller: Swan Trading Company, GEORGETOWN, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

paperback. Condition: Very Good. Softcover shows only light cover wear. Text is unmarked and binding tight. Ships FAST! Seller Inventory # 2412220013

Contact seller

Buy Used

US$ 19.24
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Langr, Jeff
Published by Pragmatic Programmers, LLC, The, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
Used Softcover

Seller: Better World Books, Mishawaka, IN, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: Very Good. Former library book; may include library markings. Used book that is in excellent condition. May show signs of wear or have minor defects. Seller Inventory # 13005392-6

Contact seller

Buy Used

US$ 20.35
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 2 available

Add to basket

Stock Image

Langr, Jeff
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
New paperback

Seller: GridFreed, North Las Vegas, NV, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

paperback. Condition: New. In shrink wrap. Looks like an interesting title! Seller Inventory # 100-44899

Contact seller

Buy New

US$ 26.99
Convert currency
Shipping: US$ 5.45
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Langr, Jeff
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
Used Paperback

Seller: WorldofBooks, Goring-By-Sea, WS, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Very Good. The book has been read, but is in excellent condition. Pages are intact and not marred by notes or highlighting. The spine remains undamaged. Seller Inventory # GOR008005576

Contact seller

Buy Used

US$ 31.76
Convert currency
Shipping: US$ 7.61
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Seller Image

Langr, Jeff
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
New Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 19742204-n

Contact seller

Buy New

US$ 35.21
Convert currency
Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds

Quantity: 14 available

Add to basket

Stock Image

Langr, Jeff
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
Used Softcover

Seller: medimops, Berlin, Germany

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: very good. Gut/Very good: Buch bzw. Schutzumschlag mit wenigen Gebrauchsspuren an Einband, Schutzumschlag oder Seiten. / Describes a book or dust jacket that does show some signs of wear on either the binding, dust jacket or pages. Seller Inventory # M01937785483-V

Contact seller

Buy Used

US$ 36.66
Convert currency
Shipping: US$ 11.71
From Germany to U.S.A.
Destination, rates & speeds

Quantity: 2 available

Add to basket

Seller Image

Langr, Jeff
Published by Pragmatic Bookshelf, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
New Softcover

Seller: GreatBookPricesUK, Woodford Green, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 19742204-n

Contact seller

Buy New

US$ 37.41
Convert currency
Shipping: US$ 20.38
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 14 available

Add to basket

Stock Image

Jeff Langr
Published by The Pragmatic Programmers, 2013
ISBN 10: 1937785483 ISBN 13: 9781937785482
New Paperback / softback

Seller: THE SAINT BOOKSTORE, Southport, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback / softback. Condition: New. New copy - Usually dispatched within 4 working days. 750. Seller Inventory # B9781937785482

Contact seller

Buy New

US$ 37.43
Convert currency
Shipping: US$ 19.36
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 7 available

Add to basket

There are 21 more copies of this book

View all search results for this book