A few months ago I released Bing API PHP to the public out of boredom, it was a hobby, still is. Now re-visiting my code I discovered a few things that needed to be introduced. Starting with an Abstract class, mostly all of Bing’s XML responses are almost equal to each other. Except for some cases, yet, in the midst of working on a solution on how to “write less” and “be more efficient gathering data”. I totally forgot about abstract classes, not just totally forgot, the next version of the wrapper itself got stalled due to attempting to “write less”.
Why did I start re-factoring now? Good question! It had something to do with OpenType Threads, working on my prototype has taught me a lot of things about classes, design patterns and a better problem solving skill. So when I looked at my wrapper class, I said to myself “hmmm… maybe we should do this one more time”. Yet, while this is still a hobby, one of my goal of why to re-factor the code was to allow me a better manipulation with JavaScript. I know I can use XML in JavaScript but well, we’ll see how it goes :)
So it’s time to pay a visit to Bing’s API documentation and delete old code without thinking twice.
