829
submitted 1 year ago* (last edited 1 year ago) by MaliciousKebab@sh.itjust.works to c/programmer_humor@programming.dev
(page 2) 45 comments
sorted by: hot top controversial new old
[-] mindbleach@sh.itjust.works 8 points 1 year ago

You have Perl.

%_=~aj/dy/hfiw8i/g;
$_/a(h0w8)y@;
FWA/E.*FW[tu29uy]/;
%(1)hjc/f4ifh38/y;

The princess is saved, but all you can think about is rescuing another, with an entirely different plan. Which is just as well because you have no fucking idea how to explain the one you just wrote and executed.

[-] flumph@programming.dev 5 points 1 year ago

I'm going to have to print out the Go version for all future "it's idiomatic" and "but the community!" debates at work

[-] SnipingNinja@slrpnk.net 3 points 1 year ago

I'm curious about this but I'm barely a programmer now, so if anyone is up to explain

[-] flumph@programming.dev 5 points 1 year ago

The go community is strongly opinionated in unique ways. For example, using libraries is generally frowned upon. You either use something included in the language itself (standard library) or copy/paste the code you wrote in another project. There's also advocacy for shorter variable names which generally seems counter to the normal "write descriptive variable name" mantra.

All in all, I hope the ideas / opinions came from a good place and then some people took them as black & white rules. But they also come off as one or two people's pet peeves who got to build a language around them.

load more comments
view more: ‹ prev next ›
this post was submitted on 07 Dec 2023
829 points (96.2% liked)

Programmer Humor

19821 readers
535 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