4. The Rails Code Camp is not for complete
beginners, each participant must have at
least some programming background and
familiarity with model-view-controller
architecture.
5. The Rails Code Camp is not for complete
beginners, each participant must have at
least some programming background and
familiarity with model-view-controller
architecture.
We aren't joking.
6. And yeah, you'll probably be
screwed if you also lied
about installing Rails 4.0.
22. 2006
Easy to Write WRONG
and programmers were writing
wrong:
No structure
●
Single pages doing many things
●
etc.
●
23. Common Layers in an
Information System Logical Architecture
http://en.wikipedia.org/wiki/Common_layers_in_an_information_system_logical_architecture
Presentation Layer
Application Layer
Business Layer
Infrastructure Layer
73. MVC Web App Structure
Router
/app/controllers/
/app/models/
/app/views/
/config/routes.rb
/config/database.yml
/db/
/public/
View
Controller
Model
74. MVC Web App Structure
Router
/app/controllers/
/app/models/
/app/views/
/config/routes.rb
/config/database.yml
/db/
/public/
View
Controller
Model
75. Representational State
Transfer (REST)
Prefix Verb
posts GET
POST
new_post GET
edit_post GET
post GET
PATCH
PUT
DELETE
URI Pattern
/posts(.:format)
/posts(.:format)
/posts/new(.:format)
/posts/:id/edit(.:format)
/posts/:id(.:format)
/posts/:id(.:format)
/posts/:id(.:format)
/posts/:id(.:format)
Controller#Action
posts#index
posts#create
posts#new
posts#edit
posts#show
posts#update
posts#update
posts#destroy
76. MVC Web App Structure
Router
/app/controllers/
/app/models/
/app/views/
/config/routes.rb
/config/database.yml
/db/
/public/
View
Controller
Model
77. MVC Web App Structure
Router
/app/controllers/
/app/models/
/app/views/
/config/routes.rb
/config/database.yml
/db/
/public/
View
Controller
Model
78. MVC Web App Structure
Router
/app/controllers/
/app/models/
/app/views/
/config/routes.rb
/config/database.yml
/db/migrate/
/public/
View
Controller
Model
79. MVC Web App Structure
Router
/app/controllers/
/app/models/
/app/views/
/config/routes.rb
/config/database.yml
/db/migrate/
/public/
View
Controller
Model
80. ActiveRecord models have, by
default, a integer primary key "id"
and two timestamps "created_at"
and "updated_at".
All three are automatically
managed by ActiveRecord.
100. What we haven't covered:
●
Associations - table joins made simple
101. What we haven't covered:
●
Associations - table joins made simple(?)
102. What we haven't covered:
●
Associations - table joins made simple(?)
●
Gems - plugins, libraries, and Bundler
103. What we haven't covered:
Associations - table joins made simple(?)
●
Gems - plugins, libraries, and Bundler
●
Testing - code that tells you what's broken
●
104. What we haven't covered:
Associations - table joins made simple(?)
●
Gems - plugins, libraries, and Bundler
●
Testing - code that tells you what's broken
●
Asset Pipeline - serve compressed and up-todate assets in production
●
105. What we haven't covered:
Associations - table joins made simple(?)
●
Gems - plugins, libraries, and Bundler
●
Testing - code that tells you what's broken
●
Asset Pipeline - serve compressed and up-todate assets in production
●
Deployment - deploy with only one command
●
106. What we haven't covered:
Associations - table joins made simple(?)
●
Gems - plugins, libraries, and Bundler
●
Testing - code that tells you what's broken
●
Asset Pipeline - serve compressed and up-todate assets in production
●
Deployment - deploy with only one command
●
Ruby itself!!!
●
107. What we haven't covered:
Associations - table joins made simple(?)
●
Gems - plugins, libraries, and Bundler
●
Testing - code that tells you what's broken
●
Asset Pipeline - serve compressed and up-todate assets in production
●
Deployment - deploy with only one command
●
Ruby itself!!!
●
and so on...
●
113. Rails Culture
The personalities
●
Our attitude towards code
●
Our attitude towards work
●
How the hell does a "slow" framework that
doesn't work well on Windows get such a high
market demand for developers?!?!
●