Technical debt is a funny thing. While the term attempts to make an analogy with financial debt, technical debt and financial debt have nothing in common. Instead, it’s the name we give engineering decisions we disagree with.
Robert Lefkowitz offers a overview of technical debt, explaining how to prevent or reduce it, when to increase it, and how to use refactoring to refinance it. Most so-called best practices today, are, in fact, technical debt (e.g., using a programming language that is “easier for the developer” (like Python) but which generates code that is slower for the user (when C++ would be faster). At the same time, the scale of an organization and the scale of a project alters the categorization of an engineering decision. In other words, whether a technology or technique is technical debt depends more on the size of the organization doing it than what specifically they are doing. Robert argues that technical debt is synonymous with good engineering practices.
Robert then explains why microservices have been shown to be an anti-pattern, discussing the reasons why microservices are attractive, and how their implementation typically generates more technical debt than it pays down (i.e., microservice implementations are tech debt refinancing). The best solution for dealing with this new debt is to stick with immutable microservices and functional microservices—microservices that do not have any persisted data.
Robert concludes by demonstrating how to reduce debt at the code level. Simply put, the fundamental maxim is “the less code the better.” And often, “less code” is also “less understandable code.” Robert explores the dynamics and trade-offs between these two and why “less understandable code” is the better answer.
Robert “r0ml” Lefkowitz is the chief architect for software at Warby Parker. Previously, Robert was a software architect in the insurance, telecommunications, and finance industries. He is also a distinguished engineer of the ACM.
Help us make this conference the best it can be for you. Have questions you'd like this speaker to address? Suggestions for issues that deserve extra attention? Feedback that you'd like to share with the speaker and other attendees?
Join the conversation here (requires login)
©2018, O'Reilly Media, Inc. • (800) 889-8969 or (707) 827-7019 • Monday-Friday 7:30am-5pm PT • All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. • firstname.lastname@example.org