This article I found in Digital Web Magazine and gives extensive idea of how everyone should use JavaScript nowadays. Here is a summary of the best practices which are described there:
– Branch when possible
– Make Flags
– Make bridges
– Try Event Delegation
– Include methods with your getElementsByWhatever
– Encapsulate your code
– Reinvent the wheel
No related posts.