Server-side JavaScript for the rest of us
Upcoming SlideShare
Loading in...5
×
 

Server-side JavaScript for the rest of us

on

  • 2,725 views

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.

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.

Statistics

Views

Total Views
2,725
Views on SlideShare
2,718
Embed Views
7

Actions

Likes
1
Downloads
23
Comments
0

1 Embed 7

http://www.linkedin.com 7

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Server-side JavaScript for the rest of us Server-side JavaScript for the rest of us Presentation Transcript

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