I decided to do a screencast on this simple script to see if I’m any good at presenting this sort of thing. Hope you enjoy!
If you prefer to read, just skip below the video.
Every week I head out to lunch with a couple of buddies from work and every week we have a hard time picking a spot to go to. We have even resorted to putting all of our favourite spots on little pieces of paper and pulling it out of a box to decide where we will go.
The main thing wrong with this method of choosing a place to eat is that we can’t remember what places we have written on all of those pieces of paper.
I decided to write a rails application that would replace this process as a fun little hack. I completed it and thought that rails was extreme overkill for what I wanted to do. Converting everything to a command line script was quick and easy.
Not all of our favourite places are in this script but you can get the idea of how easy it is to write your own.
1 2 3 4 5 6 7 | |
And as promised in the screencast, here is the link to Ruby’s Random class here.





