RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

How slow are (Ruby) Exceptions?

If you are used to benchmark your Ruby scripts or if you ever had to improve the performance of some strategic tasks, then this post won’t tell you nothing new because you should already know that Ruby Exceptions are slow. And this is not really a Ruby problem: .NET Exceptions are slow, JAVA Exceptions are slow just because the begin/raise/rescue (or try/throw/catch) architecture is slow by nature.

People who don’t know what they are talking about shouldn’t be allowed to write…
These three classes don’t do the same thing. In particular the one using except…
In my experience, exceptions can also cause a large amount of garbage object pr…
This should be obvious but benchmark/profile Ruby only to find clearly dumb stu…

Play with Rendera and learn HTML5 and CSS3!

I recently launched Rendera.heroku.com so I could easily test out some HTML5 and CSS3 examples, and I decided to open it up for others to use. I’ve added several examples, as well as support for HAML and SASS. There’s no support for saving your work on my server, but you can export anything you do to a standalone HTML file. [more inside]

It almost works
Not sure what the first commentor meant, but I just tried it out and it worked …
Great Tool to test stuff

Ruby 1.9 character encoding field notes

The last few weeks I’ve been spending some time figuring out how to handle character encoding in your Ruby 1.9 application. I’ve posted my findings with a short blog post and a released a gem.

This is going to be a very important part of future Rails apps.
Really neat, and nice code as well. This will surely be useful at some point! …
The font rendering was really bad on this page! Windows, firefox 3.5. I use…

RailsBridge BugMash for Rails 3

The upcoming BugMash will take place on 1/16 and 1/17. We're going to try something a little different. With Rails 3 on the way, we didn't want to spend a lot of effort on withstanding 2.3.x bugs, so the idea is to have participants get to know Rails 3 better. [more inside]

Shoulda Macros for Testing (Not) Logged-In Filters

A new blog article: In any Rails app with a user system, certain actions are likely to have a before_filter to ensure that a user is either logged in or not logged in before accessing those actions. With Shoulda, we can easily create a few macros which make testing this behavior as simple as adding a single line to the test context for each action that uses one of these filters.

Efficient, Immutable, Thread-Safe Collection classes for Ruby

Started as a spike to prove a point, Hamster has since morphed into something usable with Persistent Data Structure implementations of Hash, Set, List, and Stack. My primary concern has been to round out the functionality with good test coverage and clean, readable code. It’s still a work in progress but as I said, definitely useable now.

Loading older posts