I think this is more like a rant.

Holy Christ! I’ve been using Python to do some simple scripts here and there, and what a terrible language to deal with (yea, terrible, just down vote and move on, I need to say it somewhere).

Why would anyone change so many standards? I often need to deal with PHP/JS at the same time and I don’t have a single issue, they feel like the same language in practice, but when it comes to Python everything changes.

I just hate this more human-readable philosophy of Python, we need a common ground to communicate with the machine, I don’t want fancy keywords or syntax, it’s not that hard to learn a new syntax, it might take a few days, it’s not worth the trade off of changing so many standards that older languages came with.

For some reason every single code I write feels aesthetically ugly. I feel like the letters are just floating around without brackets and curly brackets.

I often mistake a lot of:

for x in list:

With:

for (x in list):

And it’s done, syntax error, I need to go back and do it “Python way”. It’s way harder to read Python code than anything else, I want to read what the for loop expression is evaluating, and the lack of brackets make it harder to assimilate.

Don’t even let me talk about types! Why would you provide a way to type parameters but don’t enforce it at runtime? Jesus Christ! It could be simple: if you type a parameter, you want it to be checked, if not, you wouldn’t type anything. You need to import built in types, why would any human on Earth make a decision like that? (from typing import List, Optional)

Why so many different ways to declare an array-like structure? Tuples, Sets, Dicts, Lists? Dude… ffs, I know each one supposedly has a “different” purpose, I literally don’t see any good benefits on it. It just makes me more confuse.

I’m not talking about 3rd party libraries like mypy, I’m talking about things that should be on language core since the first version.

The more I learn about Python, more it pisses me off. I’m mainly using it because of interoperability, easy to setup, it runs flawlessly in any OS and Python usually comes pre-installed in many OSs, but the experience of developing in this language is just terrible.

  • CodenameDarlen@lemmy.worldOP
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    It’s been a while I don’t use JS without TS, so idk. But PHP enforces type check at runtime, latest versions you can declare argument types as classes, interfaces, etc… It’s a very pleasant experience IMO.

    Idk I have more reasons to hate it, I’m just thinking if there’s any good reason to not forget the existence of Python and go back to TS as a general purpose scripting language.

    • borari@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      Regardless of whether the internet tells you anything or not, just do whatever the fuck you’re happy doing. If you want to code in cobol code in cobol, if you want to code in js code in js, if you want to code in python code in python.