All about Struct
This guest post is by Steve Klabnik . Steve is a Rubyist, writer, and teaches Ruby and Rails classes with Jumpstart Lab. He maintains Draper, Hackety Hack, and Shoes, and
contributes to Rails from time to time.
O ne of my favorite classes in Ruby is Struct , but I feel like many Rubyists don't know when to take advantage of it. The standard library has a lot of junk in it, but Struct and OStruct are super awesome.
Struct
On the other hand, Why is passionate about teaching programming to children. So improvements to Hackety Hack would be welcome.
Or take direct action along those lines, and teach Ruby to a child.
I made a note of WhyDay on my personal tech blog, Global Nerdy , as well as the blog I got paid to write for (I was a Microsoft employee at the time). I didn't get the chance to do as much as I'd like in the spirit of Whyday, probably because I was knee deep …
…for them in their current situation. Luckily, since both Steve Klabnik (of Hackety Hack) and Andy Lindeman (of P2PU) were also in attendance, I was able to help folks who weren't quite ready for RbMU find someone who could help them. Interacting directly with a number of folks at different skill levels revealed some interesting patterns that are probably worth blogging about.
Because I spent much of the last week or so interacting with people face to face and listening …
Hackety Hack 1.0 - _why's Baby All Grown Up
Despite losing Why The Lucky Stiff over a year ago, Why's Shoes and Hackety Hack projects have lived on under the care of Steve Klabnik (amongst others). I'm going to write a separate, deeper post on this but it deserves to be in the list since Steve pushed out Hackety Hack 1.0 on Christmas Day along with an all-new Hackety Hack homepage .
…really easy to use, too. Just put the command you'd use to switch in the file. For example, in the Hackety Hack website project, I have the following .rvmrc : rvm 1.8.7@hackety-hack.com
Astute readers will notice that I left off the ‘use,' rvm defaults to ‘use' if you don't give it a different command. Check it out: $ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] $ cd hackety-hack.com $ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) …