Elements of JavaScript Style – JavaScript Scene – Medium
Great article focusing on Javascript style. Provides some good examples of JavaScript coding styles, practices, and things to avoid.
The examples includes:
- Make the function the unit of composition. One job for each function.
- Omit needless code.
- Use active voice.
- Avoid a succession of loose statements.
- Keep related code together.
- Put statements and expressions in positive form.
- Use parallel code for parallel concepts.
Source: Elements of JavaScript Style – JavaScript Scene – Medium