r/programmer • • 22d ago

Question What's one small engineering practice that's saved your team hours of debugging?

A lot of engineering advice focuses on big things like architecture, testing strategies, observability platforms, code review processes, but sometimes it's the real small changes that end up saving everyone hours.

Things like adding request IDs to logs so you can actually trace a failure across services. Or making every bug report include the exact input that triggered it. Or having a rule that nobody merges a fix without reproducing the original issue first.

None of that is especially exciting. But when something breaks at 2 AM, suddenly it's the most beautiful engineering decision anyone's ever made.

What small changes have made a surprisingly big difference on your team?

Especially interested in the ones that seemed unnecessary at first but everyone now refuses to work without them because they've been a life-saver.

3 Upvotes

11 comments sorted by

2

u/seriousnotshirley 22d ago

Do the math up front to validate assumptions. The number of times I read a design that is overly complicated in order to get some marginal improvement or even make things worse in practice because "obviously X is better than Y" would terrify you. This happens all the time with complex databases.

1

u/JaseciLabs 22d ago

Good one. Is your math mostly back of the envelope, or do you benchmark before committing to the design?

1

u/drailoustan5 21d ago

back of the napkin math kills so many bad architecture ideas before anyone even opens an editor.

2

u/USofYayDJ 21d ago

Do not push on Fridays, do not plan out your Mondays.

1

u/JaseciLabs 21d ago

Does that hold for small fixes too, or mostly for releases?

2

u/USofYayDJ 21d ago

Every rule has its exceptions. If it's urgent you disregard these boundaries.

You can then shift the discussion to what's urgent 🤡 (No, this fix is not critical, I will not put my weekend in jeopardy because you promised it to a random client, Thomas)

2

u/tcpukl 21d ago

Hardware breakpoints can save days of debugging.

1

u/JaseciLabs 21d ago

What kind of bug do those catch that a normal breakpoint misses? Memory corruption?

2

u/tcpukl 21d ago

Where data is getting modified. Very useful on game development.

2

u/slepicoid 21d ago

Debugger. No kidding.

2

u/CS_70 21d ago

Understand exactly what you need to do before doing it. Exactly. :)