this post was submitted on 28 Jan 2024
53 points (89.6% liked)

Programmer Humor

32282 readers
390 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] samc@feddit.uk 13 points 8 months ago (9 children)
[–] Dirk@lemmy.ml 7 points 8 months ago (6 children)
[–] MyFeetOwnMySoul@lemmy.ca 5 points 8 months 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?

[–] eluvatar@programming.dev 3 points 8 months ago (1 children)

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

[–] MyFeetOwnMySoul@lemmy.ca 3 points 8 months ago (1 children)

I would think that role is filled by constants.

[–] akariii@lemmy.blahaj.zone 3 points 8 months ago (1 children)

where we're going, constants are just functions

[–] MyFeetOwnMySoul@lemmy.ca 1 points 8 months ago (1 children)

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

[–] Dirk@lemmy.ml 1 points 8 months ago

Classes are just functions!

load more comments (4 replies)
load more comments (6 replies)