Server-side JavaScript for the rest of us


Published on

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.

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Server-side JavaScript for the rest of us

  1. 1. Server-side JavaScript For The Rest Of Us Kyle Simpson @getify
  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
  16. 17. backend web service php.js?
  17. 18. side (bypass) service example:
  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)
  26. 31. BikechainJS
  27. 32.
  28. 33. Server-side JavaScript FTW
  29. 34. Questions?
  30. 35. Kyle Simpson @getify
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.