Convention for JavaScript Packages and Classes: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:


The [http://shahed.biz  '''shahed.biz''']  is the parent concern of '''Chorke, Inc.'''  Where [http://chorke.com '''chorke.com'''] & [http://chorke.org '''chorke.org''']' are the sister. Main goal of [http://chorke.org '''chorke.org'''] to focus on the community process.
The [http://shahed.biz  '''shahed.biz''']  is the parent concern of '''Chorke, Inc.'''  Where [http://chorke.com '''chorke.com'''] & [http://chorke.org '''chorke.org''']' are the sister. Main goal of [http://chorke.org '''chorke.org'''] to focus on the community process.
== Shahed, Inc (.biz) ==
<syntaxhighlight lang="js">
/**
* @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));
</syntaxhighlight>
== Chorke, Inc(.com) ==
<syntaxhighlight lang="js">
/**
* @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));
</syntaxhighlight>
== Chorke, Inc(.org) ==
<syntaxhighlight lang="js">
/**
* @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));
</syntaxhighlight>

Revision as of 11:15, 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));