Following yesterday’s post and in the interest of getting something out as soon as possible, I’ve made some headway into the Flickr::Photo class today.
Of course this was after some cleanups and slight changes to the Flickr::Person class.
I can now instantiate a photo object, see (part of) it’s info and get an object representing it’s owner, all auto-magically. Rocks!
In the mean time, it is a good thing I decided to leave the write part of the read/write equation for later as I noticed today (two days late!) that there was an email on the Flickr developers list informing that the ‘setters’ (the write methods) where changed and that they now all have to be done via POST instead of GET.
While this makes perfect sense, I’m pretty sure it will warrant some changes in the Flickr::API and until Cal makes those changes I’ll keep the write part on the back-burner. (As if it weren’t already there…) ;-)
The hardest part of making something like Flickr-Tools is that you just know that the second you put it up on CPAN there will be a ton of changes to the object’s API which will become immediately clear.
Oh well, release often, release early, warn your users, listen to the community feed-back and all that jazz.
I really wish I could make the first release during the coming weekend… I’m not sure I’ll be able to do it though, as real life is getting in the way. But I’ll surely try.
(Did I just say “real life”? Hum… It seems my moo/mud-user personality is trying to take over when I’m not looking!)
This is what was blasting in my car today on the way to work:
How does it feel
To treat me like you do
When you’ve laid your hands upon me
And told me who you areI thought I was mistaken
I thought I heard your words
Tell me how do I feel
Tell me now how do I feel
Man, I’m old… fashioned.
I just couldn’t resist and after having finished the first version of the Flickr::API::* classes I just had to try and implement one of the high-level modules to test it out.
So I now have Flickr::Person full implemented (no tests just yet, though, I went way about this one the impatient way).
It took about 30 minutes to do it and works like a charm! It was extremely easy to write, it is lazy in getting data and, once it actually has to get any data, it caches it for future reference.
It’s great when things ‘just work’ like this. Quite a rush!
Well, but now I’ve got to be a good boy and go to bed, tomorrow I have a chiropractor’s appointment really early and I will pay for staying up late working on this.
Can’t wait to get the other three modules finished. This version of the modules is read-only (you can only get information from Flickr, and not all available information at that) but once I get it out the door and into CPAN I’ll start implementing the write part of it. And filling in the gaps on the read methods, of course.