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
-
Man... I can't ever make up my mind about this! But usually userId. Thing is, if I were to write it like userID, how would I write just ID then? All uppercase? That would indicate a class or something else...
-
I have fallen into the practice of only capitalizing the first letter of acronyms in camelcase.
userId
parsedJson
I think it preserves the flow of camelcase much better. -
I should do “UserId” but I end up doing “UserID” because that is what my fingers know how to type.
-
I use userId. I'm very strict about it. Because this is one of those cases where you search for hours upon hours why userId is undefined.
-
joas19425yuserId
Because userIDGenerator just looks wrong and if it has another acronym after it, it becomes really hard to understand where the first ends and the second starts (eg. userIDDB). -
I'll search for whatever the convention is in the project that I'm working on, and stick with it.
-
Project at the company would have it like Id. I hate that convention tho, so I'd say userID.
-
UserId, because is more clean in my point of view. But UserID (i don't know why) seems more correct.
-
@Frederick No, no, no, jAsE language would change commands names and create and destroy alias from time to time.
-
Gogy2275yIf it's the first time in the project then userId, but if someone already wrote userID somewhere I would stick to that for consistency.
-
@Skayo Just saw your highlight bot... maybe add a jAsECaSeHiGhLiGhTeR bot. or let the highlighter respond to settings like @higlight :jasecase: some cOdE
-
Kyu9620215yCheck out the convention guidelines for the language. In C# its correct to write userId
Related Rants
-
tomtom277010We currently have multiple exercises for a lecture and they decided to use python this year instead of Matlab,...
-
viadukt2sometimesWhenIStopCodingITypeAccidentallyNonCodeTextInCamelcase.
-
matanl26Just realised I can guess your main programming language by whether your nickname is in lower/camel case 🤔
So if you guys had a variable with an "ID" in it, would you write it like this:
"var userId;"
or like this:
"var userID;"
?
Just curious.
question
camelcase