
Root Causes of Low Quality Code and Standards

#152 - Craft Your Code with Software Craftsmanship - Srihari Sridharan
Topic 5 of 11
Published Oct 16, 2023 · Clip 16:13–34:14 (18:00)
Srihari covers root causes of low quality code and practices to fix them. Code must align with the architecture; understanding the problem before coding is essential, investing more time in design than writing code, and using design one-pagers shared with the team. He advocates automating coding standards with linters and formatters for fast feedback, explains consistency and its boundaries (file, project, codebase), discusses code aesthetics like newspaper analogy and meaningful naming, shares stories about long methods and horizontal scrolling, and recommends pre-commit hooks with formatters like Prettier to end tab-vs-space debates.