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

  • Unwilded - Finding Our Way Back to Nature - cover

    Unwilded - Finding Our Way Back...

    Alastair Humphreys

    • 0
    • 0
    • 0
    Humans once lived immersed in the natural world. Today, many of us spend our lives indoors, disconnected from the landscapes, wildlife and seasonal rhythms that shaped our ancestors for millennia.
    In Unwilded, National Geographic Adventurer of the Year Alastair Humphreys explores the consequences of this growing separation from nature and how it affects our wellbeing, childhood, education, communities and sense of responsibility for the planet.
    At the heart of the book is the idea of shifting baseline syndrome: the gradual process by which each generation accepts a diminished natural world as normal. From the loss of the Sycamore Gap tree to the extinction of the passenger pigeon, Humphreys reveals how easily we forget what has been lost.
    Blending personal stories, environmental history and practical insight, Unwilded is an invitation to look more closely at the places we live and to rediscover the wonder, beauty and responsibility that come with paying attention.
    Show book
  • Howther goes Again - cover

    Howther goes Again

    Richard Cliff

    • 0
    • 0
    • 0
    The story is of a young rabbit who seeks adventure beyond his immediate surroundings. His search for fun taking him to America, where he meets all kind of other animals who lead bizarre lifestyles and where lurks the treachery of man. This leads Howther to take a grown-up stance against evil-doing, putting him at the forefront of danger among both, animals and man alike until he finally conquers all. It is a tale of growing up in a dangerous world.
    Show book
  • Love Your Mother - 50 States 50 Stories and 50 Women United for Climate Justice - cover

    Love Your Mother - 50 States 50...

    Mallory McDuff

    • 0
    • 0
    • 0
    From elder voices opposing the Dakota Pipeline to young people running for office to advocate for change, every day we see real-life stories about how women are making a collective difference on climate justice. Women are also disproportionately impacted by climate change and thus are critical to transforming society away from dependence on fossil fuels and toward renewable energy and environmental equity. 
     
     
     
    As a mother and a professor of environmental education, Mallory McDuff wanted to give her two daughters and her students a roadmap to engage in climate justice in their communities, rather than be left feeling paralyzed by the enormity of the problem. She set out to find women of diverse ages, backgrounds, and vocations—one from each of the fifty US states—as inspiration for a new kind of leadership focused on the heart of the climate crisis. Love Your Mother lifts up the stories of these women working toward a viable future, from farmer and rancher Donna Kilpatrick in Arkansas to writer Latria Graham in South Carolina. 
     
     
     
    From Alabama to Alaska, from Wisconsin to Wyoming, these women are poets, physicians, climate scientists, students, farmers, writers, documentary filmmakers, and more. Their work lights the way for conversation and collective action in our homes and in the world. It's time we follow their lead.
    Show book
  • Care Without Pathology - How Trans-Health Activists Are Changing Medicine - cover

    Care Without Pathology - How...

    Christoph Hanssmann

    • 0
    • 0
    • 0
    Over the past two decades, medical and therapeutic approaches to transgender patients have changed radically, from treating a supposed pathology to offering gender-affirming care. Based on ethnographic fieldwork in New York City and Buenos Aires, Care without Pathology moves across the Americas to show how trans- health activists have taken on the project of depathologization. 
     
     
     
    In New York, Christoph Hanssmann examines activist attempts to overturn bans on using public health dollars to fund trans- health care. In Argentina, he traces how trans- activists marshaled medical statistics and personal biographies to reveal state violence directed against trans- people and travestis. Hanssmann also demonstrates the importance of understanding transphobia in the broader context of gendered racism, ableism, and antipoverty, arguing for the rise of a thoroughly coalition-based mass mobilization. 
     
     
     
    Care without Pathology highlights the distributive arguments activists made to access state funding for health care, combating state arguments that funding trans- health care is too specialized, too expensive, and too controversial. Hanssmann situates trans- health as a crucible within which sweeping changes are taking place—with potentially far-reaching effects on the economic and racial barriers to accessing care.
    Show book
  • SAS For Dummies 3rd Edition - cover

    SAS For Dummies 3rd Edition

    Chris Hemedinger

    • 0
    • 0
    • 0
    Data and analytics are essential for any business, giving insight into what's working, what can be improved, and what else needs to be done. SAS software helps you make sure you're doing data right, with a host of data management, reporting, and analysis tools. SAS For Dummies teaches you the essentials, helping you navigate this statistical software and turn information into value. In this book, learn how to gather data, create reports, and analyze results. You'll also discover how SAS machine learning and AI can help deliver decisions based on data. Even if you're new to data and analytics, this guide will turn you into an SAS power user. 
     
     
     
    ● Become familiar with the most popular SAS applications 
     
     
     
    ● Connect to data, organize your information, and adopt sound data security practices 
     
     
     
    ● Get a primer on working with data sets, variables, and statistical analysis 
     
     
     
    ● Explore and analyze data through SAS programming and rich application interfaces 
     
     
     
    ● Create and share graphs interactive visualizations to deliver insights 
     
     
     
    This is the perfect Dummies guide for new SAS users looking to improve their skills—in any industry and for any organization size.
    Show book
  • The Language of Climate Politics - Fossil-Fuel Propaganda and How to Fight It - cover

    The Language of Climate Politics...

    Genevieve Guenther

    • 0
    • 0
    • 0
    In an illuminating analysis, Dr. Genevieve Guenther shows that the climate debate is not, in fact, neatly polarized, with Republicans obstructing climate action and Democrats advancing climate solutions. Partisans on the right and the left often repeat the same fossil-fuel talking points, and this repetition produces a centrist consensus upholding the status quo, even as global heating accelerates. 
     
     
     
    Weaving this analysis through fascinating critical histories of the terms that dominate the language of climate politics—the words we, alarmist, cost, growth, "India and China," innovation, and resilience—Dr. Guenther shows how this consensus is established. Fossil-fuel interests weaponize the discourses of science, economics, and activism, co-opting and twisting climate language to help greenwash their plans for ongoing extraction. But all too often climate scientists, economists, and even advocates will unwittingly echo the false and dangerous assumptions of their supposed political opponents. This apparent agreement between foes, filtered through the news media, not only influences our commonsense yet mistaken views about the climate crisis but also enables powerful decisionmakers to justify the corporate and policy actions that threaten us all. Revealing this dynamic, Guenther shows how to transform it.
    Show book