Convention for JavaScript Packages and Classes: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 24: Line 24:
  */
  */
var Shahed=Shahed||(function(win){
var Shahed=Shahed||(function(win){
    var $,
    var $,
        $self  ={},
        $self  ={},
        $static=$self;
        $static=$self;
     Shahed=function(){};
     Shahed=function(){};


Line 53: Line 53:
  */
  */
var Chorke=Chorke||(function(win){
var Chorke=Chorke||(function(win){
    var $,
    var $,
        $self  ={},
        $self  ={},
        $static=$self;
        $static=$self;
     Chorke=function(){};
     Chorke=function(){};


Line 82: Line 82:
  */
  */
var Chorke=Chorke||(function(win){
var Chorke=Chorke||(function(win){
    var $,
    var $,
        $self  ={},
        $self  ={},
        $static=$self;
        $static=$self;
     Chorke=function(){};
     Chorke=function(){};



Revision as of 11:37, 16 December 2017

Overview

Like any other Open Source Community Project, Chorke, Inc. is aware about the coding convention. We have to follow Best Practice and the Community Standard. Beside that we should respect Chorke, Inc.'s own standard. Which one never conflict with others rather it will express our integrity and the beauty of contribution. By which our contributor could share and understand their contribution with each others. It will help us to increase the transparency of our business. Chorke, Inc.' and it's affiliate maintains by following domain:

FQDN Root Short Form Elaboration
shahed.biz biz SHa Shahed, Biz. (biz)
chorke.com com CKi Chorke, Inc. (com)
chorke.org org CKo Chorke, Inc. (org)

The shahed.biz is the parent concern of Chorke, Inc. Where chorke.com & chorke.org' are the sister. Main goal of chorke.org to focus on the community process.

Shahed, Inc (.biz)

/**
 * @class     Shahed
 * @package   Default
 * @public
 * @static
 */
var Shahed=Shahed||(function(win){
    var $,
        $self  ={},
        $static=$self;
    Shahed=function(){};

    $=new Shahed();
    //$=$.define($,$static);
    win&&(win.Shahed=win.Shahed||$);
    return $;
}(window)),
SHa=SHa||(function(win, $){
    win&&(win.SHa=win.SHa||$);
    return $;
}(window, Shahed)),
SH=SH||(function(win, $){
    win&&(win.SH=win.SH||$);
    return $;
}(window, SHa));

Chorke, Inc(.com)

/**
 * @class     Chorke
 * @package   Default
 * @public
 * @static
 */
var Chorke=Chorke||(function(win){
    var $,
        $self  ={},
        $static=$self;
    Chorke=function(){};

    $=new Chorke();
    //$=$.define($,$static);
    win&&(win.Chorke=win.Chorke||$);
    return $;
}(window)),
CKi=CKi||(function(win, $){
    win&&(win.CKi=win.CKi||$);
    return $;
}(window, Chorke)),
CK=CK||(function(win, $){
    win&&(win.CK=win.CK||$);
    return $;
}(window, CKi));

Chorke, Inc(.org)

/**
 * @class     Chorke
 * @package   Default
 * @public
 * @static
 */
var Chorke=Chorke||(function(win){
    var $,
        $self  ={},
        $static=$self;
    Chorke=function(){};

    $=new Chorke();
    //$=$.define($,$static);
    win&&(win.Chorke=win.Chorke||$);
    return $;
}(window)),
CKo=CKo||(function(win, $){
    win&&(win.CKo=win.CKo||$);
    return $;
}(window, Chorke)),
CK=CK||(function(win, $){
    win&&(win.CK=win.CK||$);
    return $;
}(window, CKo));