News for hackers. Stuff that matters.
Re:Twitter Completely Down by DanielN on Thursday June 21, 2012 @01:14PM (#4143065)
Unit test ( as already mentioned) and build up static json/xml/whatever files to run your code against so that you can integration test your stuff without integration testing the 3rd party stuff.
Re:Twitter Completely Down by Retric on Thursday June 21, 2012 @01:38PM (#4143212)
And hope your static files still match the API behavior when your done...
Re:Twitter Completely Down by timdorr on Thursday June 21, 2012 @02:11PM (#4143389)
That's actually a completely valid test to run: what happens when the API's results change on you? You should test that.
Re:Twitter Completely Down by DanielN on Thursday June 21, 2012 @01:47PM (#4143259)
At some point you end up outside of the scope of testing, but you can build bootstraps to make sure that your mocks match whatever they are mocking.

Obviously, this does you no good when something like an API service goes down, but that's issue is irrelevant to the question that was posed. Having some static file to test against whether it is accurate or not will instantly tell you whether it is your code or the third party that is breaking.