Video description
In Video Editions the narrator reads the book while the content, figures, code listings, diagrams, and text appear on the screen. Like an audiobook that you can also watch as a video.
Write object-oriented code that’s manageable, maintainable, and future-proof.
Keeping your object-oriented designs simple demands a creative approach—and that’s exactly what you’ll find in Simple Object-Oriented Design. This book is full of patterns and principles for reducing complexity, each one proven in author Mauricio Aniche’s 20-year career in software development. You’ll learn how to tackle code’s natural growth in complexity, and adopt a “good enough” approach that means it’s easy to refactor when requirements change.
You’ll discover insightful principles for:
- Making code readable and documented
- Improving consistency and encapsulation
- Managing dependencies
- Designing abstractions
- Handling infrastructure
- Effective modularization
Learn what constitutes both good and bad object-oriented software design, discover how to make better trade-offs in design decisions, and when to embrace complexity over simpler data structures. With this book as your vital reference, you’ll be ready to write code that will last the test of time, without slowing feature delivery to a crawl.
About the Technology
Even a simple object-oriented application can quickly become complex as it evolves. Each new class, method, or feature means more state and abstractions to manage, which in turn increases complexity, maintenance, and time spent detangling legacy code. It takes effort and skill to keep your codebase simple. This book shows you how.
About the Book
Simple Object-Oriented Design: Create clean, maintainable applications presents practical design principles you can use to keep an object-oriented codebase simple as it grows and changes. Written as a collection of practical techniques you can apply in any OO language, it offers tips for concise code, managing dependencies and modules, and designing flexible abstractions. Illuminating figures, real-world examples, and insightful exercises make each principle stick.
What's Inside
- Writing simple, understandable classes
- Flexible abstractions to extend your designs
- Reducing the impact of coupling
About the Reader
Readers should be familiar with an object-oriented language like Java, C#, or Python.
About the Author
Maurício Aniche is a software engineer with 20 years of experience. He’s also an Assistant Professor in Software Engineering at Delft University of Technology, and the author of Effective Software Testing.
Quotes
Simple and effective. Highly recommended read!
- Davide Spadini, Meta
It is refreshing to find a book that tackles software quality in a straightforward and pragmatic manner. A must-read for any developer in the trenches.
- Hugo Marques, Netflix
Fantastic! Read and apply the incredibly important principles in this book.
- Michael Hilton, Carnegie Mellon University
Everything you need to know to keep code simple and clean. It will fascinate you how easy solutions can be if you have the correct mindset.
- Rafael Werner, ING
A balanced and pragmatic view based on evidence. I strongly recommend it!
- Paulo Afonso Parreira Junior, University of Minas Gerais
Table of contents
- Chapter 1. It’s all about managing complexity
- Chapter 1. Designing simple object-oriented systems
- Chapter 1. Simple design as a day-to-day activity
- Chapter 1. A short dive into the architecture of an information system
- Chapter 1. The example project: PeopleGrow!
- Chapter 1. Exercises
- Chapter 1. Summary
- Chapter 2. Making code small
- Chapter 2. Make code readable and documented
- Chapter 2. Move new complexity away from existing classes
- Chapter 2. Exercises
- Chapter 2. Summary
- Chapter 3. Keeping objects consistent
- Chapter 3. Design effective data validation mechanisms
- Chapter 3. Encapsulate state checks
- Chapter 3. Provide only getters and setters that matter
- Chapter 3. Model aggregates to ensure invariants in clusters of objects
- Chapter 3. Exercises
- Chapter 3. Summary
- Chapter 4. Managing dependencies
- Chapter 4. Avoid coupling to details or things you don’t need
- Chapter 4. Break down classes that depend on too many other classes
- Chapter 4. Inject dependencies, aka dependency injection
- Chapter 4. Exercises
- Chapter 4. Summary
- Chapter 5. Designing good abstractions
- Chapter 5. Generalize important business rules
- Chapter 5. Prefer simple abstractions
- Chapter 5. Exercises
- Chapter 5. Summary
- Chapter 6. Handling external dependencies and infrastructure
- Chapter 6. Use the infrastructure fully
- Chapter 6. Only depend on things you own
- Chapter 6. Encapsulate low-level infrastructure errors into high-level domain errors
- Chapter 6. Exercises
- Chapter 6. Summary
- Chapter 7. Achieving modularization
- Chapter 7. Design clear interfaces
- Chapter 7. No intimacy between modules
- Chapter 7. Exercises
- Chapter 7. Summary
- Chapter 8. Being pragmatic
- Chapter 8. Refactor aggressively but in small steps
- Chapter 8. Accept that your code won’t ever be perfect
- Chapter 8. Consider redesigns
- Chapter 8. You owe this to junior developers
- Chapter 8. References
- Chapter 8. Exercises
- Chapter 8. Summary
Product information
- Title: Simple Object-Oriented Design, Video Edition
- Author(s):
- Release date: May 2024
- Publisher(s): Manning Publications
- ISBN: None
You might also like
book
Simple Object-Oriented Design
Write object-oriented code that’s manageable, maintainable, and future-proof. Keeping your object-oriented designs simple demands a creative …
audiobook
Simple Object-Oriented Design
Write object-oriented code that’s manageable, maintainable, and future-proof. Keeping your object-oriented designs simple demands a creative …
book
Object Design Style Guide
Objects are the central concept of languages like Java, Python, C#. Applying best practices for object …
video
Design Patterns (Clean Coders Video Series)
Overview Get ready for something very different. This ain't no screen cast. This ain't no talkin' …