blog home

Random Strings in Ruby

October 7th 2009

comments

I often need to make random strings and it became a "thing" with me to try and do it differently each time. Here are some of the ways I've done random strings.

Seamless

Coatable

Due This Week

Muffin App

Muffin App (again)

UhHuhYeah.com (which I think I stole from restful_authentication)

And my favourite (being used in my latest skunkworks project)

As you can see, they range from the concise to the utter ridiculous. And that's one of the things I love about Ruby. There's always a few ways to do things, but the code always speaks and it always lets you know when you're being ridiculous.

filed under // Ruby 

comments // leave yours

blog comments powered by Disqus