I don't because it doesn't live up to its promises. Some of the most unreadable code I have seen was Python. Pure line noise.
Ask HN: Why use Python?
31–40 of 41 posts
Re: Ask HN: Why use Python?
#32Re: Ask HN: Why use Python?
#33Re: Ask HN: Why use Python?
#34I don't because it doesn't live up to its promises. Some of the most unreadable code I have seen was Python. Pure line noise.
Are you confusing Python with Perl? The latter prides itself on creating line-noise that works like magic. Python is meant to be super-readable.
Re: Ask HN: Why use Python?
#35I don't because it doesn't live up to its promises. Some of the most unreadable code I have seen was Python. Pure line noise.
I've never seen unreadable code in Python. Care to post a sample? And even if it actually was unreadable, just consider how the equivalent would look in Perl, or C (or APL...).
Re: Ask HN: Why use Python?
#36I try to avoid it for new programs though, as the life of the sane language version (Python 2) is going to end at some point.
Re: Ask HN: Why use Python?
#37I try to avoid it for new programs though, as the life of the sane language version (Python 2) is going to end at some point.
> as the life of the sane language version (Python 2) is going to end at some point. Don't hold your breath for that. There are tens (hundreds?) of millions of Python code in production that's nobody ever gonna port, and that people will still support well into 2040.
Re: Ask HN: Why use Python?
#38Re: Ask HN: Why use Python?
#39It's on an uptrend on usage which is always good for your career. I use it for web apps and API's and many larger companies also use it like Uber, Rackspace, Twillio, etc. The scientific field is becomming larger and it seems to be growing extremely quick with a new momentum in AI. Great option for building a CLI tool out. Overall it can handle a lot.
It's a language I really enjoy using on a daily basis at work. It feels like it has been the result of lots of hard work from some really smart people. Our team was at a crossroads and tried a variety of languages, we all agreed on Python. Clarity of what's happening with code is important to us and Python excels in this area.
Re: Ask HN: Why use Python?
#40- it's a well designed language
- it has a great ecosystem and community
- it runs fast (enough for my purposes)
- it looks enough like pseudo-code that translating what I wrote on paper into a program is that much simpler.
The fact that it can be used both for teaching computer science in colleges and children how to code speaks volumes about its versatility and approachability.
I use it mostly for web apps, APIs and miscellaneous scripts. Python has been a great addition to my tool-belt. There are some languages I hope I never have to write again; Python on the other hand is something I'm going to always keep in mind, even if I spend most of my days writing another language.