this post was submitted on 28 Jan 2024
50 points (89.1% liked)

Programmer Humor

33244 readers
947 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 1 year ago (2 children)
[–] [email protected] 9 points 1 year ago (1 children)
[–] [email protected] -1 points 1 year ago

We're not savages, we use structural sharing in our data structures. :)

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

Now, I don't functional (at all), but if you call a function with no parameters, doesn't it imply side effects?

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

I mean it could just always return the same thing...

[–] MyFeetOwnMySoul 3 points 1 year ago (1 children)

I would think that role is filled by constants.

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

where we're going, constants are just functions

[–] MyFeetOwnMySoul 1 points 1 year ago (1 children)

Java 2: you can program anything you want but it has to be a function.

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

Classes are just functions!