ThePlexus
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 4 months ago

Python vs. Java

sh.itjust.works

video
message-square
16
fedilink
2
video

Python vs. Java

sh.itjust.works

Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 4 months ago
message-square
16
fedilink
alert-triangle
You must log in or register to comment.
  • ExLisper@lemmy.curiana.net
    link
    fedilink
    arrow-up
    1
    ·
    4 months 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.

    • pet the cat, walk the dog@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      4 months 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).

      • ExLisper@lemmy.curiana.net
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        4 months ago

        Yes, you have to be talented not to get lost in the pyenv (‘env’ as in ‘version’ management), venv, virtualenv, pyvenv and god knows what else. All those tools either manager versions, virtual environments or both. Super simple! I’m sure you’re enjoying working with them and that’s fine. I avoid it.

        • pet the cat, walk the dog@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          4 months ago

          If a programmer needs a whole ‘standard’ to figure out that two orthogonal tools are all they need, it’s not a good sign.

          • ExLisper@lemmy.curiana.net
            link
            fedilink
            arrow-up
            0
            ·
            4 months ago

            • pet the cat, walk the dog@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              4 months ago

              Learn to RTFM, noob.

              • tyler@programming.dev
                link
                fedilink
                arrow-up
                0
                arrow-down
                1
                ·
                4 months ago

                Have you ever actually read the manual? I have. It’s thousands of words for how to build a single python library. If you look at almost any other language it will be a tenth of that. Ruby’s is literally like 4 commands total. The only people that think Python tooling is even halfway good are people that have never used a language with proper tooling.

                https://chriswarrick.com/blog/2023/01/15/how-to-improve-python-packaging/

  • thenextguy@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    4 months ago

    Actually… since around Java 21, it’s just

    void main() {
        println("Hello World");
    }
    

    https://blog.jetbrains.com/idea/2024/02/helloworld-and-main-meet-minimalistic/#class-‘helloworld-before-and-after-java-21

    • Solemarc@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      I vaguely remember hearing this this was only really available for toy code and that this function created the class ignored the arguments and qualified println when you compiled it, so it wasn’t actually that useful?

      • bigboismith@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        Printing to console is often only used for toy code anyway.

        • silasmariner@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          4 months ago

          Wait, how do you debug your code?

          • Magnum, P.I.@infosec.pub
            link
            fedilink
            arrow-up
            1
            ·
            4 months ago

            Using a debugger?

            • silasmariner@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              4 months ago

              Guess you could do that, seems like a pain though

              • Magnum, P.I.@infosec.pub
                link
                fedilink
                arrow-up
                1
                ·
                4 months ago

                ???

          • Ethan@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            4 months ago

            … with a debugger

            • silasmariner@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              4 months ago

              Meh

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 986 users / day
  • 3.12K users / week
  • 8.23K users / month
  • 14.7K users / 6 months
  • 1 local subscriber
  • 31.7K subscribers
  • 732 Posts
  • 13.4K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org