4 ms·
Nowadays most of the code I have to deal with and that I write myself is very "c-like" C++. For personal projects I usually use C# instead.
by c0de517e 12y ago
Nowadays most of the code I have to deal with and that I write myself is very "c-like" C++. For personal projects I usually use C# instead.
- chris_wot 12y agoI'm assuming you mean it uses less class heirachies and more composition. Is this correct?
- c0de517e 12y agoReally I don't often use classes, unless they are providing a benefit. Just using them to group some state with some functions is not great because they have lots of drawbacks for that, I find an opaque pointer and C functions to be better at hiding implementation details and so on. I use classes basically when I need destructors and constructors, so for things that need to go in collections really. http://c0de517e.blogspot.ca/2012/09/follow-up-why-classes.html http://c0de517e.blogspot.ca/2012/09/follow-up-why-classes.ht...
- chris_wot 12y agoWhy not use a pimpl?