Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder sometimes what it would be like if we didn't keep re-inventing things. Other than portability, why are any of these better than a Makefile? Most of these tools have a corresponding bin command you can run in a Make task.


I guess we'd be stuck with Make. I can't say how happy I am that that isn't the case.


What do you like about the JS build systems more?


I think it's pretty similar to why people use autoconf, Cmake or the like. If you are building something of any real size or complexity, with a lot of 3rd party dependencies, then maintaining makefiles is a serious PITA (and I say that as someone who has used make extensively in their career).

So why not use autoconf or Cmake, then? Well, why would I want to write and maintain scripts in M4 when I can do it in javascript (the language I'm actually programming in)? And again you get into the configuration vs code question. Why should I rely on configurations files and learning how a complex tool works when I can write what I want to do in a scripting language (not-so-coincidentally the language I'm actually programming in)?

In fact, in our shop for various projects we use makefiles, shell scripts, rake and gulp/webpack. It's nice to use a tool that is set up for the idiosynchracies of the language you're programming in. We could make do with just one (probably rake since we do mostly ruby coding), but I can tell you with certainty that it would be more work than the varied ecosystem that we have.


1) They run on Windows without going to a malware site.

2) They do not contain shell-specific code like Makefiles with a bunch of bashisms in them.


I haven't used any JS build system. I'm just glad I don't have to work with Make.

I'm also reacting to the idea that staying with existing tools is a good idea. People make new tools to solve new problems. And Make has a ton of problems.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: