this post was submitted on 16 Jul 2023
12 points (87.5% liked)

Programmer Humor

32380 readers
844 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

No offence

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 0 points 1 year ago (1 children)

People creating functions as objects inside of other functions. A few days ago saw a person create a function with two object functions inside, then passed one of the functions as an argument to the other function. Then returned the second function.

It's hard to find such a mess in other languages. Yeha, functions as objects are cool. Closures are also cool... But why abuse that shit?

[โ€“] [email protected] 1 points 1 year ago

Ahh I remember that sort of JS programming from way back. Do people still do that?? You can just create a class now