Re:How I Automated My Job
by taneq on Friday June 08, 2018 @10:04PM
(#17271112)
The flip side of this is your company gradually becoming dependent on a sprawling and ever-growing tangle of likely undocumented scripts. This can be a time bomb (no matter how good your intentions) waiting to explode if you ever leave.
[ Parent
| on HN ]
I disagree. If you make a mess, you have a mess... but at least your intentions were at one point clear enough to encode as a computer program. While painful to pick apart during an emergency, it's easier than finding the one person in the world with that knowledge and getting them to explain it to you. Having your business depend on a messy pile of scripts is better than having your business depend on someone who died a few months ago. Having your business depend on clean well-maintained code is even better... but great is the enemy of good.
Not necessarily. If the script is documented and written cleanly (e.g Fabric3 which has very little magic, and reads almost like Bash), then in can server as "runnable documentation". In this case automation could be really good for continuity and busfactor.
But yeah... got to put some effort into it. Like all docs, script-docs worn't write themselves.
Agree that it's not unavoidable, but the problem is deeper than just the scripts themselves being well documented and straightforward. The main risk (IME, anyway) is awareness / discovery of the scripts in a timely manner - the fact that everything 'just works' means that it can be months or years before something breaks, at which point it may be too late to ask the person who set it up. Hopefully there's good handover from the outgoing staff member to a technically proficient colleague. If so then everything might be OK but if not then a catastrophic failure may well be the first sign that something is wrong.
(A recent example of much simpler automation going horribly wrong was a company losing their top-level domain name because it was set to auto-renew using an ex-employee's personal credit card, and their email address as contact. This worked for years until that card was cancelled and the warning emails bounced off the closed account.)