DEV Community

Discussion on: What are the things that scare you as a Developer? 🎃

Collapse
 
baenencalin profile image
Calin Baenen

PascalCase. For Everything!
C# is the best example!:

  • Classes? PascalCase.
  • Class members (methods and properties)? PascalCase.
  • Nested Classes? PascalCase.
  • Constants? Sometimes UPPERCASE, but usually they follow the same usual convention of PascalCase.
  • Enum members? PascalCase.
  • Function parameters and local variables? Lower case, thankfully.

It drives me mad! There's no way to tell if RandomIdentifier is a class, property, method, or constant (property) without seeing it being used, or going into the source code, and finding RandomIdentifier.

Collapse
 
rammina profile image
Rammina

Oh yeah, people that don't use the correct case for certain datatypes is annoying.

Like Constant variables should just be an easy uppercase, but people still are so lazy to do it.

Collapse
 
baenencalin profile image
Calin Baenen

It's not about laze, it's about people using outdated, or plain out wrong casing conventions.

Constant variables should just be an easy uppercase

And you'd think this is applicable to all languages with C-grammar. Nope. Apparently in C++ "uPpErCAsE is FoR mAcROs eVen ThOuGh ThEy'rE oUTdAtEd IN mOdErN cOde." - circa a person on r/CPP_Questions.

Thread Thread
 
baenencalin profile image
Calin Baenen

This sounds really mean, since they're just giving me advice.
But I still detest certain stylistic features. - And if people can't code in a style that's suitable for them, even if it looks alright, and isn't hurting anyone, then I get real steamed.