Tritt ein in eine Welt voller Geschichten
Ratgeber
Test-driven development enables developers to craft well-designed code and prevent defects. It’s a simple yet powerful tool that helps you focus on your code design, while automatically checking that your code works correctly. Mastering TDD will enable you to effectively utilize design patterns and become a proficient software architect.
The book begins by explaining the basics of good code and bad code, bursting common myths, and why Test-driven development is crucial. You’ll then gradually move toward building a sample application using TDD, where you’ll apply the two key rhythms -- red, green, refactor and arrange, act, assert. Next, you’ll learn how to bring external systems such as databases under control by using dependency inversion and test doubles. As you advance, you’ll delve into advanced design techniques such as SOLID patterns, refactoring, and hexagonal architecture. You’ll also balance your use of fast, repeatable unit tests against integration tests using the test pyramid as a guide. The concluding chapters will show you how to implement TDD in real-world use cases and scenarios and develop a modern REST microservice backed by a Postgres database in Java 17.
By the end of this book, you’ll be thinking differently about how you design code for simplicity and how correctness can be baked in as you go.
© 2023 Packt Publishing (E-Book): 9781803237961
Erscheinungsdatum
E-Book: 13. Januar 2023
Tags
Über 600.000 Titel
Lade Titel herunter mit dem Offline Modus
Exklusive Titel und Storytel Originals
Sicher für Kinder (Kindermodus)
Einfach jederzeit kündbar
Für alle, die unbegrenzt hören und lesen möchten
1 Konto
Unbegrenzter Zugriff
Jederzeit kündbar
Wechsel zu Basic jederzeit möglich
Für alle, die gelegentlich hören und lesen.
1 Konto
20 Stunden/pro Monat
Jederzeit kündbar
Abo-Upgrade jederzeit möglich
Deutsch
Deutschland