News for hackers. Stuff that matters.
Re:Google SoundScript: faster OOP for JavaScript by visionscaper on Wednesday February 04, 2015 @04:02PM (#8999755)
> 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.

Re:Google SoundScript: faster OOP for JavaScript by pjmlp on Wednesday February 04, 2015 @06:25PM (#9000769)
You can always use pure virtual classes, but requires discipline and virtual inheritance.