On Sunday, October 11, 2015 at 6:37:16 AM UTC+2, Brian Takita wrote:
>
> Deprecating `require.extensions` is unfriendly to developers who want to 
> require a template file.
>
> No, I don't want to have to add more layers of complexity to my build 
> process, thank you. I just want to use *custom* logic for my app/platform. 
> I don't have other users, it's my sandbox, thank you. Please don't tell me 
> what's good for me, I know what's good for me, thank you!
>
>>
>>

 Now, that sounds exclusivist, too. I could say something like "you don't 
want to introduce complexity to your build process? Well me too, I prefer 
to keep your .coffee (or whatever) bugs out of mine."

But that is not constructive, so I'll proceed with an example.

I write ES6 code, the whole team does here. I even write my tests in ES6. 
And we don't see the .js files, either. We have transpilers as part of our 
build and test process, and I don't see any obstacle with that.

You do something like style checkers, linters, documentation compilers when 
you develop, right? Maybe a small browser syncing server, if you're full 
stack? Putting a transpiler step in one of those steps is a trivial thing 
to do. You do it already, anyway, so another step or two, another few 
milliseconds should not matter.

Yeah, yeah, I know people are saying they only use it for development, 
right? Just like people only don't write tests for development, right? Only 
tested modules get published to npm. I know there would be gains for people 
writing in other languages then JavaScript by having a full support of 
require.extensions. But there are also clear advantages of not doing it. 
The main thing - Node.js core will remain much more stable and with less 
bugs in the system overall.

You know of JRuby, Jython and other languages that run on JVM? I would take 
a hint there. I think that if this is really a useful feature, sooner or 
later a native module or addon or similar will appear that will resolve 
this. So, the core remains clean, the addon is clear in what it does, and 
everything works as intended. That's how I would like this to play out.

Though, I'm not the core maintainer, not even a contributor, so my 
complains and wishes wouldn't count anywhere as it is, would they?

Zlatko



-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/bdbf1a1a-dfbf-4d2b-9099-724cecc1f362%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to