Hacker News new | ask | show | jobs
by Taek 16 days ago
We have a rule in my dev shop: if a piece of code (or hardware) has been working without fault in production, you do not touch it. It doesn't matter if it's old, if you don't like the tests, if it's in a programming language you despise; if there haven't been any problems in production, you don't touch it.
8 comments

That’s the wrong attitude.

This thinking caused an extended outage for the biggest mobile network in Australia: https://www.telstra.com.au/exchange/some-mobile-calls-and-da...

Those pair of boxes nobody was brave enough to touch cost them AUD 30 million in fines.

I haven't read anything to suggest the root cause was similar. As far as I've seen Telstra operated in a way very much the opposite of the FAA and ATC. A reboot of a GPS module propagated the wrong time via NTP to the network. An audit said Telstra didn't treat the correct time as a critical capability (you know, with backups and such).
This happened because the GPS module was outdated.
They had redundancy! Both appliances that "always worked" stopped working.

In my mind, anything that's not under continuous maintenance immediately begins to suffer from bit-rot and degrades steadily over time.

Of course, that's not a degradation of digital media, but the "dropping out" of concepts out of people's minds.

This is akin to Netflix's Chaos Monkey approach: systems under constant change and attack necessarily become robust. Systems untouched under glass like something in a museum are typically fragile and crumble if so much as breathed on.

Confidence comes from practice, not ignorance.

> That’s the wrong attitude.

Not necessarily. Debugged code is gold.

The longer you don't keep things like dependencies updated, the harder it is to update the second you have a security issue etc. you can end up absolutely screwed.
Sure if you don't like the tests you can write more tests, no? Tests are not production. Am I missing something?
In some cases the testing frameworks cause CI headaches
This is exactly the way we operated Crystal Reports. "If it works, don't touch it"
Hi! I built a competitor to you for motorsports partially so I didn't have to deal with the output of Crystal Reports and have been migrating customers. Good luck tho
Taken to the logical extreme, you end up with magic ancient doohickeys that nobody dares to touch, and everyone prays that the inevitable failure lands on someone else's watch.

Many forms of "touching" are tests that cannot be accomplished any other way, so untouched is untested, and if something can't be sanely turned back on after it gets turned off, that's just a latent, undetected fault.

We used to do this. Now every customer and their mother is demanding upgrades because their security contractor ran a scanner that flipped out over a version number string.
Especially on a Friday. The 13th doubly so.
What about legitimate issues?
Well yes of course. If there are bugs or issues in prod (performance/scale), then code can be updated or replaced.

But we have tons of legacy code that our engineers don't like, yet it runs fine and has run fine for years.

That's the exception they noted ;)

> if a piece of code (or hardware) has been working without fault in production

And then you have the common reality: "a piece of code has been working in production with known faults & known costs". And you have to weigh up costs and risks.
That doesn't cover the case wherein the potential for a fault is discovered, even if that fault has not yet occurred in deployment. Whether such an incident is prioritized or not makes or breaks OP's organization's philosophical approach.