Code
Code
Code

DRY (don't repeat yourself)

DRY (don't repeat yourself) is a concept quite recurring in JavaScript articles, the idea is to promote reuse best. This article is fairly representative (Patterns for DRY-er JavaScript/ Rebecca Murphey).

 If you use jQuery a good way to avoid repeating yourself are developing plugins or using / modifying third party plugins. When you transform a repetitive task into a plugin, you have to generalize a little more and the code will be more reusable.

 

comments powered by Disqus
Comunicatek - - La Bisbal d’Empordà - dani@comunicatek.com - About code - Legal