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
130
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
35
3.2k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
320
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.4k
Trust and Teams: GORUCO 2017
rmw
0
250
Becoming an Engineer Leader Panel Intro Slide
rmw
0
310
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
940
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
510
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
920
Tech Talk 101: Topic Generation
rmw
0
390
Other Decks in Technology
See All in Technology
Digitization部 紹介資料
sansan33
PRO
1
5.8k
最近読んで良かった本 / Yokohama North Meetup #10
mktakuya
0
390
AIでデータ活用を加速させる取り組み / Leveraging AI to accelerate data utilization
okiyuki99
6
1.7k
Open Table Format (OTF) が必要になった背景とその機能 (2025.10.28)
simosako
3
620
激動の2025年、Modern Data Stackの最新技術動向
sagara
0
240
SOTA競争から人間を超える画像認識へ
shinya7y
0
680
abema-trace-sampling-observability-cost-optimization
tetsuya28
0
460
SREのキャリアから経営に近づく - Enterprise Risk Managementを基に -
shonansurvivors
1
720
ラスベガスの歩き方 2025年版(re:Invent 事前勉強会)
junjikoide
0
890
JAWS UG AI/ML #32 Amazon BedrockモデルのライフサイクルとEOL対応/How Amazon Bedrock Model Lifecycle Works
quiver
1
750
激動の時代を爆速リチーミングで乗り越えろ
sansantech
PRO
1
250
アノテーション作業書作成のGood Practice
cierpa0905
PRO
1
390
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
57
6k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
2
240
Bash Introduction
62gerente
615
210k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.2k
Testing 201, or: Great Expectations
jmmastey
46
7.7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
658
61k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
Unsuck your backbone
ammeep
671
58k
Being A Developer After 40
akosma
91
590k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
10
900
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!