Reputation
1,141
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 9 20
Newest
 Yearling
Impact
~65k people reached

Dec
28
comment If I need to use a piece of memory throughout the lifespan of my program, is it really necessary to free it right before program termination?
Good answer, it might be worthwhile to add that having code to free all memory makes it much easier to refactor the code later if additional things need to happen before/during freeing -- e.g. running destructors or a new cleanup function. It is clear where to add those if the free instruction is already in place, and can be hard otherwise (even if the actual lifetime of the memory does not need to be controlled).
Dec
15
awarded  Yearling
Jul
20
awarded  Popular Question
May
20
revised What's RAII? Examples?
deleted 32 characters in body
Mar
20
awarded  Curious
Dec
15
awarded  Yearling
Nov
6
awarded  Notable Question
Aug
24
awarded  Good Question
Aug
22
comment Is there a difference between fibers, coroutines and green threads and if that is so what is it?
+1 I hadn't even heard about Green Threads.
Jul
10
awarded  Popular Question
Jun
12
awarded  Excavator
Jun
12
revised Ways to organize interface and implementation in C++
typo, grammar
Jun
12
comment Ways to organize interface and implementation in C++
This answer would be even better if you elaborated a little on static compilation/linking (I didn't know it back then!)
Jun
12
suggested approved edit on Ways to organize interface and implementation in C++
Jun
12
revised Ways to organize interface and implementation in C++
deleted 4 characters in body
Jun
6
awarded  Good Answer
Dec
15
awarded  Yearling
Oct
4
awarded  Famous Question
Jul
2
comment Why do most programming languages only support returning a single value from a function?
For example, in C++ COM programming, many functions have one [out] parameter, but virtually all return an HRESULT (error code). It would be quite practical to just get a pair there. In languages which have good support for tuples, such as Python, this gets used in a lot of code I have seen.
May
13
revised Why is C++ often the first language taught in college?
deleted 175 characters in body