79
all 19 comments
sorted by: hot top controversial new old
[-] Hector_McG@programming.dev 6 points 1 year ago

Program in assembly, 40 columns is plenty. You just need an awful lot of rows.

[-] giloronfoo@beehaw.org 4 points 1 year ago

Same monitor, just rotate it.

[-] dudinax@programming.dev 0 points 1 year ago

If you don't use a vertical monitor I don't consider you a real programmer.

[-] interolivary@beehaw.org 3 points 1 year ago

Joke's on you: I don't consider myself a real programmer either

[-] Jocker@sh.itjust.works 0 points 1 year ago

We need the same monitor, vertically!

[-] Coreidan@lemmy.world 2 points 1 year 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 5 points 1 year 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 0 points 1 year 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 1 points 1 year ago* (last edited 1 year 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 2 points 1 year ago* (last edited 1 year 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

[-] VanillaGorilla@kbin.social 1 points 1 year 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 ¯\_(ツ)_/¯

[-] mvirts@lemmy.world 1 points 1 year ago

For java programmers afraid of explicitly allocating any varables

[-] roi@lemmy.blahaj.zone 1 points 1 year ago

Gonna need a factory or two imo

[-] NatoBoram@lemmy.world 0 points 1 year ago

What Dart looks like when written by ActionScript programmers

[-] heimchen@discuss.tchncs.de 0 points 1 year ago* (last edited 1 year ago)

I used it with the default formater built in lsp, and it used so much space..

[-] NatoBoram@lemmy.world 1 points 1 year ago

Yeah, better use the linter too, that way it's limited to 80 characters

this post was submitted on 15 Jul 2023
79 points (100.0% liked)

Programmer Humor

19315 readers
40 users here now

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

founded 1 year ago
MODERATORS