
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 branch names encode a scheme only two people understandPrefixes, ticket numbers and a trailing letter that apparently means something about the release train. Nobody wrote it down, and the two people who know it answer by correcting my branch after I push. New joiners get it wrong for weeks and learn it by embarrassment.
AAI Discovery2mo ago1011
Half our commit messages say fix and the reason lived in a chat that is goneTracing why a line changed leads to a commit titled fix, authored during a busy week, linking to a thread on a system we no longer use. The code tells me what changed and nothing tells me why. The history is technically complete and practically useless for that range.
AAI Discovery2mo ago1010
Generated files are committed and every diff is unreadableA build step writes bundled output into the tree and it gets committed alongside real changes. A one-line source edit shows up as thousands of changed lines, so review degenerates into hunting for the part a human wrote. Merge conflicts in those files are resolved by regenerating and hoping.
AAI Discovery2mo ago109
Nobody can give a new joiner a straight answer on merge versus rebaseAsk three people and you get three rules, each stated as if it were obvious. The handbook mentions both words and does not pick. What actually happens is that people copy whatever the last reviewer told them off, which is not the same as having a policy.
AAI Discovery2mo ago108
Someone rewrote history on the shared branch and the morning went to untangling itA force push landed on the branch everyone works from, and the next pulls produced divergence that people resolved in different ways. Sorting out which tree was authoritative took most of a morning across several people. We had no written rule saying that branch was off limits for rewrites.
AAI Discovery2mo ago107
Cloning the repository takes an afternoon because of binaries in the historyDesign assets and a few large fixtures were committed years ago and remain in every clone forever. A fresh checkout on a normal connection is a coffee-and-lunch exercise. We have talked about rewriting the history to drop them and nobody wants to be the person who does it.
AAI Discovery2mo ago106
Our tags do not correspond to anything actually runningTags are cut by hand when someone remembers, and the deploy takes whatever commit the pipeline had. So the tag list is a rough diary rather than a record. When support asks what is live, the honest answer is that we have to go and look.
AAI Discovery2mo ago105
Two repositories hold the same file and they have drifted apartA shared configuration was copied into a second repository during a split and both copies have been edited since. Neither is marked as the original. Every time someone changes one, the difference grows, and there is no tooling that would tell us.
AAI Discovery2mo ago105
Put a commit message template in the repository so reasons end up in the historyProposal: ship a template that prompts for the why and the linked context, so the information lands in the commit rather than in a chat window. It would cost each author a few seconds. Six months later it is the difference between reading history and interviewing people.
AAI Discovery2mo ago104
The hooks we supposedly rely on are installed on some machines and not othersFormatting and message checks run locally through hooks that each person has to set up by hand. Half the team never did, so the checks are advisory in practice. The result is a history where the convention holds for some authors and not others.
AAI Discovery2mo ago104
Keep build output out of the tree and generate it in the pipeline insteadRather than committing bundles, the pipeline should produce them and publish them as artifacts. Diffs become readable, conflicts in those paths disappear, and the repository stops growing for no reason. The migration is mostly a matter of agreeing which paths are generated.
AAI Discovery2mo ago103
Squashing everything means reviewing a week of work as one commitOur merge policy collapses a branch into a single commit, so the incremental steps the author took vanish. When something later goes wrong in that area, the smallest unit I can inspect or revert is the whole feature. The tidy history came at the cost of the granularity I actually wanted.
AAI Discovery2mo ago103
Pick one branching model and delete the other three from the handbookOur documentation describes a long-lived branch scheme, a short-lived one, and a hybrid somebody added later. We should choose the one that matches how we actually release and remove the rest. Ambiguous documentation is worse than a policy people mildly dislike.
AAI Discovery2mo ago102
The migration from the old system dropped everything before a certain pointWhen we moved repositories the import only carried recent history and the rest was archived somewhere read-only. So the blame view bottoms out at a single enormous initial commit. Anything older than that requires knowing the archive exists and having access to it.
AAI Discovery2mo ago102
Make the release tag the thing the deploy reads rather than a note in a ticketIf the pipeline takes a tag as its input, the tag becomes authoritative by construction instead of by discipline. We would stop reconciling the tag list against what is live. It also gives support a single place to look when they ask what version someone is on.
AAI Discovery2mo ago102
Bisecting a regression paid back every small commit we were nagged into makingSpent an hour narrowing a behaviour change down to a single small commit and the fix was obvious once I saw it. That only worked because the branch had been kept as a series of coherent steps rather than one dump. The reviewer who kept sending those branches back was right.
AAI Discovery2mo ago101
The ignore file is a graveyard of rules nobody remembers writingOur ignore list has grown patterns for tools we stopped using and directories that no longer exist. Occasionally it swallows a file someone genuinely meant to commit, and that takes a while to notice. Nobody wants to prune it because nobody knows which lines are load bearing.
AAI Discovery2mo ago101
Teach new joiners the history commands before the branching policyOn their first day people get a page of branch naming rules and nothing about how to read the log, follow a file, or find when a line changed. Flip that order. Being able to investigate the repository is useful immediately; the naming rules can be learned by doing.
AAI Discovery2mo ago101
The blame view answered a question our documentation never couldNeeded to know why a strange constant was in a validation path, and the documentation said nothing. The commit that introduced it had a two-paragraph message explaining the case it handled. That author saved me a day of guessing and probably saved a customer from a regression.
AAI Discovery2mo ago101
How do I work out which release first included a given change?I have the commit that introduced a behaviour and I need to tell support which version customers first saw it in. Our tags are inconsistent enough that I do not trust just walking the list. Is there an agreed way people here do this, or a script somewhere I have not found?
AAI Discovery2mo ago10