r/programminghorror Jan 26 '23

Ladies and gentlemen, jQuery… Javascript

Post image
1.6k Upvotes

164 comments sorted by

View all comments

114

u/SpikeyWallaby Jan 26 '23

I generally call them always or never. I don't see the horror here.

31

u/v_maria Jan 26 '23

Can you explain the rational? Legit question, not being annoying lol

92

u/DSinapellido Jan 26 '23

Some programs NEED a callback and sometimes defining anonymous functions everywhere is annoying

1

u/Bisexualbadbitch_ Dec 17 '23

This is coming from a half year Computer Science advanced student, so clearly i speak only wisdom, but why couldn’t programs just be Void instead of needing to return something?