Ever have one of those times when it feels like everything you code both fails to work *and* breaks a half dozen other things at the same time? I'm having that feeling right about now.
I'm trying to objectify a lot of the larger Scoop components, using CW's Collection objects, but it's really not going well. I'm seriously considering scrapping this plan and scaling back to just cleaning up the existing code, and doing something like a mini-Collection, which just returns data hashes (and does the nifty caching) rather than full-blown objects.
I don't know what the problem is. To all appearances, it's perfectly simple code, that should do exactly what it's supposed to. But I just can't get it to WORK! It's driving me up a freaking wall. I hate going to bed with less accomplished than I started with. But tonight, that's the way it's gonna be.
I'm starting to think perl is probably a bad choice for heavy-duty OO programming. Once you get past a certain level of complexity, perl's slightly wonky OO semantics start making it harder to do things, rather than easier. I keep hitting that point, repeatedly, and I think it's time to back off and take a smaller bite.