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
-
howie1218yCamelCase. But when I was 18-19 my summer job was as the front half of a camel in a theme park, so I'm kind of biased.
-
kimailis5208yi am thinking about making a small app that takes up a string and outputs a randomcase name.
the names of the class and methods in this app will be underscore case. -
Gexgekko928yI naturally use camelCase but the people above me use under_score so I'm trying to use that
-
nmunro31908y@linuxer Except when naming classes which are camel case, or standard library functions which are all lower case...
-
inkt11688yI use camelCase, it's quicker for copy and paste. Double click a word, the selection stops at the next/previous special character.
-
BartBB6898yWhatever is used in the current project I'm working on.
Unless it is a personal project, then it's Underscore, because I have an instinct to hold shift on the first letter. But if I pause to think, camelCase. -
// Use for each variable declaration
function pickCase () {
var caseOptions = [
'pascal',
'camel',
'kebab',
'underscore'
];
return caseOptions[Math.floor (Math.random() * caseOptions.length)];
}; -
THANK YOU ALL. For all your comments and your funny comments. You make me laugh so hard. I love the devRant community you are amazing !
-
Koolstr27908yCamelCase FTW. Why go out of my way to type an extra character, making longer and less pretty variable or function names?
-
inkt11688yI'd like to elaborate on my comment. I do prefer camel case, but I will follow suit. I tend to use hyphens for things in WordPress, because it's picky like that. Then in MySQL I'll use underscores for table names, the cPanel username gets hard coded with an underscore prior to my table name. I think mixing the two looks silly.
-
MMXZ318ySpace case.
Real answer: capitals is easier to type than an underscore, so I'm a 🐪 case man.
Related Rants
Are you Underscore or camelCase ?
undefined
variable
syntax