Skip to content

Coding practices guide

Jérémie Astori edited this page Feb 6, 2015 · 13 revisions

/!\ WORK IN PROGRESS -- DO NOT EDIT /!\

Table contents

eval is Evil

  • Do not use eval.
  • eval has aliases:
    • Do not use the Function constructor.
    • Do not pass strings to setTimeout or setInterval.

Tests

  • Always provide tests.
  • Try to make your tests self-contained. Not doing so can result in unexpected behavior when running tests locally compared to when they are run on the CI instance.

/!\ WORK IN PROGRESS -- DO NOT EDIT /!\