AHA Programming
summary
A concrete case for Avoid Hasty Abstractions that live codes a real refactor: a getDisplayName function moved from three duplicated sites into one, then bloated with options like includeHonorific, includeUserName and firstInitial, with unit tests and VS Code demo using cocaJas console output. The claim is: prefer short-term duplication and inline copies, then extract a cleaner abstraction per Sandi Metz’s “fastest way back” approach. Practical, tool-backed, example-heavy.
AI-written summary · about
chapters (6)
related talks
01h 04mRefactoring Is Not Just Clickbait
58mIntentional Code - Minimalism in a World of Dogmatic Design
46mCompilers, User Interfaces & the Rest of Us
25mDefault to Consistent
01h 01mDesign Principles for Better FrontEnd Code
45mConquering complexity: refactoring JavaScript projects
58mFrom Zero to Live with Functional JavaScript Applications (Part 2)
42mStop Writing Framework-Specific Code
