Skip to content
Noboru Okazaki edited this page Aug 27, 2017 · 10 revisions

Welcome to the de.js

What's a fact of javascript.

Surely you think

  • long long property name...
  • What a spagetti code it is!
    object.property.method(object.property.property).property(object.property)(object.property.property.pro...)
  • OOP ? But ! this isn't this !!!
  • promise ? generator ? It's Juicy ?
  • Where is myself ? Who is me ?
  • Understand ! -- "this" is a bad! -- "new" is a bad! -- "OOP" is a bad...

de.js is very friendly of OOP

Sample code

let MyButton = function () {
    this
    ._({
        Alice: "Who are you ?",
        CheshireCat: "I not interested about you."
    })
    ._(button.$("Push Me"))
    .on("click");
}._({
    click (e) {
        this.each((v, k) => e.$.outer.$(p.$(k + ": " + v)));
        this.off("click");
    }
});
$.body.$(article.$(new MyButton()));

Let's happy hacking!

Foundation

Browser

Clone this wiki locally