Objective-JavaScript

I’d like to write this kind of JavaScript code:

// Display a game selector UX then return with the selected item.
EPPZSelector.gameSelectorToSelectGameInView
(
    this.savedGames, this,
    function(selectedSavedGame)
    { this.loadGame(selectedSavedGame); }
);

The logic just flows, the controller code reads like a fairy tale. No underscores, no DOM selection, no any annoying punctation but actual human readable statements.

Objective JavaScript Class prototype object

Without an extensible object model with pure inheritance (not prototype chains) I simply cannot design codes like these. I think calling superclass implementations is crucial to create a hierarchical structure. When I started to create my upcoming web app, I ended up to a point where I could not step forward without it, so I created a base Class for every object in my buildup to inherit from.

All the missing stuff like super calls with correct this references all the way up the inheritance chain, array enumerators, automatic property bindings, inheritance, class methods, keypath support, explicit instance types for easier debug inspection. Wrapped up into a single eppz!js!class.min.js file. You can grab the latest release at GitHub.

Grab eppz!js at

Dinner time, gonna be back soon. ­čÖé

DISCLAIMER. THE INFORMATION ON THIS BLOG (INCLUDING BUT NOT LIMITED TO ARTICLES, IMAGES, CODE SNIPPETS, SOURCE CODES, EXAMPLE PROJECTS, ETC.) IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE INFORMATION ON THIS BLOG (INCLUDING BUT NOT LIMITED TO ARTICLES, IMAGES, CODE SNIPPETS, SOURCE CODES, EXAMPLE PROJECTS, ETC.).

Become a Patron!