12 comments

[ 5.4 ms ] story [ 30.6 ms ] thread
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!
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).

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.

I think theyre generally used as a quick way to show someone a piece of code with some nice syntax highlighting.
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.