this post was submitted on 24 Sep 2023
108 points (88.0% liked)

Programmer Humor

31329 readers
43 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
all 22 comments
sorted by: hot top controversial new old
[–] mogoh@lemmy.ml 29 points 9 months ago (1 children)

))))))))))))))))))))))))))))))))))))))))))))))

[–] yogthos@lemmy.ml 16 points 9 months ago (2 children)
[–] BaumGeist@lemmy.ml 16 points 9 months ago (2 children)

I love how much of a kamikaze this is: "yeah that thing LISP does terribly? Non-LISP languages do it too!"

[–] ______@lemm.ee 6 points 9 months ago

Also this just looks like bad code, not a limiting feature of the language.

[–] yogthos@lemmy.ml -4 points 9 months ago (1 children)

Except LISP doesn't do it terribly, and in my experience there are a lot less parens and other separators than in most languages.

[–] BaumGeist@lemmy.ml 1 points 9 months ago (1 children)

Ok... but the comic doesn't say that...

[–] Solaris1789@jlai.lu 7 points 9 months ago (2 children)

As a parentheses hater my personal hell would be having to audit and refactor a lisp codebase

[–] lemann@lemmy.one 5 points 9 months ago (1 children)

My work maintains a legacy AutoCAD addin written in Lisp... we are considering dropping support because it's so difficult to maintain with the original dev gone

[–] kale@lemmy.zip 2 points 9 months ago

Oof. Is that the official plugin language? Siemens NX uses "grip" which is a fork of TCL. And they require purchase of a pricy package to sign and compile code so NX will run it, so we only had one programmer for our custom grip functions.

[–] yogthos@lemmy.ml -3 points 9 months ago

Having worked with Clojure for over a decade now, I find it far easier to refactor than most other languages I've touched.

[–] airbussy@lemmy.one 7 points 9 months ago (2 children)

Then there's Haskell where arguments to a function are given with spaces

[–] fibojoly@sh.itjust.works 4 points 9 months ago* (last edited 9 months ago) (1 children)

I have fond memories of RPL on the HP48 calculators where you would give arguments as a stack, then call the function. Something like (a+b)*c could be written C A B + * Such fun!

[–] kale@lemmy.zip 1 points 9 months ago (1 children)

Reverse Polish notation, right? Operand operand operator?

[–] fibojoly@sh.itjust.works 1 points 9 months ago

That's the one. The Wikipedia article has some extensive examples, too.

Its weird syntax prepared us well to face the horror of assembly language later on, so I have a certain fondness for it. That and I had absolutely no point of comparison at the time, haha!

[–] jana@leminal.space 2 points 9 months ago

It makes sense if you just think of everything as a function.

[–] cadekat@pawb.social 3 points 9 months ago (1 children)

The real interesting debate is between ((f) 1) and f()(1).