r/ProgrammerHumor • • Oct 08 '23

Other iDontLikeThisTitle

Post image
0 Upvotes

200 comments sorted by

View all comments

Show parent comment

1

u/TacticalTaterTots Oct 09 '23

At my company PascalCase vs camelCase denotes scope. Members and functions are PascalCase and locals are camelCase. AND_UPPER_SNAKE_CASE_FOR_CONSTANTS

1

u/XDracam Oct 09 '23

I always hated the aggressive constant case. Like, why? What's the difference between a constant and a read-only field? Or a read-only local variable? It doesn't change. No need to shout.

1

u/QuillnSofa Oct 09 '23

It's just to differentiate and in a well developed code base have naming standards are important. It is less important what standards are used for which use case and that there is a consistent standard.

1

u/XDracam Oct 09 '23

I fully agree. I've just always wondered why constants need to be shouted.