I studied computer science at university, and of course I completed several modules called “software engineering” or variations on the name.

I was not new to programming when I started my degree and had already implemented a fully working inventory system for my high school’s Careers Library. I remember being extremely confused by “software engineering.” It all seemed designed to get in the way of actually writing code and delivering an application.

When I graduated in the early years of this century, I worked in the IT department for a large car company. As you’d expect, they were big on software engineering. It’s here I saw my first (but certainly not my last!) Gantt chart, and it’s where I experienced waterfall development. That is, I saw software teams spending significant amounts of time and effort in the requirements gathering and design stages and much less time in implementation (coding), which of course overran into testing time and then the testing...well, there wasn’t much time left for that.

It seemed like what we were told was “software engineering” was actually getting in the way of creating quality applications that were useful to our customers.

Like many developers, I felt there must be a better way.

I read about Extreme Programming and Scrum. I wanted to work in an agile team and moved jobs a few times trying to find one. Plenty said they were agile, but often this boiled down to putting requirements or tasks on index cards, sticking them on the wall, calling a week a sprint , and then demanding the development team deliver “x” many cards in each sprint to meet some arbitrary deadline. Getting rid of the traditional “software engineering” approach didn’t seem to work either.

Ten years into my career as a developer, I interviewed to work for a financial exchange in London. The head of software told me they did Extreme Programming, including TDD and pair programming. He told me they were doing something called continuous delivery , which was like continuous integration but all the way into production.

I’d been working for big investment banks where deployment took a minimum of three hours and was “automated” by the means of a 12-page document of manual steps to follow and commands to type. Continuous delivery seemed like a lovely idea but surely was not possible.

The head of software was Dave Farley, and he was in the process of writing his Continuous Delivery book when I joined the company.

I worked with him there for four life-changing, career-making years. We really did do pair programming, TDD, and continuous delivery. I also learned about behavior-driven development, automated acceptance testing, domain-driven design, separation of concerns, anti-corruption layers, mechanical sympathy, and levels of indirection.

I learned about how to create high-performance, low-latency applications in Java. I finally understood what big O notation really meant and how it applied to real-world coding. In short, all that stuff I had learned at university and read in books was actually used.

It was applied in a way that made sense, worked, and delivered an extremely high-quality, high-performance application that offered something not previously available. More than that, we were happy in our jobs and satisfied as developers. We didn’t work overtime, we didn’t have crunch times close to releases, the code did not become more tangled and unmaintainable over those years, and we consistently and regularly delivered new features and “business value.”

How did we achieve this? By following the practices Dave outlines in this book. It wasn’t formalized like this, and Dave has clearly brought in his experiences from many other organizations to narrow down to the specific concepts that are applicable for a wider range of teams and business domains.

What works for two or three co-located teams on a high-performance financial exchange isn’t going to be exactly the same thing that works for a large enterprise project in a manufacturing firm or for a fast-moving startup.

In my current role as a developer advocate, I speak to hundreds of developers from all sorts of companies and business domains, and I hear about their pain points (many of them, even now, not dissimilar to my own experiences 20 years ago) and success stories. The concepts Dave has covered in this book are general enough to work in all these environments and specific enough to be practically helpful.

Funnily enough, it was after I left Dave’s team that I started being uncomfortable with the title software engineer . I didn’t think that what we do as developers is engineering; I didn’t think that it was engineering that had made that team successful. I thought engineering was too structured a discipline for what we do when we’re developing complex systems. I like the idea of it being a “craft,” as that encapsulates the idea of both creativity and productivity, even if it doesn’t place enough emphasis on the teamwork that’s needed for working on software problems at scale. Reading this book has changed my mind.

Dave clearly explains why we have misconceptions of what “real” engineering is. He shows how engineering is a science-based discipline, but it does not have to be rigid. He walks through how scientific principles and engineering techniques apply to software development and talks about why the production-based techniques we thought were engineering are not appropriate to software development.

What I love about what Dave has done with this book is that he takes concepts that might seem abstract and difficult to apply to the real code we have to work with in our jobs and shows how to use them as tools to think about our specific problems.

The book embraces the messy reality of developing code, or should I say, software engineering: there is no single correct answer. Things will change. What was correct at one point in time is sometimes very wrong even a short time later.

The first half of the book offers practical solutions for not only surviving this reality but thriving in it. The second half takes topics that might be considered abstract or academic by some and shows how to apply them to design better (e.g., more robust or more maintainable or other characteristics of “better”) code.

Here, design absolutely does not mean pages and pages of design documents or UML diagrams but may be as simple as “thinking about the code before or during writing it.” (One of the things I noticed when I pair programmed with Dave was how little time he spends actually typing the code. Turns out, thinking about what we write before we write it can actually save us a lot of time and effort.)

Dave doesn’t avoid, or try to explain away, any contradictions in using the practices together or potential confusion that can be caused by a single one. Instead, because he takes the time to talk about the trade-offs and common areas of confusion, I found myself understanding for the first time that it is precisely the balance and the tension between these things that creates “better” systems. It’s about understanding that these things are guidelines, understanding their costs and benefits, and thinking of them as lenses to use to look at the code/design/architecture, and occasionally dials to twiddle, rather than binary, black-and-white, right-or-wrong rules.

Reading this book made me understand why we were so successful, and satisfied, as “software engineers” during that time I worked with Dave. I hope that by reading this book, you benefit from Dave’s experience and advice, without having to hire a Dave Farley for your team.

Happy engineering!

—Trisha Gee, developer advocate and Java champion