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
100
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
430
SSH Can
oursky
1
250
HTTP/2
oursky
0
290
watchOS2
oursky
0
220
Common QA issues
oursky
0
150
Complex is better than complicated
oursky
0
230
Clean code again
oursky
3
310
KiriKiri x O2 x NVLMarker
oursky
0
170
Flux + React
oursky
1
330
Other Decks in Programming
See All in Programming
Open standards for building event-driven applications in the cloud
meteatamel
0
240
スタックトレース始めてみた
kuro_kurorrr
5
1.2k
SaaSを作るという仕事について
fujimura
2
440
otelcol receiver 自作RTA / Pepabo Tech Conference #22 春のSREまつり
arthur1
0
1.1k
RustでAWS Lambda functionをいい感じに書く
taiki45
2
160
RubyGems on ruby.wasm
kateinoigakukun
0
180
TSKaigi 2024 - 新サービス Progate Path の演習で TypeScript を採用して見えた教材観点からの利点と課題
makotoshimazu
1
230
TypeScriptのパフォーマンス改善
yajihum
14
5.3k
教えて!スクラムコーチ品質とスピードのバランスはどうすりゃいいの?
pinboro
0
170
WinActorの勉強を継続する方法
tamai_63
0
130
Vanilla JavaScript はマルチプラットフォームの夢を見るか
mitsuharu
0
100
Upgrading Legacy to the Latest PHP Version
afilina
PRO
0
110
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
8
3.5k
Done Done
chrislema
178
15k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
Producing Creativity
orderedlist
PRO
338
39k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
21
2k
Optimising Largest Contentful Paint
csswizardry
13
2.4k
How STYLIGHT went responsive
nonsquared
92
4.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
22
6.5k
Six Lessons from altMBA
skipperchong
22
3k
Building an army of robots
kneath
300
42k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.7k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
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