News for hackers. Stuff that matters.

k7n4n5t3w4rt

Re:The User: Symphony #1 for dot matrix printers (1998) on Friday December 18, 2020 @06:30PM (#25473416)
There's so many things to love about this video. The guy on the mixing desk vibing like a DJ, the other guy's home-made wheely-chair, the sounds. Awesome.
Re:Modern Web Application Architecture on Tuesday November 08, 2011 @04:58PM (#3213017)
Harel, I'd be very interested in seeing some of the projects you've done using this technique. Are there any that are publicly accessible?
Re:Modern Web Application Architecture on Sunday November 06, 2011 @01:45AM (#3201967)
aeden, I agree with you that the disadvantage of this approach is that you can't just repackage the client as a mobile app.

However, there are two reasons why you would access the API with server side code in a web client (as opposed to a mobile one).

[1] You can provide a Google friendly, static (no javascript) version of the site and all content - as opposed to a completely invisible site from an SEO perspective.

[2] You can store local versions of all data that's returned from API calls.

This is useful in a couple of ways.

[a] It means that you need only check the API for a 'last modified' date and, if it's older than the current date, use the locally cached API call results first (if they exist). This makes the client extremely fast, since you're reading flat files locally.

[b] If the API is inaccessible for some reason, the client can default to using the locally cached copies of previous API call results

I built this site (backend, not the HTML/CSS/JS) the same way a while back and have been pleasantly surprised with the results - http://jacksonteece.com/

Re:Modern Web Application Architecture on Sunday November 06, 2011 @01:31AM (#3201948)
Make the calls to the API over HTTPS.
So, you can use vertical-align:middle? that seems pretty good. Looks definitely worth a try.