Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The code organization requires adoption of conventions and documentation standards:<br/> 1. Namespace code for a physical file;<br/></p> <pre><code>Exc = {}; </code></pre> <p><br/>2. Group classes in these namespaces javascript;<br/> 3. Set Prototypes or related functions or classes for representing real-world objects;<br/></p> <pre><code>Exc = {}; Exc.ui = {}; Exc.ui.maskedInput = function (mask) { this.mask = mask; ... }; Exc.ui.domTips = function (dom, tips) { this.dom = gift; this.tips = tips; ... }; </code></pre> <p><br/> 4. Set conventions to improve the code. For example, group all of its internal functions or methods in its class attribute of an object type.</p> <pre><code>Exc.ui.domTips = function (dom, tips) { this.dom = gift; this.tips = tips; this.internal = { widthEstimates: function (tips) { ... } formatTips: function () { ... } }; ... }; </code></pre> <p><br/>5. Make documentation of namespaces, classes, methods and variables. Where necessary also discuss some of the code (some FIs and Fors, they usually implement important logic of the code).</p> <pre><code>/** * Namespace &lt;i&gt; Example &lt;/i&gt; created to group other namespaces of the "Example". */ Exc = {}; /** * Namespace &lt;i&gt; ui &lt;/i&gt; created with the aim of grouping namespaces user interface. */ Exc.ui = {}; /** * Class &lt;i&gt; maskdInput &lt;/i&gt; used to add an input HTML formatting capabilities and validation of data and information. * @ Param {String} mask - mask validation of input data. */ Exc.ui.maskedInput = function (mask) { this.mask = mask; ... }; /** * Class &lt;i&gt; domTips &lt;/i&gt; used to add an HTML element the ability to present tips and information about its function or rule input etc.. * @ Param {String} id - id of the HTML element. * @ Param {String} tips - tips on the element that will appear when the mouse is over the element whose identifier is id &lt;i&gt; &lt;/i&gt;. */ Exc.ui.domTips = function (id, tips) { this.domID = id; this.tips = tips; ... }; </code></pre> <p><br/> These are just some tips, but that has greatly helped in organizing the code. Remember you must have discipline to succeed!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload