O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Server-side JavaScript for the rest of us

2.846 visualizações

Publicada em

Exploring patterns for using server-side JavaScript along side existing (non-JavaScript) application architectures. In other words, how to use *some* SSJS without rewriting your entire app in JS.

Publicada em: Tecnologia
  • Seja o primeiro a comentar

Server-side JavaScript for the rest of us

  1. 1. Server-side JavaScript For The Rest Of Us Kyle Simpson @getify http://getify.me
  2. 2. Server-side JavaScript node.js Middle-End (BikechainJS)
  3. 3. Pep Talk
  4. 4. Wait... you're not using server-side JavaScript in all your apps?
  5. 5. You haven't replaced Apache with Node.js yet?
  6. 6. You still write PHP/Java/RoR/ Python/C# code on the server?
  7. 7. It's OK. You're just like the rest of us.
  8. 8. Server-side JavaScript Cheat Guide
  9. 9. It's all been done before
  10. 10. JavaScript: engine != environment
  11. 11. You still need a web server* *unless your SSJS environment is a web server
  12. 13. node.js is a special type of JavaScript environment
  13. 14. socket/network/web server + application server
  14. 15. Alternate usage patterns
  15. 16. reverse proxy https://github.com/nodejitsu/node-http-proxy
  16. 17. backend web service php.js? http://phpjs.org
  17. 18. side (bypass) service example: http://goLook.at http://jsno.de/presentations/jsconf2011/#slide6
  18. 19. Middle-End Architecture In between the front-end and the back-end is... the Middle-End
  19. 20. Middle-End? templating, URL routing, data validation, data formatting, ajax, caching, cookies/headers
  20. 23. Why? The Middle-End is meant to bring order to the general dis-order of today's web stack architectures
  21. 24. CVC (vs. MVC) CVC (Clients-Views-Controllers) is an alternate pattern for web application architecture that leverages the Middle-End
  22. 27. CVC Middle-End is not a framework or library... it's the removal of abstractions to expose and control what's already there... better
  23. 28. Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. — Antoine de Saint-Exupery
  24. 29. Middle-End patterns
  25. 30. Wordpress (or any CMS) http://wordpress.org/extend/plugins/json-api/
  26. 31. BikechainJS http://bikechainjs.com
  27. 32. http://shortie.me https://github.com/getify/shortie.me
  28. 33. Server-side JavaScript FTW
  29. 34. Questions?
  30. 35. http://nodejs.org Kyle Simpson @getify http://getify.me http://bikechainjs.com http://middleend.com http://start.middleend.com