Seems like an interesting effort. A developer is building an alternative Java-based backend to Lemmy’s Rust-based one, with the goal of building in a handful of different features. The dev is looking at using this compatibility to migrate their instance over to the new platform, while allowing the community to use their apps of choice.

  • loutr
    link
    fedilink
    English
    arrow-up
    77
    arrow-down
    6
    ·
    edit-2
    11 months ago

    Because modern Java is an OK language with a great ecosystem to quickly build web backends. And there are lots of java devs which means more potential contributors.

    • 0x1C3B00DA@kbin.social
      link
      fedilink
      arrow-up
      27
      ·
      11 months ago

      Exactly. It’s also using Spring Boot, Hibernate, and Lombok. It looks just like projects at work. It might be the first fediverse project I contribute regularly to.

      • BURN@lemmy.world
        link
        fedilink
        English
        arrow-up
        17
        arrow-down
        1
        ·
        11 months ago

        +1 same

        I tried to contribute to Lemmy, spent a few hours really confused by rust and gave up. I can meaningfully contribute to a Java/Spring project, not a rust one.

      • Fudoshin ️🏳️‍🌈@feddit.uk
        link
        fedilink
        English
        arrow-up
        10
        arrow-down
        11
        ·
        11 months ago

        Spring Boot, Hibernate, and Lombok

        Ah, yes. How about he kitchen sink and another 5000 dependencies to make Java bareable to code in? Actually lets skip Java cos it’s an over-engineered cluster-fuck that considers verbosity a virtue.

    • Fudoshin ️🏳️‍🌈@feddit.uk
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      13
      ·
      11 months ago

      Hello world in Java = 500 lines of code.

      Hello world in Rust = 3 lines of code.

      Java is over-engineered corporate bullshit used by banks and Android development. Nobody programs Java for the fun of it.

      • BURN@lemmy.world
        link
        fedilink
        English
        arrow-up
        15
        arrow-down
        9
        ·
        11 months ago

        Hello World is < 10 lines in Java. Just say you don’t know the language and go away.

        Java runs the majority of corporate software out there, and it is very good at what it’s built for.

        I’ll take Java over Python/Rust any day of the week

          • BURN@lemmy.world
            link
            fedilink
            English
            arrow-up
            9
            arrow-down
            3
            ·
            11 months ago

            And yet it’s still a better option than 90% of languages out there.

            Trendy languages are great until they break something or lose support. Java is consistent, and that’s the most important part.

            You sound like some Java dev personally offended you so much that you can’t separate the language from a person you hate for completely irrelevant reasons.

            Like I said, I’ll take Java and extreme OOP over Python/Rust/Go any day of the week because it’s actually readable code instead of a clusterfuck of hundreds of methods in one file

            • Fudoshin ️🏳️‍🌈@feddit.uk
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              5
              ·
              edit-2
              11 months ago

              The only reason you don’t like Rust is it’s the first language in a long time that’s threatened the dominance of C, the bedrock of programming. If it can do that then Java is going to be under threat too. Go failed cos it’s a shit language and Python isn’t even the same category. Java is more readable than Python? You’re having a laugh or you’ve never seen a friggin line of Python in your life.

              Python:

              for i in range(1, 10):
                  print("Hello: ", i)
              

              Java:

              import static java.lang.*;
              public class BentJavaClass
              {
                  public static void main (String args[]) 
                  {
                      for(int i=1;i&lt;11;i++){
                         System.out.println("Java is shit: " + i);
                      }
                  }
              }
              

              10 lines vs 2. And you think Java is more readable?

              Back in the day Java couldn’t even handle concatenating strings and numbers and needed you to fucking convert the integer into a string beforehand (String.valueOf()). I see it only took you about 20 fucking years to figure out something most other languages had out of the box.

              What’s with all the unnecessary braces? The semicolons? Punctuation causes blindness and coldsores. Java is a cancer and it’s devs should be shot and their bodies piled high before being tipped into the sea.

              • BURN@lemmy.world
                link
                fedilink
                English
                arrow-up
                6
                ·
                11 months ago

                Ok, so now build an api that can handle 100k iops with a cache, db calls and everything else, and tell me how simple that is in Python.

                Java and Python, like any programming languages don’t do everything well. They do a few things well, and most things adequately. Python is great for scripting and small applications, but once you’re hundreds of files into a corporate software project it becomes near unreadable. Java is great for large scale applications but suffers if you want to make a single purpose app.

                I’d also argue that yes, the Java is more readable at scale. Everything is explicitly typed, braces are so much better than indents (is something 20 indents or 21 idents deep, I never know), semicolons are useful for delineating ends of statements.

                It sounds like your only expose was Java in uni and have never worked with anything at scale.

                • Fudoshin ️🏳️‍🌈@feddit.uk
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  3
                  ·
                  11 months ago

                  is something 20 indents or 21 idents deep, I never know

                  You don’t know because you’re a mongoloid who’s never heard of an IDE or a well configured text editor. Stop blaming your own inadequacies on tools and accept the fact you’re a shit dev.

                  Like I said - Python and Java are different categories so I agree they aren’t competing. But you do know Dropbox, Netflix and Reddit are built in Python don’t you?

                  However, Rust and Java are competing and that scares you. Because Rust has all the benefits of Java with none of the downsides. The only benefit Java has (like COBOL) is inertia. Even Google want rid of Java and it’s why they created Kotlin.

                  Java has reached it’s zenith and s in decline. It’s only a matter of time before tech debt and new concepts kill the language off and it goes the way of COBOL and Fortran.

                  Just accept it with grace and stop fighting the inevitable.

                  • BURN@lemmy.world
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    11 months ago

                    I genuinely could not give a shit about Rust. It doesn’t scare me, because just like COBAL, Java isn’t going anywhere. An IDE helps, but it’s no easier visually than checking if something is within a pair of brackets.

                    I’m not saying you can’t do it with Python, just that it gets exponentially more complicated as you do so. Just like you can build single purpose tiny applications in java, you can build massive ones in python.

                    Rust and Java aren’t competing outside of Silicon Valley and Big Tech, and even they often still use a significant amount Java in legacy tech. Rust still can’t replicate everything that libraries and plugins for Java can, it’s still not a fully mature development stack, it’s close, but it’s far from becoming the next java.

                    Java isn’t a perfect language, I never said it was. I’m standing by my comment that it’s better than 90% of the languages out there.