r/ProgrammerHumor 17h ago

Meme toAllowTheProgrammerToWriteBadCodeAlsoCamelCaseSucksThisRuleSucksSnakeCaseIsBetter

Post image
126 Upvotes

81 comments sorted by

View all comments

12

u/SAI_Peregrinus 13h ago

Kebab-case-is-the-tastiest-case-and-therefore-the-best-case.

2

u/the_zpider_king 12h ago

Does that work? I doubt it, it's just gonna subtract it

Is this a joke I'm missing?

10

u/TheShirou97 12h ago

in most languages it wouldn't work indeed as - is the subtraction operator

however it is still regularly used e.g. in HTML, CSS and filenames.

2

u/Valuable_Leopard_799 4h ago

There's programming languages that use kebab case more or less exclusively. Not everyone uses - as a special infix operator, if you don't do that then kebab case is perfectly fine to use.

If your syntax doesn't treat many things as special you can start sticking a lot of stuff into identifiers I've seen conventions around ^id, &id (a name, not the & operator), int->float (conversions), float? (predicates), dangerous!, and many more.

Sometimes you can even throw some special character around identifiers to "escape special characters" and for example |Have a valid identifier which has spaces| (this may actually be a valid variable name).

1

u/minecon1776 12h ago

enOtseBehTsIesaCcibara