Ruby Snips
February 22nd, 2007 -
I work with Ruby everyday and everyday I am learning something new. In an effort to retain everything that I am learning, I’ve created a place where I can keep code snippets, with an explanation of what is going and how to use it.
I know this has been done before, but I personally like the blog style with the categories, tags and search capabilities to find whatever it is I am looking for. It is like having my own personal code bank of Ruby snippets. I’ve called this Ruby Snips.
Currently, Ruby Snips doesn’t have much on there. I need to make sure the RSS is working, add code highlighting, etc. But those will come very soon.
Part of my vision for this site is to ask other Ruby enthusiasts to come and be a guest author to write short, sweet and concise pieces of their favorite snips to share. I’ve always liked Ruby Inside’s code snippets, but there wasn’t a search functionality (that I saw) and often times there was no explanation of the code. Granted it isn’t too hard to figure out what is going on, but I am a firm believer in commenting your code and providing explanations for other people to learn what you’ve done. This then provides a solid basis for learning and building upon principles.
I’m definitely not looking to have long tutorials on the site, but rather examples of small snips of code with an explanation of how it is being used and how it could be used. Ruby Snips has a small post on my vision for the site and a post with snip of Ruby code that will provide an example of how short and sweet I’d like to keep each post.
If you are interesting in sharing a Ruby and/or Rails snip, either leave me a comment here or shoot me an email (contact info on contact page). I hope that this can be a good learning ground for beginners to intermediate Ruby coders.
Tags: ruby
Comments
Commenting has been turned off.