Problem I find the default Javascript extremely poor on useful functions. There are some nice libraries, but somehow I always […]
Tag: prototypal-class-design
Coding convention when using differential inheritance
Problem Ever since reading Crockford’s “Good Parts” and Johansen’s TDD book, I have wanted to use more of the differential […]
Lua OOP and classically-styled prototypal inheritance
Problem I want to do some object-oriented programming in Lua, and I decided on something like this: local B = […]
Extending prototype of given instance from factory method
Problem I created a rubber ball by extending instance of b2Body prototype of Box2D.js. I get the instance from factory […]
Class-Definition Comparison
Problem Whenever I needed something similar like a “Class” in JavaScript, I wrote it like this: function Point(x, y){ var […]
JavaScript constructor and namespace in object literal style
Problem Is this a good way to create a class with a constructor and namespace in object literal style? // […]
Using prototype to simulate extending a ‘base class’ object in JavaScript
Problem I’m investigating using prototypes in JavaScript to simulate using ‘base classes’ which can be ‘extended’. I’ve created an example […]
“Class” design in javascript
Problem I’m a systems programmer teaching myself javascript. Prototypal inheritance is completely new to me, so I could use some […]
Lunr backed client side search module
Problem I created a client side search module. Could anyone please provide review pointers on it? var search = function(){ […]
Is my JavaScript OOP style correct?
Problem I have done the following code for testing a web-service. Is my style correct for using OOP in JavaScript? […]
- 1
- 2