Java/.NET import(s)
Node.js require
Monday, October 22, 12
Great for
re
requi
abstracting
Monday, October 22, 12
away
re
requi
Not Great for
application
modularity
Monday, October 22, 12
re
requi
Relies on FS
duplicated modules
maps to folder names
Hard to configure module
Monday, October 22, 12
Dependency error handling
coding time compile time run time
!
OM
- BO
KA
- Server crash
- Unhappy customers
- Developer gets fired
Monday, October 22, 12
How to fix it?
Static dependency list Resolve at startup
Named services No FS required
Easy configuration Pass an object
Monday, October 22, 12
P ro g ra m
☑ C l o u d9 ID E?
☑ G row i n g pai n s
☐ I n t ro du c i n g Arc hitec t
☐ Le ss on s le arn e d
Monday, October 22, 12
Architect
github.com/c9/architect
Monday, October 22, 12
Architect
Everything is a plugin
Plugins can consume plugins
An application is just a set of plugins
Monday, October 22, 12
Dependency model
require runtime
Architect compile time
Monday, October 22, 12
Dependency error handling
Architect
coding time compile time run time
- Happy customers
- Fails before release - Developer keeps job
Monday, October 22, 12
Single node.js process
IDE instance IDE instance
(FTP) (SSH)
Other code
(dashboard etc.)
IDE instance IDE instance
(Normal) (Normal)
Monday, October 22, 12