xsawyerx/metacpan-api — Issue #10: [Feature Request] Reorganise the codebase to support mulitple backends 
Author: kentfredric
Created: 2012-03-06 03:59:10+00:00
State: open

I've done an initial set of changes that would make this work.

https://github.com/kentfredric/metacpan-api/commit/3600f0f9d30d953a974974c19cbe5aef15479b38

Already, some of the benefits of this restructuring are starting to appear. One being the creation of a result class, which makes the validation of the result itself theoretically much simpler, as well as unifies result decoding.

And this bug is opened for feedback/ideas on the branch.

The "adaptor" style is pretty much inside-out roles, creating classes that work as wrappers for classes we can't control to make them have an API we can control.