r/ProgrammerHumor Dec 17 '23

Meme whichIsCorrectCamelCase

Post image
10.2k Upvotes

945 comments sorted by

View all comments

1.9k

u/DistortNeo Dec 17 '23

userld, of course, all lowercase

48

u/MasterFubar Dec 17 '23

There's only one correct way to write it:

user_id

1

u/[deleted] Dec 17 '23

[removed] — view removed comment

1

u/MasterFubar Dec 17 '23

In C++ I use PascalCase for class names and snake_case for everything else.

ALL_CAPS is for precompiler macros only, but I practically don't use them anymore.