• uncouple9831@lemmy.zip
    link
    fedilink
    arrow-up
    6
    arrow-down
    19
    ·
    edit-2
    3 days ago

    I don’t know why you keep getting downvoted, there’s no good code in all the universe written in a language that contains the letters j-a-v-a.

    There is a silver lining: we know at least 16 people and counting who love Oracle and the Ellisons. Keep enjoying your cop shows, Oracle cucks.

      • addie@feddit.uk
        link
        fedilink
        arrow-up
        6
        ·
        3 days ago

        Java’s biggest strength is that “the worst it can be” is not all that bad, and refactoring tools are quite powerful. Yes, it’s wordy and long-winded. Fine, I’d rather work with that than other people’s Bash scripts, say. And just because a lot of Java developers have no concept of what memory allocation means, and are happy to pull in hundreds of megabytes of dependencies to do something trivial, then allocate fucking shitloads of RAM for no reason doesn’t mean that you have to.

        There is a difference in microservices between those set up by a sane architect:

        • clear data flow and pragmatic service requirements
        • documented responses and clear failure behaviour
        • pact server set up for validation in isolation
        • entire system can be set up with eg. a docker compose file for testing
        • simple deployment of updates into production and easy rollback

        … and the CV-driven development kind by people who want to be able to ‘tick the boxes’ for their next career move:

        • let’s use Kubernetes, those guys earn a fortune
        • different pet language for every service
        • only failure mode is for the whole thing to freeze
        • deployment needs the whole team on standby and we’ll be firefighting for days after an update
        • graduate developers vibe coding every fucking thing and it getting merged on Claude’s approval only

        We mostly do the second kind at my work; a nice Java monolith is bliss to work on in comparison. I can see why others would have bad things to say about them too.

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

          I was referring another comment in the thread, sorry for confusion. The OP attacks both Go and microservices, although it’s no Gos fault in the story.

          Also I just hate Java too, and OOP in general.

    • Pieisawesome@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      If the Java monolith used 6 gb of ram and each Go service uses 500mb of ram, but now there are 16 micro services, which uses more memory?

      Monoliths are more efficient, but hav other issues.

      • fruitycoder@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        3 days ago

        Can be more efficient, but it’s not always. You can scale those services more too. Do you need all 16 running on idle? Lazy load then as needed. Also does it really need a whole 500mb? Why? If its just a cache made that’s better handles with another shared service (redis, etc). If it’s software, why? A full “fat” Suse Base Container image uncompressed is 94.8mb and not all of that will be loaded in RAM. Going down to a micro at 23mb. All this and now you can deploy it on the shared infra, no separate OS, Management/security/logging/networking solution.

        • Pieisawesome@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          Sure, but they also have duplication, IE database connections. Each service needs at least 1 connection versus one for a monolith.

          There are pros and cons to any architecture.

          • fruitycoder@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            The IPC increase is the most sure tradeoff for sure.

            Agreed, engineering is deciding what trade offs are acceptable. Cargo culting any pattern is a good way to build runaway junk