Professional Documents
Culture Documents
I’m Dave
UI/UX Lead and
Software Engineer
Acteksoft, Inc.
RESTful
http://www.myapp.com/WarRootDirec
tory1/ServletsOnAMoFoPlane?
sessionId=x81ndj38avngjLOLdxpanew
q&action=New&Mykel=Alvis&entityId
=1299124&processName=UnladenSwall
owComputation&role=peon&date=03%2
F01%2F/1999&flagSettings=01010111
0110&returnPage=/ServletsOnA...
Oh.
http://www.myapp.com/Users/create
Oh.
Play is
Stateless
Ok, so you get a request
And you get the session
We still good?
Ok, gimme the user
And some other stuff (dont judge)
NULL
Modular
Meet <JavaWebFramework>
It does everything you will ever need
Until this comes along
And more
And more
And more
Until this comes along
But can’t I just import a library
But can’t I just import a library
Refactor my design to support it
But can’t I just import a library
Refactor my design to support it
Maybe write some glue code
But can’t I just import a library
Refactor my design to support it
Maybe write some glue code
Throw in a few unit tests
But can’t I just import a library
Refactor my design to support it
Maybe write some glue code
Throw in a few unit tests
Add it all to my build
But can’t I just import a library
Refactor my design to support it
Maybe write some glue code
Throw in a few unit tests
Add it all to my build
Speed is important,
Modularity is important.
Play is also
Pure Java
Focused on productivity
Easy to test
Great at error reporting
Built for the web
Coding Demo
import mac.osx
It`s tough in the trenches
Just gotta survive
Takeaway Lessons
Keepin it IRL
REST
Creates simplicity
Lets you think it terms
of resources, more
understandable and
readable.
Promotes
loose coupling.
Fully realizes the
meaning of HTTP as a
protocol not just a
transport.
Stateless
Scales
Remove complexity
by using a cache
instead of a session
Forces you to be
explicit, improving
visibility in your code.
State is harder to test
and can create
unreliable code.
Usability
Isn’t just for interfaces
Make your APIs
simpler to learn and to
use.
Features are nice, but
they should empower
not distract.
Don`t undervalue
things that
Just Work.
Most importantly...