The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Reports & Stuff

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Reports & Stuff Posted: Aug 15, 2005 8:14 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Reports & Stuff
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
I guess releasing my home grown reporting framework GRUF was a good idea after all.

Many folks have these. You know how it goes.

Boss: I need a report of X, Y, Z....today.
You: Ok. What format do you want it in?
Boss: Uh....as long as I can open it in Excel.
You: Do you want the results archived somewhere? How far back?
Boss: No. Wait, maybe for a month or so.
You: Do you want an email sent out, or do you want them to just pick it up somewhere?
Boss: Um...send me an email, but put it out there so that folks can grab it.
Boss: Oh, can we get a web version, too?
You: Sure.
Boss: Keep this one handy. I might need it again.

So, then you write a one off script that grabs the data, does some basic logging, creates a csv file, and stores the csv file somewhere. At first, you hard code everything because, hey, one off script, right? Soon the boss is asking for identical or very similar reports on a regular basis. So, then you try to generalize some things so that you can handle things in a more generic fashion, but it's still clunky. Some degenerate into a big ball of mud as more and more features are requested from the boss. It's not long before you have a dozen scripts in your crontab and you're wishing you had started with some sort of framework.

This is why I wrote GRUF. I had several old Perl scripts that fell into the pattern I mentioned above. However, when I got back into the reporting business (using Ruby this time) I decided I needed a clean framework that I could use for *all* of my reporting needs. Since the release I've discovered a few minor bugs as the result of a more extensive test suite (yay testing!), and have been pushing them into CVS as I go.

So far releasing GRUF has proved to be an extremely wise decision. :)

Read: Reports & Stuff

Topic: Yahoo! Hacks Previous Topic   Next Topic Topic: More RAM!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use