Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Frontend Choices
Search
Alex Coles
March 16, 2014
Technology
0
210
Frontend Choices
Alex Coles
March 16, 2014
Tweet
Share
More Decks by Alex Coles
See All by Alex Coles
How a language reflects its people (Brighton Ruby)
myabc
0
78
How a language reflects its people
myabc
0
72
Taking Rails beyond the asset pipeline (Workshop at RubyDay Italia)
myabc
0
39
Rails: beyond the asset pipeline (RubyC)
myabc
0
96
Frontend Choices (Tropical Ruby)
myabc
1
640
Frontend Choices (RubyConf Portugal)
myabc
1
330
Frontend Choices
myabc
0
45
Putting the Hype back in Hypermedia
myabc
1
220
DataMapper
myabc
2
200
Other Decks in Technology
See All in Technology
株式会社EventHub・エンジニア採用資料
eventhub
0
1.9k
[2024年3月版] Databricksのシステムアーキテクチャ
databricksjapan
8
1.9k
テストプロセスで大事にしていること #jasstnano
makky_tyuyan
0
110
ここが嬉しいABAC ここが辛いよABAC #再解説+補足編
masahirokawahara
0
220
Garoon 開発チーム / Garoon development team
cybozuinsideout
PRO
2
2.9k
DevOpsメトリクスとアウトカムの接続にトライ!開発プロセスを通して計測できるメトリクスの活用方法
ham0215
1
190
AIQ株式会社 エンジニア向け会社紹介資料
aiqlab
0
370
Janus
bkuhlmann
1
490
ChatGPT for IT Service Management (IT Pro)
dahatake
2
130
長期運用プロジェクトでのMySQLからTiDB移行の検証
colopl
2
660
Signals Unleashed: The Full Guide
rainerhahnekamp
0
360
Terraformあれやこれ/terraform-this-and-that
emiki
4
340
Featured
See All Featured
Building Adaptive Systems
keathley
30
1.8k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
119
38k
A designer walks into a library…
pauljervisheath
199
23k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
The Language of Interfaces
destraynor
151
23k
The Invisible Customer
myddelton
114
12k
The Mythical Team-Month
searls
215
42k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
In The Pink: A Labor of Love
frogandcode
138
21k
Raft: Consensus for Rubyists
vanstee
132
6.2k
Transcript
Frontend choices Alex Coles | wroc_love.rb, Wrocław, Polska
Anti-climax
front end vs. frontend
Not really about choice
‘I’m a backend guy living in a frontend world’
About me
@myabc Alex Coles Berlin, Germany Finn GmbH
OpenProject openproject.org
1..2..3
eurucamp eurucamp.org Call for Papers open until 1st May
1..2..3
jeden one: background
Single page v traditional HTML
SPA depends on your content
no kupa, Sherlock
What’s your content? Information Pages Membership sites Closed Systems
Content Criteria • Authentication • Caching • Indexing (SEO) •
curated Content vs Dynamic
dwa two: where we are now
History of the Rails Interface
“Rails is so 2005”
“Rails Way” back in 2005 • Server Generated HTML (ERB,
etc.) • Prototype • Scriptaculous • RJS
“Rails Way” now • Server Generated HTML (ERB, Slim, HAML
etc.) • jQuery • jQuery UI • Server generated JavaScript Responses (SJR)
Where we are now
JavaScript is HUGE
No backend nobackend.org
Hoodie hood.ie
Meteor www.meteor.com
but I <3 Ruby
So here’s the question
None
Room for Rails?
The Rails Way
– Marcin Stecki @madsheep at wroc_love.rb “Not his [DHH]'s responsibility
to tell us how to do these things.”
Frontend frameworks
Frontend (MV*) frameworks • AngularJS • Ember.js • KnockoutJS
Frontend (component) frameworks • ReactJS • Backbone.View (alone) • ExtJS
TodoMVC todomvc.com
KnockoutJS
AngularJS
Ember.js
What is most like Rails?
Ember.js is most like Rails • Everything should inherit from
Ember.Object (think ActiveRecord::Base.inherited) • Routing DSL • Vocabulary (templates, partials, etc.)
trzy three: practical usage
Using asset pipeline / sprockets
Use Bower
gem install bower-rails
Rails 4 (Sprockets 2+)
config.assets.paths << File.join(Rails.root, 'vendor', 'assets', ‘components')
ember-rails-api github.com/dockyard/ember-appkit-rails
None
What is the way forward?
Split Completely
Two applications: one API, one frontend
Rails or Sinatra for API A JS workflow for Frontend
Surprisingly testable (and fast)
Dzięki!
Questions?
@myabc