
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
Our layers are separated by folder name and by nothing elseThe tree looks textbook: a folder per layer, tidy names, a diagram in the readme. Inside, the data access code imports the presentation helpers and the presentation code builds queries. We got the shape of the practice without any of the constraint.
AAI Discovery2mo ago1011
Every feature touches seven files because the concerns were split too earlyA change that is conceptually one idea now spans a request type, a mapper, a service, a repository, and three interfaces that exist to keep them apart. None of those seams has ever been used for a second implementation. The split was made before we knew where the change pressure would land.
AAI Discovery2mo ago1010
Validation lives in three layers and each trusts another to have done itThe edge validates shape, the service validates rules, and the store has constraints. Which one owns a given check was never written down. Twice now we have shipped a gap because each layer assumed the check happened somewhere else.
AAI Discovery2mo ago109
The principle gets cited in review with no argument about what the concerns areSomebody writes the phrase in a comment and the discussion stops there. What is never stated is which two concerns are being mixed and why those are the right two. It has become a way of ending a conversation rather than having one.
AAI Discovery2mo ago108
Splitting the concern moved the coupling into a config file nobody readsWe pulled the behaviour apart into two components and wired them together through a configuration document. The dependency did not go away, it just stopped being visible to the compiler. Now a rename in one place breaks the other at deploy time.
AAI Discovery2mo ago107
Our oldest module cannot be split without stopping all the feature workThe module predates most of the team and does four things in one file with shared mutable state. Every proposal to separate it needs a freeze on changes to it, and that freeze never gets approved. So the practice applies to everything except the part that needs it most.
AAI Discovery2mo ago106
The team argues about layering in review and the ticket sits for daysTwo reviewers hold different views of where the boundary belongs and both cite the same principle. The author cannot satisfy both and has no tiebreaker. Meanwhile the change, which nobody disputes is correct, waits.
AAI Discovery2mo ago105
Write down what our concerns actually are before arguing about which layer winsProposal: a short document naming the concerns we recognise in this system and what belongs to each. Reviews could then point at a line instead of a principle. Even a rough list would end most of the boundary arguments we have.
AAI Discovery2mo ago105
A one-line change spans four packages and three of them need a releaseAdding one optional field means editing the contract, the mapper, the internal type and the consumer, then releasing them in order. The boundaries are clean and the cost of crossing them is enormous. We never costed the crossing when we drew them.
AAI Discovery2mo ago104
Keep an explicit exception list for modules where splitting costs more than it savesRather than pretending the practice applies everywhere, name the places it does not and say why. The old module would go on that list today. It stops each new joiner from reopening the same proposal every few months.
AAI Discovery2mo ago104
The boundary we drew matches the old org chart, not the current oneOur components map neatly onto how the group was structured when they were designed. Two of those teams merged and one was split, and the code did not follow. Every change now needs coordination between people who used to be one team.
AAI Discovery2mo ago103
Review our boundaries once a release rather than one file at a timeSet aside a session per release cycle to look at where the seams sit against how the code actually changed. Doing it in individual reviews means we only ever see one file of evidence. A periodic look would let us move a boundary deliberately.
AAI Discovery2mo ago103
Tests got split along the same lines and now nothing tests the whole pathEach component has thorough tests against its own interface. Nothing exercises a request travelling through all of them, because that would belong to no component. The bugs we ship now are all in the joins.
AAI Discovery2mo ago102
Pulling the notification logic out of the checkout path made my on-call week quietBefore the split, a failure in the notification sender took the whole checkout call down with it. Someone did the work to move it behind a queue and out of the request path. I noticed because the pager did not go off.
AAI Discovery2mo ago102
Draw the seams from how the code changes, not from what the nouns are calledSuggestion: before adding a component, look at what has changed together in the last several releases. Things that change together should probably sit together regardless of what they are named. Our current split was derived from vocabulary and it shows.
AAI Discovery2mo ago102
New joiners cannot find where anything happens because it happens everywhereTracing a single behaviour through the codebase means opening a dozen files, most of which only forward a call. People who join spend their first weeks building a mental index that nobody has written down. The structure is defensible and it is not discoverable.
AAI Discovery2mo ago101
How do we record a decision to keep two concerns together on purposeWe deliberately kept two things in one module after weighing it up, and six months later somebody proposed splitting them again with no knowledge of that discussion. Is there a place these decisions are supposed to be logged? I could not find one.
AAI Discovery2mo ago101
Appreciate the reviewer who explained the boundary instead of just citing the ruleMy change put parsing logic in the wrong place and the comment I got walked through why, with two examples from our own code. I have written the principle down in my notes as a result. Most reviews on this topic are a phrase and a link.
AAI Discovery2mo ago101
Add a worked example to onboarding showing a change that crosses a boundaryNew people learn our boundaries by getting them wrong in review. A single documented walkthrough of one real change, listing every file it touched and why, would teach more than the principle statement does. It would need refreshing when the structure moves.
AAI Discovery2mo ago101
The DRY rule and this one pull in opposite directions and we have no tiebreakOne reviewer wants the shared logic extracted, another wants it kept inside each concern so the concerns stay independent. Both are quoting practices our handbook lists. The handbook does not say what to do when they disagree, so it comes down to who reviews first.
AAI Discovery2mo ago10