This is without doubt the worst dependency manager I have ever heard of.
what qualities do you feel make it so?
Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes
41–45 of 45 posts
Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes
#42Please no. Write standard modules. Serve standard modules to modern browsers, optionally bundling to modules for production. Bundle to non-modules for legacy browsers. Then we can all eventually move forward from this mess of non-standard module formats and loaders.
It's fine to raise a concern or ask a question about it, but please don't be snarky about it. That's against the rules, both for Show HNs and for the site as a whole. https://news.ycombinator.com/showhn.html https://news.ycombinator.com/newsguidelines.html
Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes
#43Earlier quoted context omitted.
What are "standard modules" for modern browser? I don't typically frontend dev these days, so I'm likely a bit out of the loop. The way I typically thought of dependencies with browsers was to bundle them all together. Is there some new solution to this problem?
Probably using the ES2015 import syntax[1], which allows you to dynamically load modules. I have my doubts whether your average medium+ sized JS app will be that dynamically, so you'll probably end up slurping a whole lot o' module at startup. And without tree-shaking, more stuff to download and digest. [1] https://caniuse.com/#feat=es6-module-dynamic-import
Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes
#44Please no. Write standard modules. Serve standard modules to modern browsers, optionally bundling to modules for production. Bundle to non-modules for legacy browsers. Then we can all eventually move forward from this mess of non-standard module formats and loaders.
One thing that really sours me in esm is that this is possible (fictional main.js): import Vue from 'vue' import jQuery from 'jquery' global.jQuery = jQuery // to get the next line to work import Bootstrap from 'bootstrap' import 'bootstrap/dist/css/bootstrap.css' Then my head explodes. Why would importing a .css file from my JavaScript ever be a thing supported by any tooling. What is that line trying to communicate…
Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes
#45Earlier quoted context omitted.
It's fine to raise a concern or ask a question about it, but please don't be snarky about it. That's against the rules, both for Show HNs and for the site as a whole. https://news.ycombinator.com/showhn.html https://news.ycombinator.com/newsguidelines.html
Honest question - where was the snark? Am I not allowed to think the current situation is a mess?