by cnp · 12y ago · 0 comments
// App Controller
var AppModel = require('./models/AppModel');
var NavView = require('./views/NavView');
var HomeView = require('./views/HomeView');
// Do stuff
You can immediately know whats going on inside of your class or module simply by looking at the imports, the LOC is greatly reduced, and refactoring, via imports, makes your code about a thousand times more maintainable.