this post was submitted on 17 Dec 2025
463 points (96.0% liked)

Programmer Humor

27933 readers
616 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
(page 2) 50 comments
sorted by: hot top controversial new old
[–] 30p87@feddit.org 26 points 2 days ago (13 children)

Almost any language is OK, but Rust is just so, so fucking ugly

[–] firelizzard@programming.dev 41 points 1 day ago (5 children)

Almost any language is ok but some ecosystems make me want to turn into a murder hobo (looking at you, JavaScript).

load more comments (5 replies)
[–] asdfasdfasdf@lemmy.world 42 points 1 day ago (11 children)

Hard disagree. Super beautiful.

load more comments (11 replies)
[–] LiveLM@lemmy.zip 11 points 1 day ago (4 children)

Go look at that Lisp kojumbo then tell me Rust is ugly.

(defmethod wake ((object magic-packet) address port)
  (let* ((payload (encode-payload object))
         (size (length payload))
         (socket (usocket:socket-connect nil nil :protocol :datagram :element-type '(unsigned-byte 8))))
    (setf (usocket:socket-option socket :broadcast) t)
    (usocket:socket-send socket payload size :host address :port port)
    (usocket:socket-close socket)))

Actually unreadable.

[–] bigfondue@lemmy.world 6 points 1 day ago* (last edited 1 day ago)

Maybe Emacs has fried my brain, but that is perfectly readable. Common Lisp has one of the most advanced object systems around, so yea you can write hard to read stuff if you want

[–] Zak@lemmy.world 3 points 1 day ago (6 children)

Entirely readable to someone who knows Common Lisp, and unreadable to someone who doesn't know any kind of Lisp. Mostly readable to someone who knows Emacs Lisp, Clojure, or Scheme.

Being able to correctly guess what the syntax does without knowing the language is a function of similarity to familiar languages more often than it is a characteristic of the syntax itself.

load more comments (6 replies)
[–] victorz@lemmy.world 3 points 1 day ago

It's like comparing Hitler to Stalin. Both are pretty shit... Two things can be ugly at the same time. 😅

load more comments (1 replies)
[–] asudox@lemmy.asudox.dev 23 points 2 days ago (34 children)

what? what part of rust is ugly?

[–] UnderpantsWeevil@lemmy.world 19 points 2 days ago (2 children)

Maybe they're confusing the literal name with the language? Idk.

I grew up on Perl and holy fuck... Rust is fine.

load more comments (2 replies)
load more comments (33 replies)
[–] Lembot_0006@programming.dev 20 points 2 days ago (12 children)

FORTRAN isn't a beauty either.
And Python is strange as hell with its mandatory tabs.

[–] bleistift2@sopuli.xyz 19 points 2 days ago (4 children)

You can use spaces in Python.

[–] marduk@lemmy.sdf.org 19 points 2 days ago (7 children)

Two, three or four spaces? If you answer wrong I'll never forgive you

No one will ever know. That is my editor's job. XD

[–] TeamAssimilation 15 points 1 day ago

Whatever your place defines as a standard. I’ve seen ugly code in C, JavaScript, Java, etc., that uses them all over the place because they’re not mandatory.

If you don’t have consistent indenting, your code looks like copy/paste from several sources; but if you do have consistent indenting, then the indenting of Python is a non-issue.

[–] qjkxbmwvz@startrek.website 8 points 1 day ago (1 children)

Per the Linux kernel coding style:

Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.

[–] hemko@lemmy.dbzer0.com 9 points 1 day ago

First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture.

load more comments (3 replies)
load more comments (3 replies)
load more comments (11 replies)
[–] Sunrosa@lemmy.world 9 points 1 day ago (10 children)

One of the reasons i find it so hard to use non-Rust languages is how ugly they typically are by comparison. "fn" instead of "function" is such a great example of saving key presses where they're most needed. And you get very used to seeing compact abbreviations. Idk if that's what you're talking about though.

load more comments (10 replies)
load more comments (7 replies)
[–] palordrolap@fedia.io 16 points 2 days ago (2 children)

This is pretty smart for the left guy. He's usually down at the level of "HTML is a programming language" or "What's a programming language?".

That said, the first one of those isn't mutually exclusive with what he says in the meme.

load more comments (2 replies)
[–] Gonzako@lemmy.world 14 points 2 days ago (10 children)

I like using python just cuz I can quickly get it working. I wish I had the time to undust C and try getting that to do what I want but my work cares more about iteration and speed to implement than speed of the program itself.

load more comments (10 replies)
load more comments
view more: ‹ prev next ›