3 ms·
Sometimes the previous developer really is that bad. I inherited a colleagues work after she left. One cron Job to launch a Python script - auto-everything.py.
by collyw 13y ago
Sometimes the previous developer really is that bad.
I inherited a colleagues work after she left. One cron Job to launch a Python script - auto-everything.py. Which in turn spawned new shells to launch a load more scripts. One script even launched itself with new arguments. So trying to work out where stuff was failing was a nightmare, before I even got to look at the code.
Then the fun really began. Functions within functions, not to anything smart - just because she hadn't bothered to work out how the module system works. Few comments which were fairly useless "#Open file" above an open file statement (what the hell is contained in the file??? Add that to your comment). 'Indexes' and 'indexes' used as variable names in that function. Big nested hash structures with no explanation to its structure, or what it was for.