Join us on a literary world trip!
Add this book to bookshelf
Grey
Write a new comment Default profile 50px
Grey
Subscribe to read the full book or read the first pages for free!
All characters reduced
Test-Driven Development with Java - Create higher-quality software by writing tests first with SOLID and hexagonal architecture - cover

Test-Driven Development with Java - Create higher-quality software by writing tests first with SOLID and hexagonal architecture

Alan Mellor

Publisher: Packt Publishing

  • 0
  • 0
  • 0

Summary

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.
Available since: 01/13/2023.
Print length: 348 pages.

Other books that might interest you

  • You Won’t Feel a Thing! - The Drama Tragedy & Comedy of Nursing - cover

    You Won’t Feel a Thing! - The...

    DNP Sonja Mitrevska

    • 0
    • 0
    • 0
    From the bestselling author of Oh Sh*t, I Almost Killed You! A Little Book of Big Things Nursing School Forgot to Teach You comes the ultimate hard-hitting follow up to what nurses endure in the world of modern healthcare. With greater depth and much needed candor, You Won't Feel a Thing! The Drama, Tragedy, & Comedy of Nursing will provide valuable insights whether you are already nurse or simply want to understand the complexities of the role. Let's face it: the healthcare system has lots of work to do . . . and you probably do, too. It's time to bring the real, raw professional issues of nursing to the forefront. We have taken the hits. We have rolled with the punches. We have bobbed and weaved and bent. Let's work to ensure that bent never becomes broken.
    Show book
  • LCSW Secrets for Instant Success - "Unlock instant success with our engaging audio lessons crafted for acing the LCSW Exam Transform your prep today!" - cover

    LCSW Secrets for Instant Success...

    Rhett Moreau

    • 0
    • 0
    • 0
    LCSW Secrets for Instant Success 
    ⭐⭐ A Simplified Guide with Clear Explanations ⭐⭐  
    Are you eager to advance your career and cement your knowledge by successfully passing the LCSW Exam? 
    Looking for a complete guide that covers everything you need to ace the LCSW Exam? 
    Your search is over! 
    This comprehensive guide acts as your ultimate resource for enhancing your understanding, honing your skills, and engaging in practical exercises, paving your way to success. 
    Updated for the Latest LCSW Exam Structure. 
    Key Features of This Enhanced Guide: 
    - In-depth insights into the LCSW Exam Certification 
    - Thorough explanations of Master Key Concepts for Confident Clinical Social Work Success  
    - Effective strategies for exam preparation and execution 
    Our guide stands out due to its exhaustive coverage, essential for your exam success. Concepts are not simply touched upon; they are explored with accuracy and depth. 
    Please note that this guide is not affiliated with any official LCSW organization and is solely an independent resource designed for your benefit. 
    Crafted with a clear structure and straightforward language, our LCSW Exam Guide ensures smooth transitions between topics. Say goodbye to complex jargon and welcome clear, precise, and technically accurate content. 
    So, why wait? Click the BUY NOW button, secure your guide, and embark on your journey toward LCSW Exam success! 
    Don’t miss your chance to succeed—get your copy today!
    Show book
  • Blockchain: The New Internet? How You Can Benefit from Blockchain Technology Beyond Bitcoin Cryptocurrency and Ethereum - cover

    Blockchain: The New Internet?...

    Phillip Rawson

    • 0
    • 0
    • 0
    Blockchain technology could be the greatest innovation since the internet. 
    What exactly is Blockchain? 
    Blockchain is a simple but ingenious new protocol that allows peer-to-peer internet transactions that are both secure and anonymous. Many governments and companies are already looking at how to put blockchain technology in place in a wide range of areas. This new protocol could impact every individual on the planet within the next few years. 
    Why is this important? 
    Blockchain provides a new secure tool for the transfer “value” utilizing the internet. This is powerful, especially if you’re a craftsman who wants to make a living from your art, or you’re a businessman looking for a better platform on which to build future business. Knowing how this new technology works can give you a real competitive edge in the future. Many of the world’s leading financial institutions are already testing this technology for faster, more secure transactions. These institutions include Goldman Sachs, JPMorgan Chase, and Credit Suisse. 
    The best new is that this technology is public. It is virtually tamper-proof. And, it is available to anyone ready to take advantage of it. This is the same technology that is the driving force behind Bitcoin and other digital currencies, but the potential goes way beyond this. 
    You will learn the following:What is the Blockchain?Brief History of BlockchainImplements of BlockchainCurrent Usage of BlockchainAdvantages and Disadvantages of Using BlockchainDangers of Blcokhain TechnologyFuture Possibilities of BlockchainHow You Can Benefit from BlockchainAnd Much More! 
    Order Now!
    Show book
  • Tracking Giants - Big Trees Tiny Triumphs and Misadventures in the Forest - cover

    Tracking Giants - Big Trees Tiny...

    Amanda Lewis, Dr. Diana...

    • 0
    • 0
    • 0
    Amanda Lewis was an overachieving, burned-out book editor most familiar with trees as dead blocks of paper. A dedicated "indoorswoman," she could barely tell a birch from a beech. But that didn't stop her from pledging to visit all of the biggest trees in British Columbia, a Canadian province known for its rugged terrain and gigantic trees. 
     
     
     
    The "Champion" trees on Lewis's ambitious list ranged from mighty Western red cedars to towering arbutus. The only problem? Well, there were many . . . 
     
     
     
    Climate change and a pandemic aside, Lewis's lack of wilderness experience, the upsetting reality of old-growth logging, the ever-changing nature of trees, and the pressures of her one-year time frame complicated her quest. Burned out again—and realizing that her "checklist" approach to life might be the problem—she reframed her search for trees to something humbler and more meaningful: getting to know forests in an interconnected way. 
     
     
     
    Weaving in insights from writers and artists, Lewis uncovers what we're really after when we pursue the big things—revealing that sometimes it's the smaller joys, the mindsets we have, and the companions we're with that make us feel more connected to the natural world.
    Show book
  • HuMachine Era: Artificial Intelligence and the Reshaping of Society’s Future - cover

    HuMachine Era: Artificial...

    Dr Madee Salehi

    • 0
    • 0
    • 0
    Humachine Era by Professor Madee Salehi offers a compelling exploration of how artificial intelligence is reshaping the very fabric of society. Drawing on his unique background in sociology, computer science, computer engineering, and AI, Salehi examines the profound transformation underway across our most essential institutions, work, education, politics, and everyday life. 
    Written in an accessible, reader-friendly style, the book demystifies AI technology, explaining in clear terms what artificial intelligence is, how it works, and why its capabilities, while impressive, remain fundamentally different from human thinking. Salehi argues that AI does not truly “think” but instead relies on intensive mathematical computation, a distinction with profound implications. 
    At the heart of Humachine Era is a pressing sociological question: What happens when AI begins replacing human workers in offices, factories, schools, and other institutions? Salehi warns that society must urgently redefine employment as the primary source of livelihood and expand human rights frameworks to meet this challenge. Without adaptation, he cautions, we risk social unrest and political instability. 
    Blending technical insight with sociological foresight, Humachine Era is essential listening for anyone seeking to understand the nonlinear, rapidly accelerating changes that AI is bringing to our world—and what we must do to navigate them.
    Show book
  • Apes on the Edge - Chimpanzee Life on the West African Savanna - cover

    Apes on the Edge - Chimpanzee...

    Jill Pruetz

    • 0
    • 0
    • 0
    A moving story of survival and an eye-opening introduction to an extraordinary community of chimps and people. Fongoli chimpanzees are unique for many reasons. Their female hunters are the only apes that regularly hunt with tools, seeking out tiny bush babies with wooden spears. Unlike most other chimps, these apes fear neither water nor fire, using shallow pools to cool off in the Senegalese heat. Up to 90 percent of their home range burns annually—the result of human hunting or clearing for gold mining—and Fongoli chimpanzees have learned to predict the movement of such fires and to avoid them. The study of Fongoli chimps is also unique. While most primate research occurs in isolated reserves, Fongoli chimpanzees live alongside humans, and as primatologist and anthropologist Jill Pruetz reports, this shared habitat creates both challenges and opportunities. The issues faced by Fongoli chimpanzees—particularly food scarcity and environmental degradation—are also issues faced by their human neighbors. This connection is one reason Pruetz, who has studied Fongoli apes for over two decades, created the nonprofit Neighbor Ape in 2008 to provide for the welfare of the humans who share their landscape with apes. It is also why Pruetz decided to write this book, the first to offer readers a view of these chimps’ lives and to explain the specific conservation efforts needed to help them. Incorporating stories from Pruetz’s time in the field, including the compelling rescue of a young chimp from poachers, Apes on the Edge opens a fascinating window into primate research, conservation, and the inner workings of a very special population of our closest nonhuman relatives.
    Show book