News for hackers. Stuff that matters.
Re:Protocols over APIs by julien on Tuesday May 15, 2012 @12:39PM (#3977363)
Well, I'd argue that the protocol hasn't been designed correctly. Don't forget that every single website out there use HTTP as their main protocol, yet, they have very different feature sets, capabilities and even goals!
Re:Protocols over APIs by phillmv on Tuesday May 15, 2012 @12:48PM (#3977414)
We're reinventing the wheel, yet again.

Wasn't this what CORBA, XML-RPC, or SOAP was meant to solve? And then we all happily ditched them for loosely defined RESTy JSON because it was so goddamn easier.

I think TFA is describing a legitimate complaint; but I don't think the RESTy CRUD twitter exposes is all that difficult to abstract.

Amazon on the other hand…

Re:Protocols over APIs by theatrus2 on Tuesday May 15, 2012 @01:59PM (#3977814)
Amazon's protocols were clearly designed by a Java EE developer. Not that there isn't anything inherently wrong with them, and they are very flexible. They're also somewhat stuck with them based around the huge amount of code which interfaces with S3/AWS.

There are some problems with no good solution, namely the signed parameters in Amazon's case. How do you sign JSON? Is there a "canonical" JSON format that will allow signing consistently, and verification? All the approaches I've seen are incompatible in some way.

Client-side SSL is another solution, but its much less flexible (i.e., token-generated requests wouldn't be easy)

Re:Protocols over APIs by userdeveloper on Tuesday May 15, 2012 @06:38PM (#3979298)
Stuck with Java. Exactly.