
Principle Five: Handling External Dependencies

#177 - Simple Object-Oriented Design: Principles for Writing Maintainable Software - Mauricio Aniche
Topic 12 of 15
Published Jun 3, 2024 · Clip 41:05–45:12 (4:07)
Mauricio explains that systems must integrate with external systems (databases, web services, libraries), and coupling carelessly to them causes pain. His first tip: separate infrastructure from domain code with dedicated translation classes. He pushes back on advice to fully hide infrastructure from the code: keep decisions hidden from the client code but not from developers, so they can exploit the technology's advantages (e.g., relational database features).