1 / 48

JavaScript is Everywhere

Learn one language, do everything. JavaScript is widely distributed and can be used in various environments such as web, desktop, mobile, and more. Explore the possibilities with JavaScript!

emmaf
Download Presentation

JavaScript is Everywhere

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JavaScript is Everywhere Stoyan Stefanov OSCON July 27, 2011

  2. The Future is here and it's widely distributed

  3. "Write once, run everywhere" JavaScript is everywhere

  4. Learn one language do everything

  5. I'm biased so let's just do it

  6. MVC? In-M-Out

  7. In-M-Out • Input • Model • Output -> UI, presentation -> "Business" logic, core, brains -> UI, presentation

  8. and the rest is…CODE & DEMOS

  9. m.js knows all the chords

  10. CLI command-line interface

  11. CLI • jsc • rhino • node • cscript • exe

  12. WebService with node.js

  13. Web Site/App JavaScript's natural habitat: the browser

  14. Bookmarklet smaller version of web (thanks, media queries!)

  15. Browser extension

  16. Photoshop scripting to generate 100s chord PNGs

  17. Photoshop • IDE: ExtendScript Toolkit • log actions to .js app .documents[0] .layers .getByName('ha') .visible = true;

  18. Desktop app for Mac, Windows, Linux via XULRunner

  19. More desktop for Windows

  20. lib and exe • DLL • Windows .exe

  21. Native iPhone app with Titanium

  22. Options • Titanium Mobile: • compiles JS to Obj-C • PhoneGap • Runs your JS/HTML(5) • starts with about:blank-likepage • need a JS toolkit, e.g. Sencha Touch or jQuery Mobile to mimic native controls

  23. And more… • Titanium desktop • Mac Widgets • Yahoo Widgets – work on TVs too • Adobe Air • PhoneGap (+Sencha Touch) • Next Windows OS • …

  24. JavaScript everywhere If you're on a deserted island with virtually any device (and infinite battery life) you can still write code and be creative

  25. Just type this URL: javascript:alert(eval(prompt('What?')))

  26. Stoyan Stefanov@stoyanstefanovhttp://phpied.com/files/jseverywhere.zipThank you!

More Related