Live data from Hacker News

Python Is a Bad Programming Language

medium.com

11–20 of 32 posts

Re: Python Is a Bad Programming Language

#11
Whitespace is definitely a legitimate critique of python.

The fact that people have learned to live with it or just ignore it is pretty irrelevant in my opinion.

Significant whitespace means I can't copy+paste without introducing bugs or breaking the code. It means code formatting becomes more complex to automate. It's seriously the dumbest language feature to defend and should be pretty acceptable to admit was a mistake.

I agree that having whitespace sensitive scoping isn't a compelling enough reason in itself to avoid python, but it is hard for me to understand how python programmers insist on defending it as a great design choice that "improves readability". To me that indicates an inexperienced developer who is unfamiliar with the alternatives.

I feel similarly for people who reject (or say they hate) static types and compilers.

Re: Python Is a Bad Programming Language

#13
post #11

Whitespace is definitely a legitimate critique of python. The fact that people have learned to live with it or just ignore it is pretty irrelevant in my opinion. Significant whitespace means I can't copy+paste without introducing bugs or breaking the code. It means code formatting becomes more complex to automate. It's seriously the dumbest language feature to defend and should be pretty acceptable to admit was a mis…

> It means code formatting becomes more complex to automate

No, it means it is both simpler to automate and less necessary, because syntactically correct code is already largely formatted.

Re: Python Is a Bad Programming Language

#14
I was going to defend Python with the obligatory 'every language is least a little bad' but then I noticed

  Python sucks
followed by...

  I’ll be mostly comparing it to Java and C#
...and it seems unnecessary to belabor the point.

Re: Python Is a Bad Programming Language

#15
tl;dr "I don't like python because it doesn't have the features I personally like"

If you find a language you like better than Python, cool, use that language. In the meantime, don't post rants posing as objective critiques, that's just a waste of everyone's time.

Re: Python Is a Bad Programming Language

#17
post #5

> If you ask a Python developer about [private instance variables], they’ll respond with: “don’t access the instance variables of another class, lol”. > only in Python will the difference between tabs and spaces cause the interpreter to have a heart attack. > The question of making a variable constant came up on Stack Overflow and a Python developer’s advice was “just don’t change it”. All of these critiques seem to…

none of those things are dumb, but I agree that they are minor

Re: Python Is a Bad Programming Language

#18

I honestly don't get it. Why do people who don't write in python mind that I write in python? I don't mind that they don't write in python.

I agree. I don't think there is a such a thing as a bad programming language, only bad programmers.

> I don't think there is a such a thing as a bad programming language, only bad programmers.

Bollocks. A programming language is a thing that is created/engineered. As such it can be evaluated as well fitting for its purpose (aka being a good programming language) or being bad fitting for its purpose (aka a bad programming language).

This reply makes no judgment on the validity of the arguments present in the article, only about the existence of bad/good programming languages.

Re: Python Is a Bad Programming Language

#19

I honestly don't get it. Why do people who don't write in python mind that I write in python? I don't mind that they don't write in python.

AMEN. You can write terrible code in any programming language. I know because I’ve done it. You can write kickass code in any* programming language. I know because I’ve done it.

Language elitism is a useful metric in that it can serve to indicate an inexperienced and/or arrogant developer. I used to do this when I was younger and less experienced, but when you really start seeing the larger world and all the stuff out there, good and bad, you start to realize the language is almost never the problem. It’s nearly always your own ignorance. And that should humble you enough to realize that doing things in a different way than your preference isn’t necessarily bad or wrong, and there’s almost always context behind bad code you’re unaware of (usually business/political pressures). Under the same circumstances, you’d probably make similar mistakes and trade offs - maybe even worse.

Humility is the gateway to knowledge.

* Except brainfuck. The name tells you all you need to know.

Re: Python Is a Bad Programming Language

#20

Earlier quoted context omitted.

I agree. I don't think there is a such a thing as a bad programming language, only bad programmers.

> I don't think there is a such a thing as a bad programming language, only bad programmers. Bollocks. A programming language is a thing that is created/engineered. As such it can be evaluated as well fitting for its purpose (aka being a good programming language) or being bad fitting for its purpose (aka a bad programming language). This reply makes no judgment on the validity of the arguments present in the article…

To me programming is more of an art than a science. To find a corollary what are some bad artistic mediums? What is a bad human language to write poetry in, or a novel?
Post reply on HN