Write less code
All code is buggy. It stands to reason, therefore, that the more code you have to write the buggier your apps will be. Writing more code also takes more time, leaving less time for other things like optimisation, nice-to-have features, or being outdoors instead of hunched over a laptop. In fact it's widely acknowledged that project development time and bug count grow quadratically, not linearly, with the size of a codebase. That tracks with our intuitions: a ten-line pull request will get a level of scrutiny rarely applied to a 100-line one. And once a given module becomes too big to fit on a single screen, the cognitive effort required to understand it increases significantly. We compensate by refactoring and adding comments — activities that almost always result in more code. It's a vicious cycle. Yet while we obsess — rightly! — over performance numbers, bundle size and anything else we can measure, we rarely pay attention to the amount of code we're writing. I'm certainly not claim
All code is buggy. It stands to reason, therefore, that the more code you have to write the buggier your apps will be. Writing more code also takes more time, leaving less time for other things like optimisation, nice-to-have features, or being outdoors instead of hunched over a laptop. In fact it's widely acknowledged that project development time and bug count grow quadratically , not linearly, with the size of a codebase. That tracks with our intuitions: a ten-line pull request will get a level of scrutiny rarely applied to a 100-line one. And once a given module becomes too big to fit on a
Explore this link on the map →related reading
- Cognitive load is what mattersminds.md
- The Grug Brained Developergrugbrain.dev
- Overview • Svelte Docssvelte-5-preview.vercel.app
- Introducing runessvelte.dev
- Things You Should Never Do, Part I – Joel on Softwarejoelonsoftware.com
- Reading 4: Code Reviewweb.mit.edu
- The Joel Test: 12 Steps to Better Code – Joel on Softwarejoelonsoftware.com
- It's hard to write code for computers, but it's even harder to write code for humans · Erik Bernhardssonerikbern.com
- The Conductor Rewrite: What They Changed to Make It Fastperformance.dev
- A Bunch of Programming Advice I'd Give To Myself 15 Years Ago | Marcus' Blogmbuffett.com
- Ninja codejavascript.info
- Google Testing Blog: Less Is More: Principles for Simple Commentstesting.googleblog.com