Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
There's also
veryconfusingvariablename (lowercase)
IAMACONSTANTMUHAAHA (uppercase)
Both quite frequently used in FLOSS JS/TS. Not like snake cased constants or camelCased variable names.. Not all the time.
BTW.. I think I've also managed to use another one (used for 'important' things):
MyVariableName
But I'm not sure if it's a convention already 🤔 -
Snake_Camel_Case_Combined was also how old PHP frameworks implemented namespaces back when PHP didn't have namespaces.
Like Zend Framework 1 for example:
https://framework.zend.com/manual/... -
I recently learned from one of my colleague about one more type of case, he calls it the "kabab-case" and the variables look like my-kabab-variable
@thepushkarp -
dcprm1816y@ashutoshsingh05 that’s hilarious. I will definitely want to use it. But languages which I use doesn’t support hyphen in between variable names.
There are mainly two cases (up to my knowledge) for naming variables. `snake_case` and `CamelCase` but some how we managed to add another one. Snake_Camel_Case_Combined. e.g. That_Weird_Variable_Name is so annoying to use.
joke/meme
variables
naming