_whyday – ruby explorations

- Image via Wikipedia
Yesterday at the boca raton ruby meetup I showed off some hacking that I did about 3-4 years ago when I was exploring ruby meta-programming as many people were doing at the time.
It was the period of _why, markaby and the poignant guide to ruby.
In that period I used to take the train to work, ride it for about 90 minutes, work a full day, go to happy hour with the CTO of the company and then ride the train back. During the ride back home I’d write a “column” that I entitled “Drunken Ruby Master Technique” where I’d try weird ruby syntax and coding styles.
Last night I revived such articles that gave me gems like this:
Here are the links to the original articles:
- Drunken Ruby Master Techniques
- more Drunken ruby coding – part 1 – splat and more
- more drunken ruby code – part deux Hashes
Not everything has real applications of course, but I thought at the time they were interesting findings.
I think it was really _why that inspired me to explore for language idiosyncrasies like the following and just have fun with it.
[*{"a" => "string"}] #=> [["a", "string"]]
[*{"a" => "string"}].first.class #=> Array
[*["a" => "string"]] #=> [{"a" => "string"}]
[*["a" => "string"]].first.class #=> Hash
Thank you _why, we miss you.
