Documente Academic
Documente Profesional
Documente Cultură
Further reading:
– JavaScript: The Definitive Guide, David Flanagan
– MDC JavaScript Guide; MDC JavaScript Ref
Desktop vs Server-side
PHP stack is built up/torn down every time
mem leaks not much of an issue
exec time < a few seconds max
almost always synchronous calls
Desktop apps are persistent
exec time can be hours or days
mem leaks a HUGE issue
lots of asynchronous calls
JavaScript frameworks
Some stuff is a huge pain without the help of a
framework
Lots of choices
Must play well with AIR
eval usage gotchas
jQuery pwnz yoo
JavaScript
hyper frontman
Use JSON
USE JSON
do not use XML (if you can avoid it)
set the correct mime type (application/json)
Example 1:
PHP duz yer math
Async calls using jQuery AJAX methods
Communicate via JSON
Flash
Zee Cloud
web server
Webkit
Example 2:
PHP 'shops yer pics
Uploading via Flash APIs
JSON based communication
Flash
Zee Cloud
web server
Webkit
Example 3:
DearZend.com
JSON based communication
Desktop alternative to web front-end
Flash
Zee Cloud
web server
Webkit
Additional resources
Adobe AIR for JavaScript Developers Pocketguide
http://www.tostring.org/
Titanium
http://titaniumapp.com/
Titanium Forums
http://short.ie/d4ponk
Searchatron Source
http://short.ie/g9z6qt
DearZend.com source
http://github.com/funkatron/dearzend-server
http://github.com/funkatron/dearzend-client
Additional resources
Spaz Desktop Source
http://code.google.com/p/spaz/
SpazCore
http://github.com/funkatron/spazcore
Questions?
@funkatron • http://funkatron.com • joind.in