Code Conventions

  • Use a tab of four spaces in your code.
  • The names of the variables tell exactly what it does and are as short as possible.
var input = document.querySelector(input);
  • Function: Each function handles one thing.
function getData(){};
  • No jQuery or other frameworks and libraries.
  • Comment your code when an explanation is needed.
  • When two people worked in the same file, mark the code with BEGIN and END and your name in comments. Place your code between these two lines of comments.
//BEGIN yourName
//END yourName
  • Write all code and comments in English.
  • Only use single quotes in JavaScript.
  • No inline CSS styles.
  • No inline JavaScript
  • Always use camelCase.
  • One CSS file per module or feature. Later this will be merged into one file.
  • Work modulair.
  • Seperate classes with dashes (-).
.persona-check {}
  • Templating engine: EJS (keep most of the logic outside of the HTML).

results matching ""

    No results matching ""