Reputation
8,944
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
2 23 55
Newest
 Yearling
Impact
~409k people reached

Jul
14
comment Is it a good idea to “#define me (*this)”?
@Mehrdad: Because the OP explicitly says he is using me. instead of this->. Since there is no need for this-> there is no need for me. and thus no need for the macro.
Jun
17
awarded  Announcer
Jun
10
comment Is there a Design Pattern for preventing dangling references?
@iFreilicht: If you want to be able to destroy the object and detect destruction just before usage then use std::weak_ptr. This is just the other side of std::shared_ptr.
Jun
10
comment Use a template to get alternate behaviour?
Why not just two functions: sId() and sIdTrue()
Apr
7
comment Ensure that each class has only one responsibility, why?
Can't all the reasons for single responsibility be correct? It does make maintenance easier. It does make testing easier. It does make the class more robust (in general).
Mar
15
comment A module which is used by most other modules
Singeltons should not be used in isolation. You need to combine the singelton with a creation pattern (pick any Factory is common) so that you are not tied to the same code for production/testing or other situations.
Mar
6
awarded  Nice Answer
Jan
19
reviewed Reject Is the C programming language still used?
Jan
11
awarded  Yearling
Jan
8
comment How should I mark types in C and C++ programs?
Also my favorite technique. Types have an initial uppercase letter. All other identifers are not types and thus easily seen.
Jan
8
comment How should I mark types in C and C++ programs?
See this question for reserved identifiers (including _t) stackoverflow.com/a/228797/14065
Jan
2
awarded  Good Answer
Dec
16
reviewed Close How to compare features of two curves?
Dec
16
reviewed Close What was the need of introducing Python 3 when we already had Python 2
Dec
16
reviewed Leave Open Does switching from one programming language to another cause a loss in experience?
Dec
16
reviewed Leave Open How to get requirements from Non-technical client?
Dec
16
reviewed Leave Open How to manage styles on a group of websites
Nov
15
awarded  Nice Answer
Oct
18
awarded  Nice Answer
Oct
18
revised What is a 'good number' of exceptions to implement for my library?
added 4 characters in body