Almost any language is OK, but Rust is just so, so fucking ugly
Programmer Humor
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
Almost any language is ok but some ecosystems make me want to turn into a murder hobo (looking at you, JavaScript).
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.
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
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.
It's like comparing Hitler to Stalin. Both are pretty shit... Two things can be ugly at the same time. 😅
what? what part of rust is ugly?
Maybe they're confusing the literal name with the language? Idk.
I grew up on Perl and holy fuck... Rust is fine.
FORTRAN isn't a beauty either.
And Python is strange as hell with its mandatory tabs.
You can use spaces in Python.
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

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.
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.
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.
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.
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.
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.