Software engineering practice
Architecture, quality and the day-to-day decisions that decide whether a codebase lasts.
These articles are for engineering leads, CTOs and founders who own a codebase: how to structure a system, when to modernise instead of rewrite, what tests are worth, how to review code so defects are caught, and how to handle the concurrency, queueing and caching problems that only appear under load. They are written for the moment a decision is on the table, such as a rewrite proposal, a release cycle that keeps slowing down or a bug nobody can reproduce locally.
A suggested reading order
If you are inheriting or assessing a codebase, this order works well:
- Modernising a legacy system without a rewrite: how to replace an old system in slices rather than in one risky cutover.
- Monolith or microservices: whether splitting into services solves your problem or only moves it somewhere harder to debug.
- Quantifying technical debt: how to turn "the code is a mess" into a register that leadership can budget against.
- The real cost of skipping automated tests: which tests pay for themselves, and what to ask a development partner about their pipeline.
- Refactoring code that has no tests: how to change untested code safely, starting with characterisation tests.
- Code review that actually catches things: what human reviewers should look for once formatting is left to tools.
- Architecture review that is not theatre: how to review decisions that are expensive to reverse, in writing and before the meeting.
Common questions
- Why does one user's change sometimes disappear when two people edit the same record? See concurrency and lost updates.
- When does adding a cache cause more problems than it solves? See caching: where it helps and where it hides bugs.
- How should background jobs retry without acting on stale data? See background jobs, queues and retries.
- How should prices and balances be stored so rounding never loses paise? See handling money in software.
- How do we tell whether our engineering team is actually getting faster? See measuring engineering delivery.
- Why do our order confirmations and password resets land in spam? See why transactional email goes to spam.
Need a second opinion on a codebase? See IT consulting, QA and test automation and custom software development.
Start here
Modernising a legacy system without betting the company on a rewrite
The full rewrite is the most tempting option and the one that fails most often. There is a slower route that actually finishes… Read article
Monolith or microservices: choosing honestly
Most teams that split into services were solving an organisational problem with an architectural tool, and got neither… Read article
Code review that actually catches things
Most review comments are about formatting, which a tool should be doing. The valuable review asks different questions… Read article
Quantifying technical debt so it gets budgeted
Engineers describe it in adjectives and finance hears complaining. Translate it into time and it becomes a line item… Read article
The real cost of skipping automated tests
Skipping tests does not save time. It moves the time from before release to after, where it costs several times as much… Read article
Monorepo or many repos: choosing a code layout
The choice looks like taste and turns into tooling you will maintain for years… Read articleMore on Software engineering
-
CLI tool design: building a command-line tool developers actually adopt
Most internal CLI tools get built once, used by their author, and ignored by everyone else — not because the tool is bad, but because command-line interface design has its own discipline that gets skipped…
-
The admin tool nobody budgets for
Your support team's tooling is the interface through which every customer problem is solved, and it is usually the worst software in the company.
-
Notifications: one system, four channels
Email, SMS, push and WhatsApp get built separately by different teams, and the customer receives the same message four times.
-
Releasing your own code as open source
Publishing is free. Everything after publishing is not, and most abandoned repositories were abandoned by companies who only budgeted for the publishing.
-
Choosing a licence for software you build
The licence decides who may use your work and what they owe you. Picking one by copying whatever the last project used is a decision made by accident.
-
Measuring whether engineering is getting better
Story points measure estimation, not delivery. Four numbers actually describe whether a team is improving, and none of them is velocity.
-
Architecture review that is not theatre
A meeting where a senior person approves a diagram after fifteen minutes of looking at it produces approval, not review.
-
A bug backlog of four hundred is a decision
Nobody chose to have four hundred open bugs. It accumulated because closing one felt optional and reporting one felt free.
-
Caching: where it helps and where it hides bugs
A cache added to fix a slow query usually converts a performance problem into a correctness problem…
-
Documentation that survives the team that wrote it
Most documentation rots because it explains what the code already says. Write down the things code cannot express…
-
Background jobs: queues, retries and the work nobody sees
The request path gets all the monitoring. The job queue is where the silent data-loss bugs live…
-
File uploads: doing it properly at scale
Uploads through your application server are the design that works in testing and falls over on launch day…
-
Dates and time zones: the bugs that appear in October
Time handling fails quietly, in production, months after release, usually on a Sunday morning in spring or autumn…
-
Load testing that tells you something useful
Most load tests confirm that the system survives a shape of traffic it will never actually see…
-
Why your transactional email goes to spam
Deliverability is mostly an identity problem, and the fixes are unglamorous configuration…
-
Refactoring code that has no tests
You need tests to refactor safely and you need to refactor to make it testable. There is a way through…
-
Getting a new engineer productive in a week
Most onboarding optimises for orientation. What actually helps is shipping something small on day two…
-
Why your product emails end up in spam
Password resets that never arrive are a support problem, a churn problem and an authentication problem…
-
Generating PDFs and reports without taking the site down
Rendering a document in the request thread works until month-end, when everyone does it at once…
-
Handling money in software without losing paise
Storing an amount as a floating-point number is the bug that produces an invoice off by one paisa, then a reconciliation nobody can close…
-
Removing a feature without breaking trust
Every feature you keep costs testing, support and design constraint forever. Removal is maintenance, not failure…
-
Concurrency: the bug that only happens in production
Two people clicked at the same time and one of their changes vanished. It is reproducible, just not by one person…
Other topics
Have a question these articles don't answer? Send it to the engineers who wrote them.
Ask an engineer