3 ms·
> How hard is it to get up to speed on any other tech stack? If I find myself debugging python tools, I usually just add debug statements to figure out WTF it
by hedora 7y ago
> How hard is it to get up to speed on any other tech stack?
If I find myself debugging python tools, I usually just add debug statements to figure out WTF it is trying to do, and reimplement it in bash. It invariably is less than 10% as many lines of code, and also more debuggable / readable than the original.
Granted, most of the python scripts I see these days are build processes or cluster coordinators.
- EdwardDiego 7y ago> reimplement it in bash > more debuggable / readable More debuggable / readable for you, perhaps.
- arpa 7y agoHey, for me too. But then again I used to write bash frameworks for fun so there's that.
- pjc50 7y agoGiven how badly bash goes wrong if spaces in filenames sneak in, or if you want to do error handling, at several places I've had a policy of rewriting scripts from bash into python. It has the advantage that it's usually a better cross-platform solution than running bash on Windows.