Reputation
529
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 12
Newest
 Enlightened
Impact
~13k people reached

  • 0 posts edited
  • 0 helpful flags
  • 100 votes cast
Aug
14
comment C: “this” vs “<instance name>”
Another reason against using this in C code pretty much topples it for me. Thanks rwong. I will wait a while for other answers but this is looking likely.
Aug
14
revised C: “this” vs “<instance name>”
added 13 characters in body
Aug
14
comment C: “this” vs “<instance name>”
"Your are the same however people call you." No: There is one name on your birth certificate, for good reason: so that others can keep track of you, and not a thousand different aliases of you. This makes things simpler for everybody - and simplicity is what this question is about. Sometimes you have no choice but to change a name slightly for a given role ("Smith" is "Mr Smith" to his colleagues) but calling "hey you" ("this") can get you the unwanted attention of an entire room full of people. Always use the one true name if you can.
Aug
14
comment C: “this” vs “<instance name>”
"If you use indirect names like this, you actually do not need to search and replace all instances: this never needs to be replaced because it represents the current thing, whatever it is." No: If I want to find all instances of engine->window then I do not want to have to search for both engine->window AND this->window. Re coupling an instance to its type name, this is less of a problem than having to do multiple find-replaces. Many of these objects are singletons (as is typical in engines & frameworks) meaning that the only sensible instance name you can give is the name of the type!
Aug
14
revised C: “this” vs “<instance name>”
deleted 102 characters in body
Aug
14
revised C: “this” vs “<instance name>”
edited title
Aug
14
asked C: “this” vs “<instance name>”
Dec
13
revised Separation of construction and initialization
added 21 characters in body
Dec
13
answered Separation of construction and initialization
Oct
4
awarded  Enlightened
Oct
4
awarded  Nice Answer
Sep
24
awarded  Autobiographer
Jul
1
comment How to be a zero-bug programmer?
+1. In the words of Twisted Sister, What you don't know sure can hurt you / What you can't see makes you scream.
Dec
11
awarded  Popular Question
Sep
24
awarded  Yearling
Feb
26
awarded  Constituent
Feb
19
awarded  Caucus
May
3
awarded  Yearling
Feb
11
awarded  Critic
Jan
26
awarded  Nice Question