Reputation
10,171
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
3 33 45
Newest
 Good Answer
Impact
~517k people reached

Jun
12
comment In C++ Good reasons for NOT using symmetrical memory management (i.e. new and delete)
Oh, no offence at all. :) The shared object is allocated immediately before constructing the shared_ptr, literally in the same statement ptr = shared_ptr<MyClass>(new MyClass), and then it is deleted by the shared_ptr's destructor when necessary. I suppose you can argue that this is not symmetric memory management, but I think it is pretty close to it.
Jun
12
comment In C++ Good reasons for NOT using symmetrical memory management (i.e. new and delete)
Wait, I was saying that passing a raw pointer into a function, that would have to delete it explicitly is outdated. Passing smart pointers around is certainly not outdated. I don't know what Qt is doing these days.
Jun
11
comment In C++ Good reasons for NOT using symmetrical memory management (i.e. new and delete)
@metamaker, you certainly can. Except it will only be used by your own code, but not by third-party libraries, which greatly limits its effectiveness. You are much better off using RAII, which generalizes to other types of resources.
Jun
11
revised In C++ Good reasons for NOT using symmetrical memory management (i.e. new and delete)
added 55 characters in body
Jun
11
comment In C++ Good reasons for NOT using symmetrical memory management (i.e. new and delete)
@metamaker, uhm... C++ doesn't have garbage collection...
Jun
11
revised In C++ Good reasons for NOT using symmetrical memory management (i.e. new and delete)
added 173 characters in body
Jun
11
answered In C++ Good reasons for NOT using symmetrical memory management (i.e. new and delete)
Jun
11
revised looking for a short explanation of fuzzy logic
added 4 characters in body
Jan
21
revised How should I validate code when there is no one to do code review?
added 3 characters in body
Jan
20
answered How should I validate code when there is no one to do code review?
Jan
14
comment Intentional misspellings to avoid reserved words
@Kieveli: funny.
Jan
14
revised C++ - Constructor or Initialize Method to Startup
deleted 2 characters in body
Dec
30
comment Best practices for using namespaces in C++
@SamGoldberg: it gets better. I found a good answer to this question here: en.wikipedia.org/wiki/Package_Principles. I posted this answer, and a moderator deleted it, because I simply posted the link and didn't have the time to copy/paste the content.
Nov
18
answered How does a chess engine decide what move to make?
Nov
17
revised Why is Clean Code suggesting avoiding protected variables?
edited tags
Nov
14
revised Are “Clean Code” practices really that clean and useful?
edited tags
Nov
14
revised Should Uncle Bob's example be refactored to an AbstractFactory or a SimpleFactory?
edited tags
Nov
14
revised Should I buy Clean Code after reading The Clean Coder?
edited tags
Nov
14
revised “Agile Principles, Patterns, and Practices in C#”: Is this just a .NET-translation of the popular Uncle Bob book?
edited tags
Nov
14
suggested rejected edit on uncle-bob tag wiki