Interactive Development Standards

I’ve recently been contributing to a set of front-end standards for Sapient, you can see the results at It’s a working document that will hopefully evolve over time.

My focus was on the organisation of JavaScript. It was a more complicated task than I’d anticipated as I couldn’t assume that our developers were all familiar with the concept of private and public variables, classes or closures.


  1. Namespace your code with a closure
  2. Pass libraries into your closure to ensure your references
  3. Use the right pattern for your code, if it’s not an object don’t write it as one
  4. Write comments!
Filed under: Editorial