203
submitted 2 weeks ago* (last edited 2 weeks ago) by toastal@lemmy.ml to c/programmerhumor@lemmy.ml

Acronyms/intialism use capital letters to encode information about words. Losing that information is a mistake. SᴍᴀʟʟCᴀᴘCᴀsᴇ is now considered a best practice.

…Or consider snake_case or kebab-case 🤷

you are viewing a single comment's thread
view the rest of the comments
[-] Kraiden@kbin.run 5 points 2 weeks ago

Yes and no. I agree that camel vs snake or that stupid mNameThing that was popular for a while, doesn't reeeeeaaally matter, although I would argue that convention over the language still has value. As an example, naming a Java variable with a capital letter would be confusing and annoying to any new devs joining the project, even if it's a valid identifier. Also it's handy to be able to look at something in ALL_CAPS and know that it's probably a static final, without having to check it's definition. I guess it's about finding that line between useful conventions and pedantry.

this post was submitted on 11 Jun 2024
203 points (94.3% liked)

Programmer Humor

31214 readers
2004 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS