Cantitate/Preț
Produs

Test-Driven Development with Java

Autor Alan Mellor
en Limba Engleză Paperback – 13 ian 2023

Considerăm acest volum o resursă esențială pentru inginerii software care doresc să integreze rigoarea metodologică în fluxul de lucru cotidian. Ecosistemul explorat este ancorat în Java 17, punând accent pe utilizarea bazelor de date Postgres și pe dezvoltarea de microservicii REST. Autorul nu se rezumă la teorie, ci demonstrează aplicabilitatea practică a arhitecturii hexagonale și a principiilor SOLID într-un context de producție.

Remarcăm structura pragmatică a cărții, care ghidează cititorul prin ritmurile esențiale ale dezvoltării ghidate de teste: ciclul Red-Green-Refactor pentru designul incremental și structura Arrange-Act-Assert pentru scrierea testelor clare. Spre deosebire de abordările pur academice, Alan Mellor introduce concepte complexe precum inversarea dependențelor și utilizarea obiectelor de tip „test doubles” pentru a menține controlul asupra sistemelor externe. Ca și Viktor Farcic în Java Test-Driven Development, autorul distilează experiență reală în principii acționabile, oferind o perspectivă clară asupra modului în care testarea automatizată devine un instrument de design, nu doar unul de verificare.

Apreciem în mod deosebit modul în care este tratată „piramida testelor”, oferind o strategie concretă pentru a balansa testele unitare, rapide și repetabile, cu testele de integrare mai complexe. Cartea reușește să demonstreze că TDD nu este un obstacol în calea vitezei de livrare, ci un mecanism de prevenire a defectelor și de simplificare a arhitecturii software pe termen lung.

Citește tot Restrânge

Preț: 34642 lei

Puncte Express: 520

Carte tipărită la comandă

Livrare economică 19 mai-02 iunie


Specificații

ISBN-13: 9781803236230
ISBN-10: 180323623X
Pagini: 348
Dimensiuni: 191 x 235 x 19 mm
Greutate: 0.6 kg
Editura: Packt Publishing

De ce să citești această carte

Recomandăm această carte dezvoltatorilor Java seniori și arhitecților care vor să treacă de la scrierea testelor ca sarcină secundară la utilizarea lor ca motor de design. Veți câștiga abilitatea de a construi sisteme robuste, ușor de refactorizat, utilizând Java 17 și arhitecturi moderne. Este un ghid practic pentru cei care urmăresc calitatea codului prin aplicarea riguroasă a principiilor SOLID și a arhitecturii hexagonale.


Despre autor

Alan Mellor este un specialist cu experiență vastă în ecosistemul Java, dedicat promovării practicilor de inginerie software care pun accent pe mentenanță și claritate. Expertiza sa se concentrează pe arhitectura sistemelor și pe implementarea metodologiilor agile de dezvoltare. În cadrul acestui volum publicat de Packt Publishing, Mellor își folosește cunoștințele tehnice pentru a demonta miturile comune despre TDD, oferind soluții aplicabile pentru provocările reale întâlnite în dezvoltarea microserviciilor moderne.


Notă biografică

Alan Mellor is an academy lead at BJSS, training the next generation of consulting software engineers, and the author of Java OOP Done Right: Create object-oriented code you can be proud of with modern Java. Alan started with a Sinclair ZX81 computer with 1K of RAM and is very happy to have better computers now. Alan's work includes industrial control in C, web applications for e-commerce, gaming, and banking in Java and Go, and document warehousing in C++. His most visible code is part of Nokia Bounce and the RAF Red Arrows flight simulator if you go back far enough.

Descriere scurtă

Drive development with automated tests and gain the confidence you need to write high-quality software Key Features:Get up and running with common design patterns and TDD best practices Learn to apply the rhythms of TDD - arrange, act, assert and red, green, refactor Understand the challenges of implementing TDD in the Java ecosystem and build a plan Book Description: 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. What You Will Learn:Discover how to write effective test cases in Java Explore how TDD can be incorporated into crafting software Find out how to write reusable and robust code in Java Uncover common myths about TDD and understand its effectiveness Understand the accurate rhythm of implementing TDD Get to grips with the process of refactoring and see how it affects the TDD process Who this book is for: This book is for expert Java developers and software architects crafting high-quality software in Java. Test-Driven Development with Java can be picked up by anyone with a strong working experience in Java who is planning to use Test-driven development for their upcoming projects.