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
Cleaning up your views
Search
Rebecca Miller-Webster
April 03, 2013
Technology
2
87
Cleaning up your views
Rebecca Miller-Webster
April 03, 2013
Tweet
Share
More Decks by Rebecca Miller-Webster
See All by Rebecca Miller-Webster
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
240
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.2k
Trust and Teams: GORUCO 2017
rmw
0
200
Becoming an Engineer Leader Panel Intro Slide
rmw
0
240
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
810
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
440
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
860
Tech Talk 101: Topic Generation
rmw
0
320
Other Decks in Technology
See All in Technology
GraphRAGを用いたLLMによるパーソナライズド推薦の生成
naveed92
0
190
データ活用促進のためのデータ分析基盤の進化
takumakouno
2
120
SREの組織類型に応じた リーダシップの考察
kenta_hi
PRO
0
570
コンテナのトラブルシューティング目線から AWS SAW についてしゃべってみる
kazzpapa3
1
120
10分でわかるfreee エンジニア向け会社説明資料
freee
18
520k
State of Open Source Web Mapping Libraries
dayjournal
0
200
Mini Tokyo 3D × PLATEAU - 公共交通デジタルツインにリアルな風景を
nagix
1
230
Shift-from-React-to-Vue
calm1205
4
1.6k
Deno+JSRでパッケージを作って公開する
askua
0
100
AI機能の開発運用のリアルと今後のリアル
akiroom
0
230
End of Barrel Files: New Modularization Techniques with Sheriff
rainerhahnekamp
0
270
「視座」の上げ方が成人発達理論にわかりやすくまとまってた / think_ perspective_hidden_dimensions
shuzon
2
15k
Featured
See All Featured
Done Done
chrislema
181
16k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
390
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
What's new in Ruby 2.0
geeforr
343
31k
Adopting Sorbet at Scale
ufuk
73
9.1k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Transcript
Cleaning up views with Decorators & Helpers Rebecca Miller-Webster
None
None
• logic in views is harder to test • views
are difficult to reason about Problem: Our Views are messy WTF is happening here??
Decorators & Helpers WHEN SHIT GETS COMPLICATED
Decorators Logic moves with the OBJECT Helpers Logic moves with
the VIEW
This
TO
How?
Generate classes
None
Generate Copy
Encapsulate repetition in partials Sometimes zero Sometimes one Sometimes two
None
Generate html attributes From TO WITH
Thank you!