×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules Donate
24

Python is horseshit and Guido van Rossum is a nigger-loving nigger.

submitted by SithEmpire to programming 3.4 yearsNov 24, 2021 15:40:17 ago (+25/-1)     (programming)

All of my contact with Python is to fix broken stuff, where most of the time the fix is to start over with a better platform. Every time I end up having to use it, I find new failures in its design which are even more mentally retarded than the time before.

Reliance on white space is colossally retarded and it imposes the need for a `pass` keyword. Anyone who thinks it is possible to force programmers into writing legible code that way is a colossal retard.

Like most pretentious garbage it changes many classic reserved words, just enough that the number of complainers does not rise above half the users. `throw` is `raise`, `catch` is `except`, `null` is `None`, `true` is `True`, `false` is `False`. So much for keeping to a lowercase style when you can use capitals just because those are constants rather than keywords.

Inconsistently, it retains `==`, `!=` and `^` but changes `&&` to `and`, `||` to `or` and `!` to `not`.

Despite being popular for data processing, it cannot thread. It has something called threads, but this is only useful for I/O, because its "global interpreter lock" fundamentally can only run one line at any time. The autistically screeched response is to run extra processes, but its attempt at shared memory is also total ass. All the data popularity comes from being a front end to NumPy, which is written in C.

Lambdas? Only if the result can be written in one expression, no statements allowed.

Class constructor? Some nigger decided to name that `__init__`.

Anonymous object? It was supposed to work but doesn't, but you can `import types` and use `types.SimpleNamespace` instead, that works. Unless you want methods with statements in, then you need to use `def` and pass in all scope variables.

No pre-increment or post-increment. `+=` works, but you can't use it within a comparison test, because fuck you.

No `switch`, get used to `elif` nigger.

No do-while, make a flag or copy the fucking loop code.

No labels for `continue` and `break`, no numeric argument option, not even a fall-back `goto`. Guido himself said that this type of code is too complicated, by which he means he is too retarded to understand it, so fuck off and make a load of complicated flags and tests instead.

It doesn't even have the `===` operator like other languages with dynamic types, you have to test the types yourself... using `__class__` like a nigger.

No `static` keyword, but you can make a static method if you put `@staticmethod` on the line before. Genius.

You can have the ternary operator, but you have to put the test condition in the middle instead of at the front. Also `if` and `else` are reused for doing that, just in case you missed having a horizontal scroll bar.

That much is only what I have learned while otherwise trying to avoid Python.

Fuck


49 comments block

I hate JavaScript as much as the next guy but it pretty much dominates web development, hence why people who dislike JavaScript started making transpilers.