4 ms·
Yes, but which one, and which version? This is especially painful with Python ;)
by davedx 8y ago
Yes, but which one, and which version? This is especially painful with Python ;)
- h1d 8y agoWhat's painful about Python but not so for others? Writing anything complicated in bash/zsh is painful enough I wouldn't even think about it.
- CJefferson 8y agoI currently find some users have python2, some have python3, some both. It's fine in a controlled environment, or if your users are Devs, but a pain with normal users who I just want to send a script to.
- Groxx 8y ago2 vs 3 is not a small change. and tools for helping you do things (like a 3+2 compatibility lib) get installed with pip... which is horrifyingly fragile. `pip install your-lib` -> you have no idea if you have the dependencies you require, because pip doesn't behave rationally. it often Just Works™, but when it doesn't there's no help and a massive minefield of potential problems.
- vinceguidry 8y agoUse Ruby. It doesn't change much from version to version, thank God. I curse python every time I have to install a package. Nothing Just Works. If you install just one gem, bundler, you can get dependency management in a one-file script. Checkout Bundler Inline: https://github.com/bundler/bundler/blob/master/lib/bundler/inline.rb https://github.com/bundler/bundler/blob/master/lib/bundler/i...
- mncolinlee 8y agoKotlinScript is yet another option that handles that worry nicely. https://github.com/holgerbrandl/kscript https://github.com/holgerbrandl/kscript