4 ms·
> That we don't actually need all the structure to get shit done is what people are finally coming to realize. Getting stuff done until the code base grows and
by visionscaper 12y ago
> That we don't actually need all the structure to get shit done is what people are finally coming to realize.
Getting stuff done until the code base grows and others have to adapt or build up on the code you've written : the idea of bringing in structure is to encode knowledge about the problem you are solving and keeps it all maintainable (admitted, if done right).
> In C++ (and similar classical languages) in order to be able to pass in different implementations of a class you need to create a base class or interface.
And that is a good thing IMHO, see above. However I agree that, particularly in C++, an interface definition is very verbose. Unfortunately it has no pure Interface concept.
- pjmlp 12y agoYou can always use pure virtual classes, but requires discipline and virtual inheritance.