Live data from Hacker News

Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes

github.com

41–45 of 45 posts

Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes

#41

This is without doubt the worst dependency manager I have ever heard of.

what qualities do you feel make it so?

It’s a quote from Pirates of the Caribbean, about the character Johnny Depp played:

https://youtu.be/wv9PWo-KLc0

https://youtu.be/CAt5JB96Cdk

Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes

#42
post #28

Please 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

Honest question - where was the snark? Am I not allowed to think the current situation is a mess?

Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes

#43
post #20

Earlier 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

You can bundle modules together so you don't have a ton of downloads, but the basic module graph will at least be loadable. WebPackaging will also help in the future.

Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes

#44

Please 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…

Importing CSS is not supported, at least yet.

Re: Show HN: JohnnyDepp – A tiny dependency manager for modern browsers in 862 bytes

#45
post #28

Earlier 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?

Responding to someone's work with "Please no" seems snarky to me. Certainly it's rude—especially in a Show HN thread, which is all about someone sharing their own work.

https://news.ycombinator.com/showhn.html

Post reply on HN