• Coreidan@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Jfc. Do people really write code like this? I’ve been writing code in Java for 15+ years and have never seen anything like this.

    You need more skill, not a wider monitor. SMH.

    • words_number@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      3 years ago

      Hello world in Java:

      class 9-A {
          public static endangered therefore protected final void main(String[] args) {
              System.prepareTheOutputBufferForPrintingAsTheNextStatementWillDoSo(args);
              System.in.out.in.out.shake.it.all.around("Java is a programming language " +
                  "invented by the intelligent monkeys " +
                  "working at Sun Microsystems.");
              return void; // duh!
          }
       }
      
      • Scoopta@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        3 years ago

        I get making fun of java’s verbosity for things like checked exceptions but hello world really isn’t that much worse than most other languages especially considering all the “boilerplate” is required for any program more complicated than hello world in pretty much every language. But if a useless program really is too verbose for you see java 21.

        void main() {
          System.out.println("hello world");
        }
        
    • Von_Broheim@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Yeah, you never see this in enterprise settings. Sure builders or streams can get a bit long but you just pop each .x() on a new line.

      And when they’re on new lines intellij has a cool feature where it creates a little UI only comment next to the line showing what type it returns.

  • henfredemars@lemdro.id
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    3 years ago

    I have a monitor that’s almost like this and it’s surprisingly nice. It feels like a two-monitor setup. Two actual monitors would probably have been cheaper, but I got mine from work, so it wasn’t a factor.

    The real advantage of having two actual monitors is being able to flip one vertically for reading code.

    EDIT: a word

    • Milx@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Everyone at my work who has this runs into issues whenever they need to share their screens, apologizing for low resolution or painstakingly resizing every window to mimic multiple screens anyway.

      • Ethan@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        I just share one window at a time. I put the meeting on one half and the window I want to share on the other, which makes it 16:9 and works perfectly for what I need to share.

    • VanillaGorilla@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      I bought one after some months of remote work in 2020. Then when I started my new job they gave me another one (different manufacturer but exact same panel size). I needed to rearrange my desk a lot, but holy shit so much room for error messages!

      Yes, I’m a Java developer ¯\_(ツ)_/¯

  • kucing@lemmy.my.id
    link
    fedilink
    arrow-up
    0
    arrow-down
    6
    ·
    3 years ago

    Ah finally, an overpriced device to show off my overengineered, 10s layers of abstraction of SimpleShitLotsGoodLibrariesButWeDecidedToMakeOurOwnFactory.

      • Von_Broheim@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        3 years ago

        Yeah that can get ugly but it’s still better than writing native queries because you know it’s gonna automatically translate to any db specific sql flavour.

        When they get a bit too long and ugly I either write default methods using specifications or I create a more concisely named default method that wraps the verbose monster.