52,031 reputation
10145229
bio website tech.turbu-rpg.com
location Seattle, WA
age 32
visits member for 4 years, 7 months
seen 15 mins ago
A lifelong programmer who's been coding in Delphi since its initial release and currently makes a living at it.

Mar
7
answered Can you “stop” a C program from being reverse engineered?
Mar
4
awarded  Enlightened
Feb
28
awarded  Nice Answer
Feb
27
awarded  Guru
Feb
27
comment Constructor-only subclasses: Is this an anti-pattern?
@Doval: Thinking too closely about the ramifications of infinite sets can (literally) drive you crazy. Just ask Georg Cantor!
Feb
27
comment Why structs and classes are separate concepts in C#?
@LightnessRacesinOrbit: Actually that's exactly what I'm doing. I explain that in C#, structs have no inheritance and classes are reference types, and then demonstrate how in C++, which the OP was asking about, not following this pattern causes messes by violating Liskov Substitution and leading to issues like object slicing.
Feb
27
comment Why structs and classes are separate concepts in C#?
@AndyProwl: Perhaps it's a subjective conclusion to draw, but it's one well-supported by objective facts, which I have stated clearly. If you have facts which present support a different position, feel free to present them.
Feb
27
comment Why structs and classes are separate concepts in C#?
@BartekBanachewicz: Pray tell, which of the facts that I stated are subjective? That passing objects as values breaks polymorphism? That objects as value types requires hassles like copy constructors and causes messes like object slicing? That all the hidden gotchas that it introduces is the reason why C# and other OO languages chose not to follow C++'s object model?
Feb
27
comment Why structs and classes are separate concepts in C#?
@Mgetz: That's not object slicing; that's just non-polymorphic functions at work. Slicing is something highly unfortunate that happens when assigning a value-typed object to a derived class, that can lead to bizarre data corruption issues.
Feb
27
reviewed Reject Why structs and classes are separate concepts in C#?
Feb
27
awarded  Good Answer
Feb
26
awarded  Enlightened
Feb
26
awarded  Nice Answer
Feb
26
answered Anything wrong with direct evaluation of JSON if your own code created it?
Feb
26
answered Why structs and classes are separate concepts in C#?
Feb
26
comment OCaml criticism: is it still valid?
@Doval: Of course you can detect overflow in hardware. Dealing with it, however, is a software matter.
Feb
26
awarded  Great Answer
Feb
25
comment When NOT to apply Dependency Inversion?
What if "your problem" is a hole in the wall? A saw would not remove it; it would make it worse. ;)
Feb
25
comment Dealing with state problems in functional programming
There's a simpler solution: when you come to a problem that's not easily modeled with FP techniques, don't use functional programming to solve it. Right tool for the job and all that...
Feb
25
answered Is there a name for a dictionary that returns the key as the value by default?