4 ms·
This used to be my take, but I'm not sure any more. Now, I don't think Python is ideal, and I am looking for something that maybe fits better than it in that gr
by lordgroff 6y ago
This used to be my take, but I'm not sure any more. Now, I don't think Python is ideal, and I am looking for something that maybe fits better than it in that gray zone of programming language vs "quick" script, but I can't see your point about debugging and bugs: bash is notoriously annoying to write bug free, and I can't see what's the issue with the Python debugger.
Also if we're in that gray zone of bash vs Python, you can pretty much stick to the stdlib.
- dylan604 6y agopython3 or python2.7???
- brobinson 6y agoI would go with the one that hasn't been out of support since Jan 1, 2020. https://www.python.org/doc/sunset-python-2/ https://www.python.org/doc/sunset-python-2/
- dylan604 6y agoyet everything comes standard with stock install of 2.7. ???
- chungy 6y agoNo responsible distro still ships 2.7
- dylan604 6y agohahahaha. I like your definition or responsible as AWS Linux 2 comes with 2.7 and macOS comes with 2.7 glad to know i'm such a hellion running such irresponsible OSes! down with the man!! I do what I want! Or more likely, the world isn't as clear cut as you might think
- chungy 6y ago> I['d] like your definition [f]or responsible A distribution that removes Python 2.7 once upstream security support has been cut. Since Python is frequently used on network-facing services, it is unconscionable to allow its use past January 2020. Heck, one might even have setuid programs in Python and you don't really want to risk an unfixed local privilege escalation either. > AWS Linux 2 A butchered version of CentOS > and macOS Not a distribution, and Apple doesn't exactly have a good track record with keeping things up to date or secure. > Or more likely, the world isn't as clear cut as you might think Given that the vast majority of the Python ecosystem is no longer compatible with 2.7, there isn't even a technical reason for kicking around 2.7 anymore. Python 2.7 is trivial to build and run if you really, really want or need it, but since all the major upstream distributions have removed it, it sends a clear signal that you must take the risks into serious consideration before doing it.
- scoopdewoop 6y agoI'm hopeful that Deno can be just that runtime. Since its a single binary, its trivial to install and script for. TBH, I don't have any technical reasons for JS/TS over python besides that I have coworkers that have never had to learn python and would prefer not to. /** * cat.ts */ for (let i = 0; i < Deno.args.length; i++) { const filename = Deno.args[i]; const file = await Deno.open(filename); await Deno.copy(file, Deno.stdout); file.close(); }
- fomine3 6y agoRuby!