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
460
SSH Can
oursky
1
280
HTTP/2
oursky
0
310
watchOS2
oursky
0
290
Common QA issues
oursky
0
180
Complex is better than complicated
oursky
0
260
Clean code again
oursky
3
340
KiriKiri x O2 x NVLMarker
oursky
0
200
Flux + React
oursky
1
360
Other Decks in Programming
See All in Programming
『テスト書いた方が開発が早いじゃん』を解き明かす #phpcon_nagoya
o0h
PRO
9
2.6k
Jakarta EE meets AI
ivargrimstad
0
680
Amazon Bedrockマルチエージェントコラボレーションを諦めてLangGraphに入門してみた
akihisaikeda
1
160
From the Wild into the Clouds - Laravel Meetup Talk
neverything
0
180
AWS Step Functions は CDK で書こう!
konokenj
5
910
CDK開発におけるコーディング規約の運用
yamanashi_ren01
2
260
コードを読んで理解するko build
bells17
1
120
CloudNativePGを布教したい
nnaka2992
0
120
Honoとフロントエンドの 型安全性について
yodaka
7
1.5k
Datadog DBMでなにができる? JDDUG Meetup#7
nealle
0
160
Datadog Workflow Automation で圧倒的価値提供
showwin
1
310
ナレッジイネイブリングにAIを活用してみる ゆるSRE勉強会 #9
nealle
0
170
Featured
See All Featured
How GitHub (no longer) Works
holman
314
140k
Designing Experiences People Love
moore
140
23k
Code Reviewing Like a Champion
maltzj
521
39k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Building a Scalable Design System with Sketch
lauravandoore
461
33k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
The Cost Of JavaScript in 2023
addyosmani
47
7.5k
How STYLIGHT went responsive
nonsquared
99
5.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
Measuring & Analyzing Core Web Vitals
bluesmoon
6
260
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