394
top 50 comments
sorted by: hot top controversial new old
[-] parlaptie@feddit.org 140 points 4 days ago

Hang on, this is just a C++ joke slapped onto Rust.

[-] puchaczyk@lemmy.blahaj.zone 142 points 4 days ago

You could say they have rewritten the joke in Rust

[-] dave@feddit.uk 16 points 3 days ago

But you get the joke faster now.

[-] davidagain@lemmy.world 6 points 3 days ago

No, it's just impossible for it to leak out of a hole in the back of your head that you didn't realise was growing under your pony tail.

[-] Laser@feddit.org 87 points 4 days ago
[-] merc@sh.itjust.works 2 points 2 days ago

A funny, but incredibly subtle joke to do would be to do a post like this, but get the indentation subtly wrong somewhere, so something that's supposed to be inside a loop is outside according to indentation, but is inside according to braces.

[-] enemenemu@lemm.ee 13 points 4 days ago

To me it just looks like you do not need the braces at all

[-] Feathercrown@lemmy.world 48 points 3 days ago

It took me way too long to notice the horror on the right

[-] duckythescientist@sh.itjust.works 78 points 4 days ago

I'm good at Python, and I don't know Rust. This looks fine to me. I've fully missed the joke.

[-] logi@lemmy.world 163 points 4 days ago* (last edited 4 days ago)

Same. Until you notice the column of curly braces and semi colons in the right margin.

[-] ryannathans@aussie.zone 43 points 4 days ago
[-] Viking_Hippie@lemmy.dbzer0.com 21 points 4 days ago
[-] zlatko@programming.dev 12 points 4 days ago

You never review code when you have no time to do an actual review? Looks good to me :)

[-] merc@sh.itjust.works 1 points 2 days ago

LGTM: Large Glitches, Test More!

load more comments (2 replies)
[-] Arcka@midwest.social 22 points 4 days ago

Oh, so Rust is like JavaScript!

[-] barsoap@lemm.ee 6 points 3 days ago

No, Rust lacks the semicolon elision rules of Javascript which make everyone always use semicolons in javascript because they're so horribly broken.

Rust is like ML, quite literally, not just by ancestry: The syntax is palpably ugly, but at least it's sane, regular, and concise where it matters.

[-] F04118F@feddit.nl 3 points 4 days ago

Undervalued comment right there. This is better than the OP

load more comments (1 replies)
[-] dgriffith@aussie.zone 68 points 4 days ago* (last edited 4 days ago)

rustfmt

is stopping me from writing code like this, and I have never been more happier using it after viewing this.

[-] killeronthecorner@lemmy.world 59 points 4 days ago

I'm going to write a tool that automatically adds the braces and semicolons to the column as you edit the code.

I will call it rustfml

[-] Irelephant@lemm.ee 9 points 4 days ago

Crap, thats what I was thinking.

[-] verstra@programming.dev 8 points 4 days ago

It could be run after git checkout and then rustfmt before commit.

[-] killeronthecorner@lemmy.world 4 points 4 days ago

Slow down satan

load more comments (1 replies)
[-] TheAgeOfSuperboredom@lemmy.ca 57 points 4 days ago

Then some jerk runs rustfmt and ruins all your hard work!

[-] wise_pancake@lemmy.ca 28 points 4 days ago

Can't you fix the default format to this?

[-] mostlikelyaperson@lemmy.world 34 points 4 days ago

My medication mostly.

[-] PhobosAnomaly@feddit.uk 29 points 4 days ago

I hate it with every fibre of my being but also secretly calmed by that column of statement terminators and brackets.

It's like the code representation of the Vancouver riots kiss photo.

load more comments (3 replies)
[-] villainy@lemmy.world 14 points 4 days ago

DwangoAC and the TASBot crew are maniacs in the best possible way. I would like to continue having a high opinion of him, hence I will pretend that this post does not exist.

[-] notabot@lemm.ee 17 points 4 days ago

This makes my deeply uncomfortable, like an itch I can't quite scratch.

load more comments (1 replies)
[-] CanadaPlus@lemmy.sdf.org 9 points 4 days ago

Wow, so this is possible.

Formatting is so damn arbitrary. Somebody has to have tried storing just the parse tree on disk, right?

[-] brisk@aussie.zone 2 points 3 days ago

The closest thing I've seen is Combobulate

load more comments (5 replies)
[-] poireCartable@lemm.ee 10 points 4 days ago

My eyes! My eyes!!!!

[-] bitcrafter@programming.dev 6 points 4 days ago

My humanity.

[-] stefenauris@pawb.social 9 points 4 days ago
[-] tonytins@pawb.social 9 points 4 days ago

Oh... Oh! Well, that is creative.

[-] muntedcrocodile@lemm.ee 5 points 4 days ago

I like python like really really like it. But this should be a warcrime

[-] BigMikeInAustin@lemmy.world 8 points 4 days ago

I’ll allow it!

[-] pineapplelover@lemm.ee 3 points 3 days ago
load more comments
view more: next ›
this post was submitted on 27 Feb 2025
394 points (97.8% liked)

Programmer Humor

20867 readers
1397 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 2 years ago
MODERATORS