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

Yet, I can never get the old test site I set up running again without massive annoyances. This has happened multiple times.

Pin your dependency versions and never suffer this problem again! Shrink-wrap your node modules and don't even download them again! Use Yarn's offline cache to share package tarballs between applications to save on disk space!

There are many options for this problem. And that's just in the JS ecosystem. Use something Ruby or Go based and it's even better.

As far as I'm concerned, there's zero reason your landing pages and blog should require 3,000 dependencies to run.

Except there really, really is. A static site generator is really an optimizing compiler for 4 or 5 different languages (html, css, js, markdown, a template language, etc), with a build tool chain, and often image optimization, and a server for dev, and usually some sort of semi-opinionated structure that scans a directory tree and magically turns that into something you can just throw up to a web server and have a working website. They're complex systems pretending to be "simple and easy" because the output is essentially HTML with a few whistles.

You certainly can build a site generator with far less code, but when people want a lot of flexibility just by tweaking a JSON config file that necessitates complexity. And in JS, that means more packages.

The beauty of tooling is that there are lots of alternatives if you feel you want to optimize for dependencies instead.



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

Search: