The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Practicing safe Ruby, with safely
Wrap up your dangerous Ruby operations in a warm error handling embrace with the new safely gem. Extracted from daemon-kit, and now standing on its own two feet, safely will make sure your projects never fall over without you knowing exactly why.
Designing of a web framework for video games
I just wrote about my experience designing a web framework for video games at Sony PlayStation. It’s sort of a postmortem explaining the reasons behind the project, the challenges and how we tackled them.
To Yield or Not to Yield: An Inferable Question
Blocks are fundamental to idiomatic Ruby code, yet Ruby/RDoc/YARD can’t tell us statically whether a given method needs a block, optionally uses a block, or ignores blocks. The Laser project takes up the question: To Yield or Not to Yield: An Inferable Question
VMware CloudFoundry: Ruby powered PaaS
VMware announced their CloudFoundry project earlier this week, which is an open source PaaS platform - run your own “mini Heroku” or “EY cloud” on your own servers! The entire platform is powered by a collection of distributed Ruby daemons and services - great case study of building a distributed Ruby system.
Rails Misapprehensions: Rails needs more abstraction layers!
My opinionated opinion about the on-going +1 discussion on Rails and coffeescript and a discussion what is an abstraction layer.
NestedHasManyThrough Rails 3.x gem has been released
This gem makes it possible to define has_many :through relationships that go through other has_many :through relationships, possibly through an arbitrarily deep hierarchy. I have just made the gem and applied patches for better Rails 3.x support
Squeel, aka the MetaWhere Rewrite
I just put up a quick blog post discussing the upcoming successor to MetaWhere, Squeel. I could really use some testers and feedback on what you’d like to see. If you’re running edge Rails, please try it out!
Gautam Rege of JoshSoftware writes about...
Gautam Rege of JoshSoftware writes about Geolocation, Rails and MongoDB- a recipe for success.
Using Coffeescript in Rails
Darcy (Sutto) shows us how to use Coffeescript in Rails - Using Coffeescript in Rails.
CoffeeScript Commotion: The Latest Rails Drama
Over on Ruby Inside I’ve just written about the latest Rails 3.1 storm in a teacup. Yeah, Rails 3.1 is bringing CoffeeScript, Sass, and jQuery into the fold. Luckily, Jason Seifer has released DoIHaveToUseCoffeeScriptInRails.com to clear things up for us. On a more serious note, though, if you’re new to CoffeeScript, this presentation should do a great job of selling it to you.
CoffeeScript Compiler for Windows
This is alisey’s library, not mine, but I just found it and wanted to share. I cloned the repo and was immediately compiling CoffeeScript files on Windows, no hassle or problems, no steps. Link to Github - CoffeeScript Compiler for Windows
TryRuby! needs your help to fundraise for new features and lessons.
I’ve recently launched a campaign to raise funds for Try Ruby - the web-based IRB. The updates I want to make require more time than a 9-5 job/contract can afford me. I’ve turned down contracting work in March so that I would have time to work on Try Ruby full time. Some of the upcoming changes have been very time consuming like adding support for non English keyboards as well as iPad (web) support. [more inside]
RouteDog for Rails
I just released version 2.3.0 of RouteDog for Rails 3. It is a library to find routes that haven’t been tested with integration tests as well as routes that were defined but not implemented. gem install route_dog -
Parsing YAML
Dear RubyFlow: To parse YAML, use the Psych module, not the YAML module. That’s all.
Vim eighteen months on
An overview of my experience of switching to Vim with links to resources that helped me on the way.
RABL, The Ruby API Templating Language
Inspired while building a public API and by frustrations with JSON generating libraries like tequila and json builder, I have created the RABL templating engine which allows you to define JSON and XML APIs in a clean, simple ruby DSL. a The gem also removes code duplication allowing template partials and inheritance. Works with Rails 2.X, Rails 3.X, Sinatra and Padrino. Benchmarks are forthcoming.
Learn Ruby Programming for Free
Your chance to learn Ruby programming for free.
How to get SASS to work with Rails 3 on Heroku (without using any plugins)
Using SASS in Heroku could be a little tricky. Learn how to accomplish this without use of any 3rd party plugins.
Rails3 - FullCalendar
Interested in using the jQuery full_calendar in a rails3 app? Check out my blog post and github repo with a working example showing how to do it restfully with the jquery.rest plugin.
Chicks That Rip: Thais Camilo
Brazilian born Rubyist Thais Camilo discusses the tech scene in Brazil, why she decided to learn Ruby, and how she overcame language barrier challenges and frustrations as she learned to program while also learning English.
Taping API interactions with VCR
I didn’t create the VCR gem, but I love it so much I had to create a long, rambling screencast about it. Check it out and learn how to test your interactions with external APIs in a fast and robust manner.
Client - Developer relationships
Developing successful client relationships are critical to any business. Preserving these relationships is crucial for making the time spent on projects more enjoyable and satisfying, as well as for referrals and future business. more…
Dead simple code sandboxing
I just released Sandboxed, a gem that lets you run unsafe code without the usual headaches. It’s as simple as safe{ something_stupid } and comes with integrated context handling. Check it out and leave your comments!
Bundler Makes Contributing to RubyGems Easier
I just wrote an article Bundler Makes Contributing to RubyGems Easier which details a workflow on how you can use Github/Bundler to contribute patches to projects while keeping your own project on track.
Pure Ruby colored blob detection
Over the last few weeks, I’ve become increasingly interested in computer vision. After having some problems with existing libraries, I decided to dive in to figure out how it actually works. In this article, I’ll explain how I did colored blob detection to detect a clown’s nose in pure Ruby (using ChunkyPNG).