quick question (with slightly laborious build up)....
Both Douglas Crockford and Stoyan Stefanov in their JavaScript books strongly encourage staying clear of Classical (class based) paradigms when implementing JavaScript projects, and exploiting its prototypical design.
I find this appealing as it seems for what you loose in type safety and optimization, you ought to be able to gain by flexibility and maintainability (which as I understand it was the goal in creating Self, the first prototypical language)
I need to create an object pooling system, to control the garbage collector as I'm trying to create as near as possible 'real-time' simulations for web based learning material.
The only implementation that is open (as in well documented and commented) that I can find is part of gamecore.js library, and this tutorial.
This implementation works with class.js - a library that enables classical emulating pattern, and to use it in my project would require me to use the classical emulating inheritance.
So, after all that, my question is simply - Does anyone know of a publicly available object-pooling script that does not have class emulation as part of its implementation?
(it's just to save time, there's only 2 weeks to build this thing....)
Thank you in advance
James
Goldsmiths University