Who am I?

My name is David A McClain. I like to make things. I am Uh Huh Yeah and I'm also the Lead Architect at Next Play Sports.

David A McClain

Wednesday October 7th, 2009

Random Strings in Ruby

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.