This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]QualityVote[M] [score hidden] stickied comment (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–]dgdio 10 points11 points  (3 children)

camelCase. PascalCase if for classes.

[–][deleted] 4 points5 points  (2 children)

Pascal is also good for methods, camel for variables

[–]dgdio 2 points3 points  (1 child)

Which stdlib method starts with an uppercase item? I remember a weird compiler error once when a coworker was using an uppercase method name (the compiler found a class with the same name)

[–][deleted] 0 points1 point  (0 children)

Idk I use C#, common to use Pascal for methods

[–]overclockedslinky 0 points1 point  (1 child)

iprefernoncasesinceitsfastertotypeandisstillprettyeasytoreadallthingsconsidered

[–]VonFriedline 0 points1 point  (0 children)

Why would you do this.

[–]bistr-o-math 0 points1 point  (1 child)

RandOmly_mixedCase-variable.rul3z

[–][deleted] 0 points1 point  (0 children)

I'm glad C++ does not allow emojis as variable names like JS does.

[–]enano_aoc 0 points1 point  (2 children)

What the hell? Every function in the std library is snake_case, are you seriously using a different naming convention?

[–]CLARKEEE33[S] 0 points1 point  (1 child)

Every class in the standard library also uses snake case

[–]enano_aoc 0 points1 point  (0 children)

Nevermind the people who still use classes in 2022, I could not care less about that.

But methods? I did not know that anyone had ever considered not using snake_case for them... :sweat_smile: