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.
Not to stereotype too much but I think this is the first Blåhaj I've seen (in a programming context) that wasn't team Rust.
What your programming language of choice (if you don't mind sharing)?
The account is feddit...
Shark avatar, though.
As much as I'd like to think I'm generally in the loop of Lemmy lore, I'm afraid I don't understand the connection.