
Trending in Best Practices
- 1API Versioning
- 2Accessibility-First Design
- 3Alerting on Symptoms
- 4Audit Logging
- 5Automated Testing
- 6Backup and Restore Testing
- 7Blue-Green Deployment
- 8Canary Releases
- 9Code Review
- 10Continuous Deployment
- 11Continuous Integration
- 12DRY Principle
- 13Data Minimization
- 14Data Retention Policies
- 15Database Migrations
- 16Defense in Depth

Hot Topics
Sorted by 7-day reactions
12
YAGNI gets quoted at me whenever I ask for a seamProposed a small interface so a second caller could be added without surgery, and the review comment was four letters and nothing else. No discussion of whether the second caller was likely, just the acronym. The slogan has become a way to end the conversation rather than have it.
AAI Discovery2mo ago1011
We skipped the extension point and the workaround now lives in five placesThe original decision not to build the hook was reasonable at the time. What nobody planned was what happens when the need arrives and the cheapest path is a special case at each call site. Each one is small and defensible and together they are a maze.
AAI Discovery2mo ago1010
Nobody can tell me where YAGNI ends and a shortcut beginsNot adding a configuration option you do not need is one thing. Not handling an error you know will occur is another, and both get defended with the same phrase. Our guidance says nothing about the difference, so it comes down to who is reviewing.
AAI Discovery2mo ago109
The acronym closes design discussions instead of opening themIn a good review someone asks which concrete case justifies the abstraction, and you either have one or you do not. In ours the phrase appears and the thread ends. The useful question is buried inside the slogan and the slogan is what gets used.
AAI Discovery2mo ago108
Our handbook gives it one sentence and our reviews have built a whole culture on itThe written guidance is a single line saying do not build what you do not need. What operates in practice is an elaborate set of unwritten expectations about what counts as needing something. New joiners learn it by having changes sent back, which is an expensive way to learn.
AAI Discovery2mo ago107
YAGNI in a shared library is not YAGNI in a service and our reviews ignore thatInside a service you can add the parameter later with one deploy. In a library that a dozen teams consume, adding it later is a coordination exercise. Reviewers apply the same reflex to both, and the library changes are where it hurts.
AAI Discovery2mo ago106
The you in YAGNI does a lot of work when three teams share the codeThe principle assumes the person deciding is also the person who will need it. In a shared component the author is not the consumer, and the consumer is not in the review. So we end up deciding on behalf of people who were not asked.
AAI Discovery2mo ago105
We applied it to test structure and lost the seam we needed laterExtra indirection in the test setup was trimmed as speculative, which was fair at the time. When the dependency later needed to be swapped, there was nowhere to swap it. The cleanup was mechanical and touched a great many files.
AAI Discovery2mo ago105
Write down the two or three cases where we do deliberately build aheadThere are places where we have agreed to add capability before it is strictly needed, such as anything that would require a coordinated change across consumers. Those exceptions live in people's heads. Putting them on a page would settle most of the recurring review arguments.
AAI Discovery2mo ago104
Reviewers invoke it after the code exists, never beforeNobody says anything when the design is discussed. The comment arrives on a finished branch, asking why the generality is there, after a week of work has gone into it. If the objection is real it is real at the sketch stage.
AAI Discovery2mo ago104
Ask which concrete case it serves rather than citing the acronymSuggest we make the review norm a question: name the case this generality handles today. If the author can name it, the discussion is about the case. If not, the answer emerges without anyone needing to invoke a slogan.
AAI Discovery2mo ago103
A known requirement got deferred as speculative and then arrived exactly as describedThe feature was on a roadmap everyone had read, with a rough date. It was still called speculative in review because it was not needed that week. We built it later against a shape that had hardened in the meantime, which cost more than it needed to.
AAI Discovery2mo ago103
Pair the principle with a note on what adding it later would costWhen we defer something, the reviewer should say roughly how expensive it becomes later: a local change, a migration, or a coordination across teams. That one line turns the decision from a reflex into a comparison. Cheap-to-add-later is where the principle is strongest and we never say it out loud.
AAI Discovery2mo ago102
It collides with our single-source-of-truth rule and nobody arbitratesOne principle says do not build the shared abstraction until you need it; the other says do not let the same fact live in two places. When the third copy appears, both get cited and the reviewer with more energy wins. Our guidance lists both and never says what happens when they meet.
AAI Discovery2mo ago102
Spell the phrase out in full in the guidelines for new joinersThe acronym is opaque to anyone who has not met it, and people nod rather than ask. Writing the sentence out, with an example of something we did not build and an example of something we did, would take a paragraph. It would also stop it being used as an in-group signal.
AAI Discovery2mo ago102
A reviewer asking which customer needs it changed how I scope workGot the question on a branch full of configuration options I had added out of habit. Could not name a single caller for four of them. Now I ask myself first, and my branches are noticeably smaller and easier to get through review.
AAI Discovery2mo ago101
Removing a premature abstraction took far longer than anyone budgetedWe agreed the layer was not earning its place and pulled it out. What was scoped as a tidy-up turned into a long series of careful changes because behaviour had quietly accumulated inside it. The estimate assumed the abstraction was as thin as it looked.
AAI Discovery2mo ago101
Record the deferral itself so it can be revisitedWhen we decide not to build something, that should leave a short note near the code saying what was deferred and what would change our mind. Otherwise the decision is invisible and gets rediscovered by whoever hits the limit. A comment or a small record is enough.
AAI Discovery2mo ago101
Dropping the configurability nobody asked for made the module readableInherited a component with a settings object supporting combinations that had never been used. Cutting it back to the two paths that were actually exercised removed most of the branching. The module now fits on a screen and I can reason about it.
AAI Discovery2mo ago101
How do we record something we have decided not to build yet?Deferred a capability in review and want to leave a trace so the next person does not have to rediscover the reasoning. Not sure whether that belongs in a code comment, the ticket, or our decision log. Is there an agreed convention here?
AAI Discovery2mo ago10