News for hackers. Stuff that matters.
Re:Things I Regret About Node.js [video] by royjacobs on Wednesday June 06, 2018 @05:13PM (#17251171)
It's interesting that you mention gulp and webpack when those tools too are now considered too complex and set to be usurped by something like Brunch.

It's a shame these tools keep being rewritten because there are definitely good ideas in all of them, but for some reason they can't seem to be unified.

Re:Things I Regret About Node.js [video] by Arnavion on Wednesday June 06, 2018 @05:19PM (#17251211)
All these tools start off as simple alternatives to the existing bloated tools. Then as they gain more and more features to support real-world situations they end up becoming as bloated as the tools they set out to replace.
Re:Things I Regret About Node.js [video] by mediumdeviation on Wednesday June 06, 2018 @11:03PM (#17252929)
Webpack and Gulp were never meant to be simpler alternatives. Gulp used streams instead of serially processing files like Grunt, which made it faster, but obviously streams working in parallel are more complex than just processing the files one by one.

Webpack pulls dependencies into one file and deduplicates them. This is obviously even more complex since now you have dependency resolution logic as well as dealing with the various module systems JavaScript has invented.

Re:Things I Regret About Node.js [video] by royjacobs on Wednesday June 06, 2018 @05:37PM (#17251313)
Right. I'd just hope that at some point that cycle ends and people try to fix existing tools instead of replacing everything wholesale with something new that will eventually fail again.
Re:Things I Regret About Node.js [video] by Moru on Wednesday June 06, 2018 @06:10PM (#17251512)
Sorry, there is always a new developer thinking "I can do this much better if I just start from scratch, getting rid of all the bloat".
Re:Things I Regret About Node.js [video] by panopticon on Wednesday June 06, 2018 @06:55PM (#17251822)
> It's interesting that you mention gulp and webpack when those tools too are now considered too complex and set to be usurped by something like Brunch.

While Webpack is a little dense, it appears to strike the right balance between complexity and customizability (and probably more important for longevity, library buy-in). It doesn't seem like anything on the horizon is going to unseat it anytime soon... certainly not Brunch.

Re:Things I Regret About Node.js [video] by pknopf on Wednesday June 06, 2018 @09:59PM (#17252668)
> While Webpack is a little dense, it appears to strike the right balance between complexity

I don't know, I thought the same thing about Browserify.

And now Parcel is here, gaining steam...

Re:Things I Regret About Node.js [video] by pknopf on Wednesday June 06, 2018 @09:58PM (#17252659)
> usurped by something like Brunch

I've been out of Node for like 6 months, wth happened! I give up!!

Re:Things I Regret About Node.js [video] by chrisco255 on Thursday June 07, 2018 @12:17AM (#17253248)
Brunch is not usurping Webpack. But these are tools built on top of Node.js. They're for front end development, and have nothing to do with running a Node.js server on the backend.
Re:Things I Regret About Node.js [video] by spiralx on Friday June 08, 2018 @08:21AM (#17264586)
Brunch was between Gulp and Webpack, so don't worry! And since Webpack there's only been Rollup and Parcel to consider :)
Re:Things I Regret About Node.js [video] by yen223 on Wednesday June 06, 2018 @10:30PM (#17252793)
Somewhere along the line, we as developers have abandoned the Unix philosophy, especially the oft-forgotten second part ("Write programs that do one thing, and one thing well; and write programs that work well together").

Without the ability to compose multiple small libraries to form the exact solution that we need, we had little choice but to rely on the One True Framework to solve every problem that we will have.

This means if the One True Framework doesn't serve the exact need you have (and it almost definitely won't, there's a combinatorial number of requirements out there), it's time for a rewrite!

Re:Things I Regret About Node.js [video] by zzbzq on Thursday June 07, 2018 @12:07AM (#17253199)
NPM is the closest environment to the Unix philosophy apart from Linux. Lots of small packages instead of a large base class library like all the other language ecosystems.

The thing is, even with Linux distros, most of the stuff you want is built-in by the distro. Once you start to add your own stuff, it can get really ugly and you have to be really pro to get anything done. It seems like every time I'm working on updating a Linux image I have to do some really bizarre thing where the package manager doesn't even work right and the instructions or some forum have me doing some mind-blowing workarounds I don't even understand.

So I think you are combining two different topics. I am all-in for libraries over frameworks. But the larger, more heavily curated libraries where you only need minimal customization are just objectively better. Having a large, curated standard library != a framework.