News for hackers. Stuff that matters.
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by cel1ne on Wednesday August 31, 2016 @03:37PM (#12400875)
Not meaning to badmouth your project, but I've never understood the need for snippets as in code that I can copy and paste.

If I repeat myself I use a library, or a more concise language or IDE autocomplete.

On the other hand I do use Textmate's snippets feature, but those are interactive templates that I can invoke by pressing a letter and then fill them out by tabbing through them.

Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by rjbrock on Wednesday August 31, 2016 @04:12PM (#12401132)
I think theyre generally used as a quick way to show someone a piece of code with some nice syntax highlighting.
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by SalGnt on Sunday September 04, 2016 @05:01AM (#12423453)
It can also be useful when you need a specific code that you used to solve a particular problem, or to store a configuration file.
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by SalGnt on Wednesday August 31, 2016 @08:17AM (#12397689)
I created this snippet manager because I never found a similar one around the internet. This is my first experience with Rails, what I want with this project is to learn more about this framework. Feel free to give me your feedback, thanks!
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by stephenr on Wednesday August 31, 2016 @08:37AM (#12397806)
I notice you have "versioning" on your todo list.

I would personally implement that similar to how GitHub handles Gists: make each snippet a DVCS repo with 1 or more files in it.

That provides both the versioning functionality, and opens up the possibility for client-side editing using a well-known model (clone repo, make changes, commit, push).

Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by SalGnt on Wednesday August 31, 2016 @09:06AM (#12397971)
I don't know if Rails allows to do this, but I'll try, thanks.
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by aaronbrethorst on Wednesday August 31, 2016 @02:21PM (#12400346)
Well, seeing how GitHub does it...

https://rubygems.org/gems/git/

Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by SalGnt on Wednesday August 31, 2016 @02:37PM (#12400430)
Awesome!
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by mordocai on Wednesday August 31, 2016 @01:45PM (#12400101)
It definitely can, though it won't be as easy as just storing text blobs in the database like is the default rails way.
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by shobhitjain26 on Thursday September 01, 2016 @06:39AM (#12404221)
i have used http://www.gistboxapp.com/ and it does a pretty good job.
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by brudgers on Wednesday August 31, 2016 @08:39AM (#12397819)
If it meets the guidelines and intent, this might make a good 'Show HN'.

Show HN guidelines: https://news.ycombinator.com/showhn.html

Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by SalGnt on Wednesday August 31, 2016 @09:02AM (#12397957)
Done, thank you.