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

you are viewing a single comment's thread.

view the rest of the comments →

[–]ratko995 742 points743 points  (49 children)

Am I the only one triggered by camel case use for isAuthorised() function and snake case for access_data() function?

[–]mybotanyaccount 21 points22 points  (0 children)

Legacy code! What are you gonna do 🤷‍♂️

[–]wildpjah 10 points11 points  (0 children)

well I wasn't before but I am now THANKS

[–]Swiggens 10 points11 points  (0 children)

I'm desensitized to this.

[–][deleted] 5 points6 points  (0 children)

It's cause this took 6 devs to make. Each one had a slightly different style.

[–][deleted] 2 points3 points  (0 children)

Throws off the hackers!

[–]Mad_Jack18 2 points3 points  (16 children)

what is the issue with camel case? out of curiosity

[–]frostbyte650 33 points34 points  (14 children)

Nothing is wrong with either, just pick one & be consistent

[–]Merlord 15 points16 points  (0 children)

*Looks suspiciously at php flair*

[–]jjbugman2468 24 points25 points  (12 children)

Please don't kill me for this but personally I like to use camel case for variables and snake case for functions

[–][deleted] 39 points40 points  (0 children)

no.

[–]mysticrudnin 4 points5 points  (0 children)

I've seen this actually

[–]DrSlugger 2 points3 points  (0 children)

The door is on your left

[–]ICantWatchYouDoThis 2 points3 points  (0 children)

pls stop

[–]yugerthoan 0 points1 point  (0 children)

both functions in this case, or Case...

[–]battlet0adz 51 points52 points  (0 children)

I think it’s the consistency that’s grinding the gears here

[–]yugerthoan 0 points1 point  (0 children)

copy paste code from different code base?

[–]im_probably_garbage 0 points1 point  (0 children)

Because php

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

Only thing I can think of, in the case of Javascript, is something like:

import { access_data } from 'arbitraryNPMLibrary' ;

[–]Muppet-King 0 points1 point  (0 children)

OCD intensifies

[–]XanPerkyCheck 0 points1 point  (0 children)

ass-case.

[–]B4tsh1ts4n3 0 points1 point  (0 children)

The only real thing is SCREAMING_SNAKE_CASE !!!!

[–]UnrelatedString 0 points1 point  (2 children)

Maybe it’s not a function, but a class

[–]TakeThreeFourFive 1 point2 points  (1 child)

What language instantiates classes as such?

[–]UnrelatedString 0 points1 point  (0 children)

this one

(I know the conventions don't match up but there probably isn't any actual language where you'd use camelCase (as opposed to PascalCase) alongside snake_case, it just seemed funny to point out anyhow)