515
you are viewing a single comment's thread
view the rest of the comments
[-] LiveLM@lemmy.zip 10 points 8 months ago

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.

[-] Zak@lemmy.world 4 points 8 months ago

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.

[-] victorz@lemmy.world 3 points 8 months ago

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

this post was submitted on 17 Dec 2025
515 points (100.0% liked)

Programmer Humor

32950 readers
1429 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 3 years ago
MODERATORS