Python used to be my "main" language, but that was only due to familiarity. For most IO intensive tasks (especially networking), Python is not the best choice [0]. Recently I've been using nodejs with promises and async/await for heavy IO. I really like the productivity gains of Javascript's functional programming style, and the event loop lends itself well to network/IO intensive tasks. (I would prefer to use golang…
Ask HN: Why you use python most?
11–20 of 39 posts
Re: Ask HN: Why you use python most?
#12I kinda just stumbled into it as the logical way to move forward once the shell scripts I started out with became too complex, but I've fallen in love with it. I'm sure it will be my go-to language for a lot of coding tasks in the future.
Re: Ask HN: Why you use python most?
#13Re: Ask HN: Why you use python most?
#14P.S.: I'm sure you can make big multi-team projects in Python with the right discipline and tooling, but that's just not the spot it occupies in my language-toolkit.
Re: Ask HN: Why you use python most?
#15The biggest reason I use Python? Honestly, because it's great for interview-type problems, comfortable for writing on a whiteboard, and suits one-man projects where I don't find myself wishing for static typing or interfaces as a way to coordinate code. P.S.: I'm sure you can make big multi-team projects in Python with the right discipline and tooling, but that's just not the spot it occupies in my language-toolkit.
I don't think it's really even playing favorites when it's a competitive language with a very diverse collection of good libraries across applications and domains.
Re: Ask HN: Why you use python most?
#16Re: Ask HN: Why you use python most?
#17I don't use it for web programming. If I had my choice, I'd still use an integrated system like rails or Django, and bring in javascript sparingly, but unfortunately, that's not my choice, so I end up using a lot of Javascript.
Re: Ask HN: Why you use python most?
#18Python is my go-to language and I write big batch jobs in it and profile them and use PyPy. I do it because it's so clean and concise. Recent C++ with lambda and auto is much improved but still not nearly as productive as Python. Likewise lambda has really made Java better, but lack of type inference really makes it clunky to write. I really want a statically typed Python. But because I don't have it, I choose Python…
Can golang fill this role?
Re: Ask HN: Why you use python most?
#19I'm in ops and python is pre-installed on debian and fedora so besides writing stuff in bash, python is my next best thing without installing other languages. I would like to do more advanced things in python but I don't have any big projects / automation in my head yet.
How about moving any (all) calls to /usr/bin/ssh to run a script on a remote server? Like running deployment, upgrades, or creating home directories and mail folders for a new user? http://harpcaller.jarowit.net/ ( https://github.com/dozzie/harpcaller )