Comment

Comment by crabmusket

> contribution to open source can be as simple as contributing a single function

Are there meaningful contributions to open source that are the size of a single function? Isn't this what leads to the terrible failure modes of NPM (hello left-pad)? If you want to contribute a single function, what's wrong with a blog post?

Also, has the browser not solved this with ESM imports from URLs? I can write a web page containing

    import {someFunction} from "https://your-website.com/your-script.js";
This also solves the namespacing issues - at least to the extent that the domain name system solves namespacing issues.

(Deno, of course, inherits this ability to import code from any URL.)

I'm being provocative. I've heard people make similar arguments over time, but never understood why anyone would want open source contributions to be a single function.

parent crabmusket 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton