Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Coding Standards - Wollets :)

Coding Standards - Wollets :)

Coding Standards on Front-end for BVTeam.

Djalma Araújo

March 31, 2016
Tweet

More Decks by Djalma Araújo

Other Decks in Programming

Transcript

  1. Javascript Names • .js- your classes if some JS code

    uses that element.
 Bad Example: .js-save
 Good Example: .js-orderlog-edit-save-button (Specific!) • Module names should use CapitalizeCase.
 Bad Example: var selectChange = function () {};
 Good Example: var OrderLogEditPageSelectChange = function () {};
 Good Example: var OrderLogEditPage = function () {}; // add the selectChange method in • Method Names / Variables should always use camelCase
 Bad Example: var personalname = “”; / var personal_name = “”;
 Good Example: var personalName = “”; / var windowSize = “”;
  2. Js Patterns - Folder Structure • BookVolumePlus/src/BvPlus/Bundle/ AdminBundle/Resources/public/js dist/ files

    are ignored now custom code for specific pages custom generic code used across the app