logoalt Hacker News

Waterluviantoday at 5:00 AM1 replyview on HN

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

jcgltoday at 11:37 AM

GitHub gists are probably the best technical option. They come with versioning (I think), and have comment threads.

show 1 reply