Archive for the ‘object-oriented’ Category

How to use anonymous objects

I don’t know how to call it and I don’t even know if it has a name. I thought a moment about calling it Mistigri but I already have a cat with that name. I decided to call it anonymous object. How? [source:javascript] var ao = { name : “Anonymous Object”, possibleName : “Mistigri”, presentYourself [...]

5 reasons to write object-oriented (oo) javascript

To write hard as a rock javascript, the first thing you need to do is to object-orient your code. I do not mean to have a class structure that could stand the passage of a sandstorm in the Sahara but a light and useful structure that will let you work elegantly. This article does not [...]