Test-Driven Development by Example - Kent Beck - Librairie Eyrolles
Tous nos rayons

Déjà client ? Identifiez-vous

Mot de passe oublié ?

Nouveau client ?

CRÉER VOTRE COMPTE
Test-Driven Development by Example
Ajouter à une liste

Librairie Eyrolles - Paris 5e
Disponible en magasin

Test-Driven Development by Example

Test-Driven Development by Example

Kent Beck

240 pages, parution le 03/12/2002

Résumé

Clean code that works--now. This is the seeming contradiction that lies behind much of the pain of programming. Test-driven development replies to this contradiction with a paradox--test the program before you write it.

A new idea? Not at all. Since the dawn of computing, programmers have been specifying the inputs and outputs before programming precisely. Test-driven development takes this age-old idea, mixes it with modern languages and programming environments, and cooks up a tasty stew guaranteed to satisfy your appetite for clean code that works-now.

Developers face complex programming challenges every day, yet they are not always readily prepared to determine the best solution. More often than not, such difficult projects generate a great deal of stress and bad code. To garner the strength and courage needed to surmount seemingly Herculean tasks, programmers should look to test-driven development (TDD), a proven set of techniques that encourage simple designs and test suites that inspire confidence.

By driving development with automated tests and then eliminating duplication, any developer can write reliable, bug-free code no matter what its level of complexity. Moreover, TDD encourages programmers to learn quickly, communicate more clearly, and seek out constructive feedback.

Readers will learn to:
  • Solve complicated tasks, beginning with the simple and proceeding to the more complex.
  • Write automated tests before coding.
  • Grow a design organically by refactoring to add design decisions one at a time.
  • Create tests for more complicated logic, including reflection and exceptions.
  • Use patterns to decide what tests to write.
  • Create tests using xUnit, the architecture at the heart of many programmer-oriented testing tools.

This book follows two TDD projects from start to finish, illustrating techniques programmers can use to easily and dramatically increase the quality of their work. The examples are followed by references to the featured TDD patterns and refactorings. With its emphasis on agile methods and fast development strategies, Test-Driven Development is sure to inspire readers to embrace these under-utilized but powerful techniques.

Contents

I. THE MONEY EXAMPLE.
  • Multi-Currency Money.
  • Money Example.
  • Degenerate Objects.
  • Equality for All.
  • Privacy.
  • Franc-ly Speaking.
  • Equality for All, Redux.
  • Apples and Oranges.
  • Makin' Objects.
  • Times We're Livin' In.
  • Interesting Times.
  • The Root of all Evil.
  • Addition, Finally.
  • Make It.
  • Change.
  • Mixed Currencies.
  • Abstraction, Finally.
  • Money Retrospective.
II. THE XUNIT EXAMPLE.
  • First Steps to xUnit
  • Set the Table.
  • Cleaning Up After.
  • Counting.
  • Dealing with Failure.
  • How Suite It Is.
  • xUnit Retrospective.
Part III. Patterns for Test-Driven Development.
  • Test-Driven Development Patterns.
  • Red Bar Patterns.
  • Testing Patterns.
  • Green Bar Patterns.
  • xUnit Patterns.
  • Design Patterns.
  • Refactoring.
  • Mastering TDD.
Appendix 1: Influence Diagrams.
Appendix 2: Fibonacci.

L'auteur - Kent Beck

Kent Beck is the founder and director of the Three Rivers Institute (TRI). TRI provides a harmonious environment for individuals from many disciplines to gather and investigate the principles underlying emergent software development and techniques for leveraging these principles. Mr. Beck has pioneered patterns for software development, the xUnit family of testing frameworks, the HotDraw drawing editor framework, CRC cards, refactoring, and most recently Extreme Programming. He is the author or co-author of Extreme Programming Explained (Addison-Wesley, 2000), Planning Extreme Programming (Addison-Wesley, 2000), and The Smalltalk Best Practice Patterns (Prentice Hall, 1996). He lives on 20 acres in rural southern Oregon with his wife, five children, four dogs, two sheep, and a variable number of domestic fowl. He received his undergraduate degree from the University of Oregon.

Caractéristiques techniques

  PAPIER
Éditeur(s) Addison Wesley
Auteur(s) Kent Beck
Parution 03/12/2002
Nb. de pages 240
Format 18,6 x 23,4
Couverture Broché
Poids 477g
Intérieur Noir et Blanc
EAN13 9780321146533

Avantages Eyrolles.com

Livraison à partir de 0,01 en France métropolitaine
Paiement en ligne SÉCURISÉ
Livraison dans le monde
Retour sous 15 jours
+ d'un million et demi de livres disponibles
satisfait ou remboursé
Satisfait ou remboursé
Paiement sécurisé
modes de paiement
Paiement à l'expédition
partout dans le monde
Livraison partout dans le monde
Service clients sav@commande.eyrolles.com
librairie française
Librairie française depuis 1925
Recevez nos newsletters
Vous serez régulièrement informé(e) de toutes nos actualités.
Inscription