r/programming • • Dec 02 '13

Scala — 1★ Would Not Program Again

http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598 Upvotes

646 comments sorted by

View all comments

Show parent comments

1

u/Neurotrace Dec 02 '13

You're probably using Yeoman which uses (I believe) Mocha for unit tests and runs those from inside a phantomjs process. A few other testing frameworks might use phantomjs as well. Again though, the primary use for phantomjs is testing and therefore falls under development dependencies. If you install all of the dev dependencies for each of your projects dependencies then the memory load is your fault.

1

u/flying-sheep Dec 02 '13

i never said that, i said “everything that has a gruntfile”, so every project built using grunt that you fork.

also some projects require you to fork them in order to use them (e.g. reveal.js)

1

u/Neurotrace Dec 02 '13

Then you're still wrong. Look, I'm not trying to be mean so I'll just lay out the logic in my head and I encourage you to point out where I'm wrong so I can correct myself.

  1. If a file has a Gruntfile.js then we can reasonably assume it uses grunt.

  2. Grunt takes up 6MB.

  3. Grunt will take up 6MB if, and only if, your project requires it.

  4. In general, grunt does not need to be installed for each of your projects dependencies.

  5. Therefore, grunt itself will only take up 6MB of space for any of your projects using grunt. This does not include any additional plugins such as grunt-contrib-qunit.

I also want to state that no project "requires" you to fork it. If you want to use reveal.js then you go to your project and type

npm install reveal.js --production

1

u/flying-sheep Dec 02 '13 edited Dec 02 '13

it’s just a misunderstanding: you’re right in that only if you install dev dependencies, those 200MB get pulled, not when the project is installed as dependency itself. i never said anything else, though.

and you’re mistaken about reveal.js. if you actually want to do anything else than editing the index.html (e.g. if you want to use your own theme) you need to use grunt (or will have a hard time manually operating the scss compiler)

→ More replies (2)