Yea, i figured that’s what you were actually responding to. …given only one option, I’d pick the same as you: standardized imports/modules.
and if:
is unnecessarily increasing complexity to too high a point, I’d also say drop it.
But, if somehow we can reconcile the “cognitive dissonance” between being the “one best” way vs. added complexity from modules, via a strategy, we should. If you get a chance, let @benjamn know my proposed strategy that we statically detect which files use modules, and if they don’t auto-import them. Not sure if he read my comment on his thread. He seems to be busy with higher priority fundamentals. You can probably better find an appropriate time to bring it up to him. …The other main idea there is: if you remove the autoimport
package, Meteor generates your main.js
file to contain all the initial boilerplate setup so automatic importing of core packages is reconciled with manual importing–that’s as opposed to unnecessarily mixing both paradigms so that application code is manually imported while core packages are automatically imported. If we can get Meteor code to look like a standard NPM app, e.g. the first thing you see in the entry file is express
configuration, it will go a long way to changing the perception of Meteor.
Here was my article with all my proposals on the Meteor 1.3 module system: