GithubHelp home page GithubHelp logo

quodjs's Introduction

QuodJS - Object Oriented JavaScript

A small library to add basic OO features to JavaScript.

Version

v0.0.2

Model

This library tries to emulate OO functionalities in the same way PHP does. The same code should behave the same way both in PHP and in QuodJS.

This module is slightly different from other languages like Java. For example, in QuodJS when extending a class you can also override properties instead of just shadowing them like in Java.

Documentation

An annotated version of the code is available in src/annotated, and the generated documentation (made with [Docco] (http://jashkenas.github.io/docco/)) can be found in docs/quod.html.

Install

To use QuodJS just include src/quod.min.js in your HTML file.

Node.js

QuodJS is tested and working with Node.js v0.11.13.

Testing

tests contains an usage example and a few unit tests to run against the code. The same test can be run in Node.js by installing [QUnit module for Node] (https://github.com/kof/node-qunit) and running command qunit -c src/quod.js -t tests/quod.tests.js in the root folder.

Changelog

v0.0.1

Initial public release.

Disclaimer

This project is just "for fun", some kind of syntactic sugar added to the language I use (and actually like) the most. I'm sure there are plenty of ways to achieve the same results with better performances, or a cleaner code, I just haven't found them yet. If you care to contribute, be my guest ^_^

License

Released under the MIT License. See the bundled LICENSE file for details.

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.