←back to thread

295 points todsacerdoti | 2 comments | | HN request time: 0s | source
Show context
Waterluvian ◴[] No.45950948[source]
AI offering the solution for a small problem that probably doesn’t deserve yet another dependency suggests to me that there’s a middle ground that we’ve failed to sufficiently cover: how to socialize code snippets that you’re meant to just inline into your project. Stack Overflow is probably the closest we’ve gotten to a generalized solution and it doesn’t exactly feel like a good one.

I came across this once before in the form of a react hooks library that had no dependency to install. It was just a website and when you found the hook you wanted you were meant to paste it into your project.

replies(1): >>45952739 #
1. jcgl ◴[] No.45952739[source]
GitHub gists are probably the best technical option. They come with versioning (I think), and have comment threads.
replies(1): >>45953423 #
2. Waterluvian ◴[] No.45953423[source]
And a decent API as well.

I think what’s missing is some amount of organization to make them more discoverable.