As I’ve mentioned earlier, I recently started diving into Ruby. This is quite the transition for me. For those who don’t know, I’ve essentially been an exclusive Java developer for my entire professional career (having left college for work about 6 years ago). Of course, that’s not to say I’ve never learned another development language… But as far as that go-to language that you turn to as your primary workhorse, for me that’s been Java.
So, I’ve been digging my way through Programming Ruby by Dave Thomas (‘the pickaxe book’, I’ve since learned). Around page 80 I intended on making a blog posting about how unstable I felt. I felt like I had just enough knowledge of Ruby to be REALLY dangerous, but not enough to know how to really put it all together. Thankfully I didn’t make that post, and I’m happy to report that somewhere between page 85 and page 115, everything clicked. Sometimes it takes an odd trigger for your brain to suddenly get something. For me, it was page 87-88, redefining operators. Literally making 2+2 = 5. OR, more usefully, defining operator logic for business objects. For example, Ruby knows what “Hello” + “World” is… but how can it know what Order1 + Order2 is?? But wouldn’t it be handy to be able to ‘add’ or ‘subtract’ your business model?? Understanding THAT, for some reason, suddenly made everything else I’d read about Ruby sink in. At this very moment I’m reading about Mixins. Sweet. :)
I don’t wish to participate in a flamewar… I was recently asked why Ruby. Why not Perl? That’s a fair question. I have nothing against Perl, necessarily. But as a Java developer, as someone who still really LIKES Java, I’ve never met a Perl developer that didn’t look down their nose at me. I realize that’s perhaps a bit exaggerated, but not much. On the flip side, I’ve found the Ruby community to be inviting and welcoming of Java developers. And I appreciate that. If you start off the conversation telling me my language of choice sucks, I’m not likely to listen to your alternative, even if that alternative is better. But that’s just me.
Thanks to Ilya from Russia for emailing me! I like to know when people read my blog, especially people from the other side of the world. :)
I will report iBrasten log results tomorrow for the month of October! Check back then!