I’m working on my ‘bend’ script tonight, cleaning up some old code that’s been irking me. Ugh. This is one of those projects that it would have gone a lot smoother if I had put all my pseudo code on paper first. Naturally, all my real planning is done at work while all my enthusiastic creativity is used at home. There’s gotta be some way to combine the two. Maybe I’ll reward myself in Twinkies for a good OSS program done right. 🙂
So, right now, I’m working on *simplifying* everything. I’m dumping everything in the class, making the functions more basic (doing one tiny thing) and other horrific “what was I thinking” code cleanup. Someday I’ll get a release out the door.
In the meantime, I just added a tiny still-not-perfect function I wrote to pull in options from stdin:
$ bend --rip --debugYour DVD is not in the database. Would you like to archive it now? [y/N] yes string(3) "yes"
Pretty funky … at least, I think it’s cool writing PHP shell scripts that are interactive. This certainly deserves a Hostess-brand sponge cake reward.