Giter Club home page Giter Club logo

mvx-poc's Introduction

mvx-poc

A quick proof-of-concept I put together for work of Javascript object inheritance and the XTags library. Also doubles as an experiment in using defined properties to implement Backbone-like getters and setters without actually requiring the use of a get or set function in favour of defining model attributes only and hiding utility functions as non-enumerable properties.

I'm not sure if I'll push this any further, but the (heavily commented) code might be of use to someone out there.

Models

I'm not particularly sure that this system is more practical than Backbone. Disregarding the fact that this relies heavily on some bleeding-edge Javascript technologies and isn't practical except in environments that allow for some seriously stringent user requirements. Beyond that, the hiding of properties doesn't play with inheritance consistently, which is annoying to say the least.

That said, the actual inheritance mechanism works well and the core emitter component is straightforward and usable.

X-Tags

The other major purpose of this PoC was to test X-Tags (and by extension the concept of web components as a whole) and that much I like. Of note is the vanilla-category-selector.js file, which is a quick test of document.registerElement. The fact that it still doesn't work in IE makes it essentially useless for the time being, but xTags is a fantastic fill-in library until either Polymer becomes production-ready or web components become a widely usable standard.

mvx-poc's People

Contributors

moberemk avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.