First Ruby Program
I tend to take my time when learning a new language. It can take me weeks to actually produce a working piece of code that I put into production because I'm not happy until I've learned enough of the syntax to stumble across a new piece of code to solve a new problem. Ruby is no different.
Don't get me wrong. I'm not saying I love the language. I'm not saying I hate it. The documentation needs a lot of work. It's not where it needs to be, but I think it's going in the right direction. When I use Ruby, it's for the reasons that exemplify Ruby's strengths. I think it makes class-building much easier than Perl and it handles iterating pretty well thanks to the gratuitous presence of the each() method.
So tonight, after noodling around building broken, useless toy scripts here and there, I finally made a toy script that works. In theory, anyway, I have a script that will periodically fetch some DNS information for my domain and compare it to some other DNS domain records to see if they match. I've already put this into cron and it will e-mail me if and when it finds a discrepancy. I hope it works.
No comments:
Post a Comment