seasons confection

All day yesterday we were teased with little dustings of seasonal sugar, but it all just blew away. The forecast said one to two inches by morning, but we were disappointed to find that had blown away too. There were a few patches of ice on the lake where the weeds kept the water relatively calm, and most roofs had a nice shake of white clinging against the wind. The kids were very excited, and it only escalated as we pulled into the parking lot at school and there ware very small piles that could actually be stomped in and scattered. We all hope that the rain has gone for good, and all future precipitation will be the soft whiteness that collects beautifully, and is synonymous with clean.

Ruby glue

I have stepped back into ruby recently with a project to tie our portal to our network provisioning scripts. The portal is WebSphere running on RedHat, and the provisioning scripts are in VBScript, on Windows. It is the perfect opportunity to actually learn how to really program (maybe). I do some SQL magic (ok, not really magic), and send off some system calls in separate threads to check or setup Exchange accounts, web space, or home folders. The goal is to make it modular so that new services can easily be added, and to daemonize a part of it so that it does not need to be run by Windows Task Scheduler.

I have finished most of it, and it seems to do what it should. What is strange is that I am not even sure I programmed well. I do not have the experience to know if there are easier ways of doing things, or if I have written 30 lines of code that could have taken 5. I am sure I _could_ enjoy programming, but right now it takes quite a bit of effort and research to figure out how to do things (kind of like Linux for the first few months) and it is very absorbing. I have trouble leaving work at work when I am programming because all the troubleshooting is abstract and in my head. Since I can’t leave my brain at work, it keeps hammering away at the problems. I also get irritable when I am interrupted, and that is not so good at work, or home. So I am in a hurry to get this little app finished so I can return to normal life.

Over-all I have enjoyed ruby, and it is fun to create. I like the object oriented aspect of the language and find it pretty easy to understand when I read through it. I start to think in ruby sometimes when I think of attributes and methods… I mean adjectives and actions.

daniel = Programmer.new
if daniel.focused
     print 'Do not disturb'
else
     unless daniel.mood = 'bad'
          print 'Daniel is feeling kindly toward you.'
     else
          print 'Daniel does not exactly want to talk to you.'
     end
end