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
210
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
160
Flux + React
oursky
1
330
Other Decks in Programming
See All in Programming
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
270
Rails と人魚の話/rails-and-mermaid
sanfrecce_osaka
0
100
[技育CAMPアカデミア]アイディアを形に!【超入門】スマホアプリ開発〜リリースまでの流れをご紹介
teamlab
PRO
0
360
Random\Randomizer クラスで日常のあれこれを解決しよう! / Random\Randomizer class solves familiar trouble
cocoeyes02
0
200
Front-end application development, Symfony-style(s)
dunglas
2
2k
入門 AWS Amplify Gen2 / Introduction to AWS Amplify Gen2
genkiogasawara
1
330
Fragment Composition of GraphQL
quramy
3
380
スキーマ駆動開発による品質とスピードの両立 - 私達は何故、スキーマを書くのか
kentaroutakeda
0
170
⼤規模⾔語モデルの拡張(RAG)が 終わったかも知れない件について
nearme_tech
23
15k
Netty Chicago Java User Group 2024-04-17
sullis
0
170
Goのエラースタックトレースの歴史と今後
sonatard
7
1.1k
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
Featured
See All Featured
Become a Pro
speakerdeck
PRO
11
4.5k
Product Roadmaps are Hard
iamctodd
44
9.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
Optimising Largest Contentful Paint
csswizardry
8
2.4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
60
14k
It's Worth the Effort
3n
180
27k
Adopting Sorbet at Scale
ufuk
68
8.6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
14
1.5k
Clear Off the Table
cherdarchuk
84
310k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
78
42k
Being A Developer After 40
akosma
57
580k
A Modern Web Designer's Workflow
chriscoyier
689
190k
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