• henfredemars@lemdro.id
    link
    fedilink
    arrow-up
    21
    ·
    edit-2
    2 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
      8
      ·
      2 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
        6
        ·
        2 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.

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

          Yeah people do that, until you’re sharing a code window and then need to see if it works on a browser and then your dev tools are popped out so you have three windows…or you don’t want to just have one meeting and one window visible, you also want slack or a window for googling or something similar…

          It’s all workaround-able, it’s just minor annoyance after minor annoyance lol.

    • bleistift2@feddit.de
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 years ago

      The real advantage of two monitors is that you can turn one off if you don’t need the full 50000px width.

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

        As far as I’m concerned the advantage is I can have three windows (or three editor views) tiled horizontally and each one is the perfect width. A half width (half of 1080p/16:9) is too narrow and a full width window wastes space, but a 2/3 (of 1080p) width window is about perfect. If I tried to do that with two regular monitors, the middle window would be split across the bezel.

        *When I say 1080p, I really mean the aspect ratio. My monitor is effectively a double width 1440p monitor, but with the display scaling I use the space is effectively 1080p.

    • VanillaGorilla@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      2 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 ¯\_(ツ)_/¯

  • Coreidan@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    2 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
      15
      arrow-down
      2
      ·
      2 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!
          }
       }
      
      • Coreidan@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        ROFL you’ve proved my point. Just because Java gives you an opportunity to hang yourself doesn’t mean you should or have to.

        You took one line of code and turned it into a novel. Bad programmers do this and then ignorant folks blame it on the language when it’s really just a lack of knowledge/skill.

        • words_number@programming.dev
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          2 years ago

          You must be fun at parties! Seriously, this is a meme sub and the wildly exaggerated helloworld example I pasted (from this hilarious article) is obviously satire. I agree, that

          1. There are way worse programming languages than Java
          2. The verbosity is not the biggest problem of java, it is rather the dogmatic OOP paradigm that sucks.
      • Scoopta@programming.dev
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        2 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
      8
      ·
      edit-2
      2 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.

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

        In an enterprise setting we’d definitely create a method in that object what would have that chain in it, and call that instead… It seems like it’s used over, and over again.

        Anyhow, we’re sitting here trying to make sense of something that obviously some sort of joke haha.

        Man we’re such fucking nerds.

    • muhanga@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      Somewhere someone probably does… But this piece of code really look like someone either tried to inline a bunch of calls or this is code generated object mapper from json or other nested model.

      Nobody with a sane mind and serious attitude will use this code as a “real” code. (I still believe in people, despite all the evidence to the contrary I get every day)

      As a fun bit though this taken some dedication.

  • Von_Broheim@programming.dev
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    Had an ultra wide for a while, went back to 2 27" monitors after 2 years. 2 monitors is more convenient imo. I can flip one vertical whenever. Less fiddly to have multiple things open at once. One is centered while the other is on the side and angled, much nicer way of separating what’s my focus. Easier to screen share. I always found the curve distracting for text.

  • moosh@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    Is this a good thing I’m looking at or a bad thing? I don’t get it but then again, I’m not a programmer.

  • nicotinell@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    You’re dangerously close to the edge there bud, what’s your plan B when that starts to overflow huh?

  • Crashumbc@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    LOL, that said. The BEST thing I ever bought when WFH started was a 4k monitor.

    The extra screen real estate is amazing

        • snowe@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Definitely. I’m pretty sure they modified the code to look as bad as possible just to take the photo though. You can clearly see all the lines are marked as modified in the gutter.

          • hughperman@sh.itjust.works
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            It’s also a good way to potentially multiply your query costs and slow down the function, while introducing possible inconsistencies if the objects are modified between the first and last time they are requested.

        • clutchmatic@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          This is the best answer… Or the outer classes being delegated access to the inner ones and so on, like an onion.

          I wonder if this is one of the situations that Kotlin delegated parameters were designed to handle? (I’m new to Kotlin and still don’t understand that “by” construct there)