Read along with the audio summary
Cutting corners on software quality seems like a quick way to save time, yet Robert C. Martin, known as Uncle Bob, argues it is a myth that inevitably slows down future progress. In this podcast episode that came out on April 20, 2020, Uncle Bob discusses the human and technical sides of software development. By the end, you will learn how to maintain development speed, manage technical debt, and navigate demands from management.
The secret to moving fast in software development is focusing on quality. Writing messy code to meet short term deadlines is a false economy. Uncle Bob presents a fundamental principle that the only way to go fast is to keep your workspace clean. Whether it is a physical desk or a software codebase, a mess inevitably slows you down. To maintain your long term development speed, prioritize keeping your code clean rather than cutting corners.
That need for cleanliness is not a business decision to be negotiated, which brings us to why code quality is a non negotiable professional duty. Uncle Bob points out that asking your manager if it is okay to refactor is like asking if it is okay to wash your hands after using the bathroom. Upholding quality standards is similar to a surgeon maintaining a sterile environment, making it the developer's responsibility alone. Treat code cleanliness and refactoring as an intrinsic part of your job, not an optional task that requires managerial permission.
Upholding that standard requires a specific dynamic between developers and managers. One of the most important things a programmer can say to a manager is the word no. A healthy working relationship requires developers to communicate honestly about what is possible, and it requires managers to trust their team's technical judgment. Be prepared to say no to unrealistic deadlines or requests that would compromise the integrity of your system.
The difference between Clean Code and The Clean Coder shows how technical craft and human behavior work together. While Clean Code focuses on the technical craft and practices of writing good code, The Clean Coder addresses the human side of software development. It covers the personal discipline, ethics, and professionalism required to be a successful developer.
You can manage existing technical debt in large codebases by using the Boy Scout Rule. Trying to fix it with massive, standalone cleanup projects is risky. Instead, the recommended approach is to make small, incremental improvements continuously. Every time you touch a software module, check it back in a little cleaner than when you found it.
Because the industry is doubling in size every five years, there is a significant shortage of experienced programmers. Senior developers have a responsibility to mentor junior developers to pass down critical knowledge and maintain professional standards. If you are a senior developer, actively mentor junior team members by using practices like pair programming as a highly effective method for knowledge transfer.
Prioritizing code quality is the only sustainable way to maintain development speed, because messy code is the single greatest cause of slowdown. As Uncle Bob shares from Michael Feathers, clean code always looks like it was written by someone who cares.