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

  • 0 posts edited
  • 0 helpful flags
  • 77 votes cast
Aug
27
revised C: “this” vs “<instance name>”
deleted 1 character in body
Aug
14
comment C: “this” vs “<instance name>”
@cmaster Good for you. Life is a journey of self-discovery.
Aug
14
comment C: “this” vs “<instance name>”
A suggestion for you for future reference - concise answers that assume that the OP knows what they are talking about and what they need, instead of attempting to question every premise, are time well-spent. Anything else is not. Refer to rwong's answer as an example of this.
Aug
14
accepted C: “this” vs “<instance name>”
Aug
14
revised C: “this” vs “<instance name>”
added 315 characters in body
Aug
14
comment C: “this” vs “<instance name>”
I'm sorry, but I fundamentally disagree with most of your assumptions, or find them trite in this context, and in some cases, such as your mention of an IDE, you are ignoring the specified parameters in my question. The whole idea of contextual variable names is old hat, the way we've all been doing things for many years. I am looking beyond that. The assumption that this (or similar) is the only way to do things is tiresome, and it does not address the idea of creating uniformity through the codebase.
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