IMPORTANT: Per accedir als fitxer de subversion: (sense password). Poc a poc s'aniran migrant els enllaços. Encara però funciona el subversion de la farga però no se sap fins quan... (usuari: prova i la paraula de pas 123456)

Concepte de modularitat

Què és el codi mantenible:

  • it is easy to understand and troubleshoot
  • it is easy to test
  • it is easy to refactor

I el codi difícil de mantenir?

  • it has many dependencies, making it hard to understand and hard to test independently of the whole
  • it accesses data from and writes data to the global scope, which makes it hard to consistently set up the same state for testing
  • it has side-effects, which means that it cannot be instantiated easily/repeatably in a test
  • it exposes a large external surface and doesn't hide its implementation details, which makes it hard to refactor without breaking many other components that depend on that public interface


Llenguatges de programació


Javascript Module Systems

Vegeu Javascript Module Systems i CommonJS i Asynchronous Module Definition (AMD) i Javascript modules

Patrons de disseny per crear mòduls

Vegeu Javascript#Javascript_patterns i Javascript Module Pattern




Vegeu Javascript modules

Vegeu també

Enllaços externs