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
Live with Rails
Search
Oursky Limited
April 09, 2013
Programming
1
110
Live with Rails
My life with Rails and how I avoid it.
Oursky Limited
April 09, 2013
Tweet
Share
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
450
SSH Can
oursky
1
280
HTTP/2
oursky
0
310
watchOS2
oursky
0
280
Common QA issues
oursky
0
170
Complex is better than complicated
oursky
0
260
Clean code again
oursky
3
330
KiriKiri x O2 x NVLMarker
oursky
0
190
Flux + React
oursky
1
350
Other Decks in Programming
See All in Programming
DMMオンラインサロンアプリのSwift化
hayatan
0
270
『改訂新版 良いコード/悪いコードで学ぶ設計入門』活用方法−爆速でスキルアップする!効果的な学習アプローチ / effective-learning-of-good-code
minodriven
29
4.8k
DevFest - Serverless 101 with Google Cloud Functions
tunmise
0
140
Внедряем бюджетирование, или Как сделать хорошо?
lamodatech
0
980
SpringBoot3.4の構造化ログ #kanjava
irof
2
780
富山発の個人開発サービスで日本中の学校の業務を改善した話
krpk1900
3
310
JavaScriptツール群「UnJS」を5分で一気に駆け巡る!
k1tikurisu
8
1.3k
Compose でデザインと実装の差異を減らすための取り組み
oidy
1
240
Moscow Python Meetup №97. Константин Крестников (Техлид команды GigaChain (SberDevices)). GigaChain: Новые инструменты для разработки агентов на примере агента техподдержки
moscowdjango
PRO
0
100
時計仕掛けのCompose
mkeeda
1
200
WebDriver BiDiとは何なのか
yotahada3
1
100
カンファレンス動画鑑賞会のススメ / Osaka.swift #1
hironytic
0
200
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
96
5.3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Fireside Chat
paigeccino
34
3.2k
Side Projects
sachag
452
42k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
GitHub's CSS Performance
jonrohan
1030
460k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
It's Worth the Effort
3n
184
28k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
Transcript
Live with Rails And avoid Rails Rick Mak, Apr 2013
Tuesday, 9 April, 13
Fact Rails is fast on creating MVP Rails is fast
on creating Restful API Rails has many stackoverflow articles. Tuesday, 9 April, 13
Getting big and getting away Rails is slow Test is
Rails is stupidly slow EdwinKwok says Rails is Architecture, not Entity: https://speakerdeck.com/oursky/ clean-code?slide=50 Tuesday, 9 April, 13
Heaven & Hell Tuesday, 9 April, 13
Requirement Both Project and User have quota Project may have
owner If a project has owner, ignore project quota If a project owner quota exceed, consider project quota. User can upgrade his quota Tuesday, 9 April, 13
Your Rails model Project User Project Quota User Quota Tuesday,
9 April, 13
Where is the Logic? Tuesday, 9 April, 13
Fat ActiveRecords Tuesday, 9 April, 13
ActiveSupport::Concern http://blog.codeclimate.com/blog/2012/10/17/7-ways- to-decompose-fat-activerecord-models/ “Any application with an app/concerns directory is
concerning.” Tuesday, 9 April, 13
No Time! I really need test case when it about
$money$ I really need test case when I follow up fat AR. Tuesday, 9 April, 13
No more free project Boss Tuesday, 9 April, 13
Where to change Tuesday, 9 April, 13
Standalone project payment Boss Tuesday, 9 April, 13
My life Tuesday, 9 April, 13
Introduce Quota Project Quota & User Quota is for storage
only All logic belongs to Quota Tuesday, 9 April, 13
Quota is not AR It test against its rspec, it
is fast. One place to edit Tuesday, 9 April, 13
Result Tuesday, 9 April, 13
Architecture matters Around 5 ticket about resource protection against expire/archive/non-owner
will become trivial to fix after introducing Quota. Rails architecture is just a guideline. Tuesday, 9 April, 13