We are testing the REST services and writing the APIs for other languages. This is an interesting exercise, albeit usually boring: writing the exact same code in many different languages. We're starting with PHP, Python, Javascript and Java, which should cover a good deal of the needs of our developer-users. Other languages will come, and we'll gladly accept your own translations.
#PHP# and #Python# are remarkably similar when it comes to small programs. It's almost possible to translate one to the other with nothing but a few regular expressions. The only big difference is how to make HTTP requests. Java will be written by someone else (sometimes I'm lucky, hehe). Then there was JavaScript.
Our #Javascript# code that makes these nices boxes when you hover your mouse on the LikeOrHate links changed a lot during development, and though it's quite clean and easy to work with, it doesn't have what could be separated as a public API for accessing LikeOrHate's REST services. So I set out to write a new one, thinking it you be easy to port from the PHP/Python code. Indeed it was, except for one thing.
You can't make synchronous cross domain request in JS. Ridiculous. You can either make it synchronous using AJAX, but then you hit the cross domain problem, or you can make it asynchronous with <script> tags.
As a result, all JS APIs work by making requests and getting callbacks. And so will ours, to my great dismay.
A couple days ago my computer was suddenly very slow. There were no apparent errors I thought that Eclipse was hogging the PC again. I shut it down, still slow. Fine, just reboot.
Tons of errors on my primary HD. It still could be accessed, but barely.
Ever since my first disk crash (caused, too many years ago, by doublespace; if you know what doublespace is, you've been using computers for too long), I started to backup more or less regularly. So I lost almost nothing important, have everything I've made up to a few weeks back and thanks to the cloud not even one email (except for a couple accounts which I don't keep emails on the server). SVN is also very helpful in these events. All LikeOrHate code anda data is completely fine -- even the bleeding edge development stuff.
It was less traumatic than expected, though I still am reinstalling everything. It killed my linux partition, which was the same (moved through many HDs) since 1996. Perhaps it was time to clean it up. Unfortunately, some stuff I didn't backup (media files) may be gone for ever. I could take the disk to have the data back, but it's not worth the price they charge. Perhaps the Gods Of Computers will let me get some of those gigabytes back before I convert the old HD into #frisbee#s.
And perhaps that mirrored RAID that I used to consider only for servers is not an overkill for my desktop either.