News for hackers. Stuff that matters.
Re:Grunt 1.0.0 released by DiabloD3 on Tuesday April 05, 2016 @07:31AM (#11429543)
Grunt was nasty as hell, and clearly didn't learn any of the lessons from, say, proper Makefiles from the UNIX world over the past 30 years.

Gulp is a looooot better, especially when I have things like Foundation 6's zurb-template, which is basically configured out of the box how I setup my Foundation 5 era projects.

I don't care how big a Gulp file is if I'm not the one having to do major maintenance on it.

Re:Grunt 1.0.0 released by laichzeit0 on Tuesday April 05, 2016 @09:53AM (#11430339)
This is what I don't get.

Do authors of these build tools actually sit down for a couple of months looking at things like Makefiles that have been around forever, perhaps even Maven, etc. Take all these things together and go "This is what sucks in all of them, and here's how we can do it better" and still cater for all the use cases that these tools are brilliant at.

It's like there's no thought put into these tools and nothing is built on computer science foundations. Like why are you using Json as the syntax? Ant build files were an abomination and Json really isn't offering anything better (actually way less), except a slightly more readable syntax for trivial use cases.

Re:Grunt 1.0.0 released by oblio on Tuesday April 05, 2016 @10:05AM (#11430441)
I think not even Node or NPM learned any lessons from older tools. Look at the recent leftpad fiasco. A decent part of it could have been avoided with namespacing (hello Maven groupIds!). npm didn't have it from day 1 and even now it's optional and basically unused.
Re:Grunt 1.0.0 released by k__ on Tuesday April 05, 2016 @11:16AM (#11431001)
Haha, yes.

When I saw that LiveScript was using Makefiles[0] to build, I was baffled. To me they were ancient and complicated C/C++ stuff. But when I looked into them, everything seemed rather straight forward, even a bit nicer than Gulp, because of the syntax.

    [0] https://github.com/gkz/LiveScript/blob/master/Makefile
Re:Grunt 1.0.0 released by wmil on Tuesday April 05, 2016 @09:23PM (#11435932)
Makefiles have some glaring issues that can't be easily fixed.

The big one is that they break if there are spaces in file or directory names.

Sure, you can argue spaces are bad practice. But they are common on OS X and windows. It's a little silly to use a build system that doesn't support them.

Re:Grunt 1.0.0 released by DiabloD3 on Wednesday April 06, 2016 @12:04PM (#11439666)
That isn't entirely true. It depends entirely on how you quote your filenames. But yes, historically, there's a lot of broken Makefiles that way.
Re:Grunt 1.0.0 released by k__ on Wednesday April 06, 2016 @06:17AM (#11437826)
Ah, didn't know that.
Re:Grunt 1.0.0 released by rtpg on Tuesday April 05, 2016 @11:01AM (#11430863)
I don't get it, what part of Makefiles are missing in Grunt? I've set up a project pretty simply through Grunt without too many headaches (after grocking how to properly write base tasks)
Re:Grunt 1.0.0 released by DiabloD3 on Wednesday April 06, 2016 @12:05PM (#11439674)
The simplicity, plus Grunt has an entire ecosystem of already made tasks that none of them really work the same, so you have to learn the quirks of other people's code.

Its basically the NPM problem all over again, but as a build system, while also using NPM which doesn't make not not the NPM problem.