• ExLisperA
    link
    fedilink
    arrow-up
    32
    ·
    4 days ago

    I know it’s just a meme but Python is seriously the worst language I have ever worked with. Not because of language itself, this is fine for scripting, but because of the terrible tooling. pip is the most unreliable package manager I’ve seen, packages installed system wide collide with what you’re trying to install for you project, environment virtualization and version management is a mess with venv/pyenv and more doing same things differently (the standard can’t decide on just one tool for that) and on top of that you have all the ruff/black/mypy and many more offering same features but not really with a new tools coming out all the time. I not a Python expert but even people I worked with that are were confused but all this. I haven’t seen such a mess in any other language.

    • Slashme@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      pip is the most unreliable package manager I’ve seen,

      But have you tried conda? (It’s so much worse)

    • GreenKnight23@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      4 days ago

      anytime I have to maintain python I do it inside a container. Why? because anytime you deal with pieces of shit directly, you wear your PPE.

      everything you said, 10,000% agree. god forbid the Python purists hear it though, they’ll tell you that you’re just too stupid to understand the language enough to use it and will compare it with literally every language just to prove that they have the “biggest” python.

        • GreenKnight23@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          3 days ago

          the only thing pythonists love more than intellectually dunking on devs is hating Ruby. it’s like a universal character flaw they all mistook as a benefit.

          • tyler@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            3 days ago

            Yeah it’s pretty crazy, like Ruby was extremely well known for how good its tooling is, so much so that it inspired numerous other language package managers and build tools like elixir’s mix, rust’s cargo, and the lock files in npm and composer.

            The testing frameworks everyone uses today are directly descended from Ruby’s RSpec, almost to the letter. BDD and TDD were pioneered by Ruby devs.

            Extension functions in Kotlin are a direct result of lessons learned from Ruby metaprogramming while Rust and Elixir’s syntax are both directly inspired by Ruby.

            The beauty of Ruby’s DSLs also spread to almost every new language. Kotlin and Gradle DSL scripts are possible because of Ruby.

            Rails inspired an entirely new paradigm of web frameworks, where things were supposed to be easy by default. Laravel, Spring Boot, Phoenix, Django all are directly inspired by this, even though Django came out first it wasn’t easy to use.

            ——

            Python gave us… Jupyter notebooks, whitespace which no one uses, and not much else.

    • Rooster326@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 days ago

      They have changed this but only very recently with the Python Install Manager which forces programmers to develop the way they should have been with venv. Like Sept 2025 recently even though it’s been a valid language since 1991…

    • [object Object]@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      4 days ago

      Pyenv and venv are independent and don’t do any ‘same thing’, so you must be really talented to mess them up or be confused by them.

      I also don’t know what’s difficult about understanding why the system-wide installation exists or how to add local modules to the path (which venv does for you anyway).

  • BlueKey@fedia.io
    link
    fedilink
    arrow-up
    23
    ·
    4 days ago

    I really don’t like comparing languages by Hello World complexity. You could use a lang which needs 3 chars to print it but sucks at everything else but it would still look better at first glance.

    As for this specific comparison: let the project grow to only midsize and you will crave for static types and well separated classes.

      • BlueKey@fedia.io
        link
        fedilink
        arrow-up
        2
        ·
        3 days ago

        A good question, as I like it and don’t like it. It is without a doubt better than dynamic types.

        On the pro side it removes redundant writing the type again and again. On the con side it is almost impossible to see what type with what functions the variable in front of you has without an IDE (which you don’t have without cloning the repo) or without an already deep knowledge of the code.

        Same with extension functions (free functions which can be added to a type almost anywhere in the codebase). Very useful (Kotlin is a great example for this) but also confusing when you want to hunt down where this piece of code is coming from.

  • ChaoticNeutralCzech@feddit.org
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    4 days ago

    If you use Voyager on Firefox on Android, the last half-second is missing so you don’t get the joke.

    This appears:

    public class Main {
        public static void main(String[] args) {
            System.out.println("Hello World!");
        } 
    }
    

    and the hamster jumps very high

    • morph3ous@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 days ago

      Thanks for posting that. I watched using mlem and the end was cut off as well, so I didn’t really get it.

      Makes sense now. :)

  • Jankatarch@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 days ago

    On one hand, I heard it’s a consistency thing.
    On the other hand, do java people write a seperste static singleton class for their isEven function?