35
Rise of the Middle End Kyle Simpson @getify [email protected] om http:// getify.me #middleend

Rise of the Middle End

Embed Size (px)

DESCRIPTION

We all know that web performance optimization is becoming critical to the success of web sites and applications. The problem is, we often don’t have the control over the UI Architecture (“middle-end”) that we need to really make things better.We’ll talk about how to use JavaScript (client- and server-side) to revamp the middle-end so we can throttle web performance (and code maintainability) to the next level.

Citation preview

Page 1: Rise of the Middle End

Rise of the

Middle End

Kyle Simpson@getify

[email protected]

http://getify.me

#middleend

Page 2: Rise of the Middle End

document.write()

MustDie

Page 3: Rise of the Middle End

IEMustFork

http://IEmustFork.com

Page 4: Rise of the Middle End

— Agnieszka Gasparska

Page 5: Rise of the Middle End

Every block of stone has a statue inside it and it is the task of the sculptor to discover it.

— Michelangelo

Page 6: Rise of the Middle End

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.

— Antoine de Saint-Exupery

Page 7: Rise of the Middle End

in between the FRONT end and the BACK end is…

UI Architecture

the MIDDLE end

Page 8: Rise of the Middle End

how the back end packages for, delivers to, and communicates with the front end

UI Architecture

Page 9: Rise of the Middle End

templating, URL routing, data validation, data formatting, data transport, caching, cookies, headers, resource packaging

UI Architecture

Page 10: Rise of the Middle End
Page 11: Rise of the Middle End

ui architecture

Page 12: Rise of the Middle End
Page 13: Rise of the Middle End

MVC

Page 14: Rise of the Middle End
Page 15: Rise of the Middle End

motivate me

Page 16: Rise of the Middle End

Performance Optimization

Page 17: Rise of the Middle End

DRY

Page 18: Rise of the Middle End

Code Organization

Page 19: Rise of the Middle End

CVC

clients views controllers

Page 20: Rise of the Middle End
Page 21: Rise of the Middle End

ui architecture

Page 22: Rise of the Middle End

Smart Resource Packaging

Page 23: Rise of the Middle End

Multi-part Responses

Page 24: Rise of the Middle End

Result Set Pagination

Page 25: Rise of the Middle End

Atomic Operation Caching

Page 26: Rise of the Middle End

Independent Tier Scaling

Page 27: Rise of the Middle End

clients

each piece is a client of every other piece

Page 28: Rise of the Middle End

views

templated, portable, reusable

Page 29: Rise of the Middle End

controllers

small, decoupled, extensible

Page 30: Rise of the Middle End

Server-side JavaScript

Page 31: Rise of the Middle End

Node.js… and?

Page 32: Rise of the Middle End

BikechainJS

V8“engine

”modul

es

Page 33: Rise of the Middle End

HandlebarJS

templating engineJSON inputtext output

{ }

Page 34: Rise of the Middle End

demo

code

http://shortie.me

http://shortie.me/!code

Page 35: Rise of the Middle End

http://shortie.me/!rate

http://github.com/getify/shortie.me

please provide feedback!!!!

Kyle Simpson@[email protected]://getify.me

#middleend

http://shortie.me/!front

http://MiddleEnd.com

Gimme More