5 ms·
Ask HN: What is your favorite website for posting code snippets?
Its pretty common that I want to save/share a tiny generic chunk of code to be re-used later.
Its typically too small/useless to be packaged, and seems to be about method signatures while switching around languages:
- parsing data
- jekyll helpers
- ruby/js/bash/etc. syntax for reading/writing/appending/etc.
just small junk that I'd like to reference very quickly and help others reference quickly if need be.
I have written and answered my own Stackoverflow question before but it feels stupid so I won't do that anymore. github gists don't often come up in google results and not easily categorized and such.
- Axsuul 9y agogist.github.com It also integrates well with Sublime Text 3 via a package
- deleted 9y ago[deleted]
- wheresvic1 9y agoYou can very easily get a free blog and just start blogging! https://wordpress.com/ https://wordpress.com/
- salmanpathan30 9y agogist.github.com
- mobitar 9y agoI use Standard Notes [1] for this. Code editor + sharing lets me do this pretty seamlessly. Actually code snippets is part of the reason I developed this app. [1] https://standardnotes.org https://standardnotes.org.
- addcn 9y agoRelated question: what are people looking for in these tools? Anything feel like it's missing?
- blairanderson 9y agoStack overflow is pretty great except people go there when they have a problem and it is majority beginner with minority advanced. I'd like to see a place that promotes sharing sharing code snippets and curating it. Almost like https://bootsnipp.com/ https://bootsnipp.com/ but entirely generic for code of different languages
- addcn 9y agoYes that's interesting. One thing that's always dogged me is that you can't really encapsulate snippets the same you can code. For instance - it's easy to find a snippet for Quick sort, but if I want to add a user system to an app (something just as standard), that's like 30 snippets and across 4 files and it might not work.
- melezhik 9y agoHi, probably a bit off topic but - https://sparrowhub.org https://sparrowhub.org - repository of (reusable) scripts.