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

Programmer Humor

32380 readers
1361 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
all 22 comments
sorted by: hot top controversial new old
[–] [email protected] 29 points 1 year ago (1 children)

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

[–] [email protected] 16 points 1 year ago (2 children)
[–] [email protected] 16 points 1 year ago (2 children)

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

[–] [email protected] 6 points 1 year ago

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

[–] [email protected] -4 points 1 year 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.

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 7 points 1 year ago (2 children)

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

[–] [email protected] 4 points 1 year ago* (last edited 1 year 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!

[–] [email protected] 1 points 1 year ago (1 children)

Reverse Polish notation, right? Operand operand operator?

[–] [email protected] 1 points 1 year 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!

[–] [email protected] 2 points 1 year ago

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

[–] [email protected] 7 points 1 year ago (2 children)

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

[–] [email protected] 5 points 1 year 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

[–] [email protected] 2 points 1 year 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.

[–] [email protected] -3 points 1 year ago

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

[–] [email protected] 3 points 1 year ago (1 children)

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