Folks,

I want to clean up the JS SDK to make it a bit more consistent. Among the
top-level objects (Entity, Collection, Group, etc), There are 2 big
inconsistencies: The validations performed before CRUD operations and the
data supplied in the callbacks from those operations.  I would prefer if
the SDK performed no extra validation -- such as attempting to retrieve an
entity before updating it -- and instead performed the requested operation
and passed the error message back to be handled by the application.  As for
the callbacks, some pass the response, some pass the deserialized JSON
object, and some pass the SDK object.  If all callbacks were of the
form *function(err,
response, self)*, the programming model would be much easier to follow and
repeat.

Does anyone have any comments or objections?

-ryan

*ryan bridges* | *app services* | *apigee <http://apigee.com/>* | m:
+1.678.313.5334 | twitter @r <http://twitter.com/USERNAME>yanbridges
@apigee<https://twitter.com/apigee>

Reply via email to