Convention for JavaScript Packages and Classes
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 | Elaboration | Wiki |
---|---|---|---|---|
shahed.biz | biz | SHa | Shahed, Inc. (biz) | SHa Pedia |
chorke.com | com | CKi | Chorke, Inc. (com) | CKi Pedia |
chorke.org | org | CKo | Chorke, Inc. (org) | CKo Pedia |
The Shahed, Inc. 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));
Example
var Chorke=Chorke||(function(Chorke,$me){
$me=new Chorke();
$me.$package='';
$me.$namespace='';
$me.$class='Chorke';
return $me;
}(function(){}));
;Chorke.Academia||(function($,Academia,$me){
$me=new Academia();
$me.$package=$.$class;
$me.$namespace=$.$class;
$me.$class='Academia';
$.Academia=$me;
return $me;
}(Chorke,function(){}));
|
var Chorke=Chorke||(function(Chorke,$me){
$me=new Chorke();
$me.$package='';
$me.$namespace='';
$me.$class='Chorke';
return $me;
}(function(){}));
;Chorke.Academia||(function($,$me){
$me.$package=$.$class;
$me.$namespace=$.$class;
$me.$class='Academia';
$.Academia=$me;
return $me;
}(Chorke,{}));
|
var Chorke=Chorke||(function(Chorke,$me){
$me=new Chorke();
$me.$package='';
$me.$namespace='';
$me.$class='Chorke';
return $me;
}(function(){}));
;Chorke.Academia||(function($,$me){
$me={
$package:$.$class,
$namespace:$.$class,
$class:'Academia'
};
$.Academia=$me;
return $me;
}(Chorke));
|