Live data from Hacker News

Reasons Python Sucks

hackerfactor.com

21–30 of 554 posts

Re: Reasons Python Sucks

#21
Elixir has none of these faults, so I guess I will continue to enjoy using it.

Lists and arrays are fundamentally different beasts, though. Shouldn’t most coders understand that?

Re: Reasons Python Sucks

#22
A lot of these gripes are unfair and don't really matter IMO. I think complaining about things as trivial as syntax is really just scratching the surface and doesn't serve your conclusion.

A dictionary is an interchangeable word with hashmap in most situations. The string 'quirks' actually look to be pretty helpful.

Gripes I do actually agree with: the schism in versions, mutation from pass by ref (although this isn't different from JS, Java or any other OO lang). In my opinion you can add OOP in general to the list of gripes against python.

Re: Reasons Python Sucks

#23
Reason 2 is getting out of hand for Python, Ruby, JavaScript, Haskell and OCaml.

These so called package manager can't manage packages at all. I'd like to call it package downloader. They just download everything from language interpreter to library to a single directory and call it job done. No easy way to remove the package. The interpreter and library's version is forever fixed. Theoretically, it can upgrade the version but the user mostly don't.

I really hate their ecosystem.

Re: Reasons Python Sucks

#24
This article illustrates amateur hour in many ways.

The whole can't manage my environment and don't understand how to manage the python thing at all has my sympathy. Python is messy at that level.

With the organizational 'control' sysadmin deprecated by devops and containers/automation becoming the new norm these types of complaints have to be dealt with by people who have no idea of what they are doing in generalized context.

Re: Reasons Python Sucks

#25

Elixir has none of these faults, so I guess I will continue to enjoy using it. Lists and arrays are fundamentally different beasts, though. Shouldn’t most coders understand that?

[deleted]

Re: Reasons Python Sucks

#27
My top 3 criticisms as an intermediate (~5 months of study) python programmer:

1. Importing behavior is ridiculous: https://chrisyeh96.github.io/2017/08/08/definitive-guide-pyt...

2. Python libraries' documentation leave a lot to be desired (compared to good javadocs). Just because your language is dynamically typed doesn't mean you don't need to describe what the expected shape of a parameter should be.

3.

   Static method? @staticmethod

   Static variable? declare it outside of your methods but inside your class

   Private method/var? name it: __name (but it's not really private just hard to find)
I'm sure other Java programmers have had a culture shock coming to python as well. I appreciate how concise the language is, the great community and module ecosystem, and how productive it is. But, it feels to me like there's features missing (I've only been seriously programming python for 5 months though, before I was basically just scripting and writing java code in python).

Also the most fun part of learning python has been list comprehensions and itertools, they've really been a revelation. Like when I first learned Ruby procs, blocks, closures and lambdas.

Re: Reasons Python Sucks

#28

A number of these points seem like reasonable opinions to have. But two which had me questioning the breadth of the author's experience were "Most programming languages pass function parameters by value." and "In every other language, arrays are called 'arrays'. In Python, they are called 'lists'." To the author: 1. Java, JavaScript and C# all have types which are passed by reference. (They also have types which are…

If I remember VB6/VBA passes everything by reference by default, even value types.

Re: Reasons Python Sucks

#29
I used to hate python because of of the lack of static typing. I realized the reason I hated it because of that, was due to other people's bad code. One of the nice things with compiled languages that are statically typed is that there's that nice check up front for types. I actually think you need to be a really good developer to properly use dynamically typed languages.

Re: Reasons Python Sucks

#30

> Here I am hating on the language I love, but I remember when I would have to review this question on StackOverflow every time I wanted to create a new virtual environment: > https://stackoverflow.com/questions/41573587/what-is-the-dif... What a mess. Came here to post something similar, but a commenter on the blog post itself got to it first. Virtual environments never made sense to me.

This right here is the biggest problem with Python. I don't see this garbage in any other programming language.
Post reply on HN