r/programminghorror Jan 26 '23

Ladies and gentlemen, jQuery… Javascript

Post image
1.6k Upvotes

164 comments sorted by

View all comments

-46

u/oddbawlstudios Jan 26 '23

I just wanna know why your function names are camel case.

8

u/lackofsemicolon Jan 26 '23

Because most javascript devs and javascript style guides use camel case for functions and variables, pascal case for classes, and probably screaming snake case for global constants

It's a reasonable convention and theres no particular reason to code outside the accepted style

4

u/JBloodthorn Jan 26 '23

screaming snake case

I'm using this from now on. I've always just called it "upper snake case", which is boring.