Reputation
227
Next privilege 250 Rep.
View close votes
Badges
1 6
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
May
13
comment Does C++ compiler remove/optimize useless parentheses?
Don't write int a = 6; // = (1 + 2) + 3. Write int a = (1 + 2) + 3; instead.
Jan
14
comment What naming anti-patterns exist?
@sparkleshy: Why not just write contextControlManager? Still, even that would be a bad name: what context? What does it control? What does it manage? Seriously, with our modern IDEs, the necessity for Hungarian Notation is gone ...
Jun
6
comment What naming anti-patterns exist?
@Mike: I fully disagree with your statement, sorry. In my opinion, XxxxManager is the worst possible name a class can have. Of course it does manage something! That's the reason it was written for. Manager is a meaningless filler word that adds no value to understanding – by its name – what a class is responsible for.
Jun
6
comment What naming anti-patterns exist?
@Billy: I probably should have mentioned that I am talking about .NET and, especially, C#. Thanks for clarifying that!
Jun
6
comment What naming anti-patterns exist?
I clearly indicates an interface. You should avoid, if possible, to start class names with I and another capital letter to avoid ambiguities. (IOStream, for example, is an exception case.)
Jun
6
comment What naming anti-patterns exist?
@Peter: To be more precise — nowadays, Hungarian Notation is evil regarding the tools that are available by now (IntelliSense and friends).
Jun
6
comment What naming anti-patterns exist?
@Wayne: Descriptive names are great! Verbose and descriptive names make their purpose clear, but are hard to read and cumbersome to use. Verbose and nonspecific names are horrible.
Jun
6
comment What naming anti-patterns exist?
@Wayne: +1, true story.