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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Rebecca Miller-Webster
April 03, 2013
Technology
150
2
Share
Cleaning up your views
Rebecca Miller-Webster
April 03, 2013
More Decks by Rebecca Miller-Webster
See All by Rebecca Miller-Webster
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
360
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.5k
Trust and Teams: GORUCO 2017
rmw
0
290
Becoming an Engineer Leader Panel Intro Slide
rmw
0
360
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
1k
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
550
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
980
Tech Talk 101: Topic Generation
rmw
0
440
Other Decks in Technology
See All in Technology
JaSSTに関わることで変わった人生観 #jasstnano
makky_tyuyan
0
150
開発サイクルのボーダーレス化に伴う組織変革から学んだこと / Organizational Transformation Amid the Borderless Development Cycle
mii3king
0
290
AIのために、AIを使った、Effect-TSからの脱却 〜テストを活用した安全なリファクタリングの進め方〜
bitkey
PRO
0
130
TSKaigi 2026 - enumよ、さようなら
teamlab
PRO
1
160
Gaussian Splattingの実用化 - 映像制作への展開
gpuunite_official
0
200
O'Reilly Infrastructure & Ops Superstream: Platform Engineering for Developers, Architects & the Rest of Us
syntasso
0
300
AI対話分析の夢と、汚いデータの現実 Looker / Dataplex / Dataform で実現する品質ファーストな基盤設計
waiwai2111
0
660
サプライチェーン攻撃への備えについて考えている #湘なんか
stefafafan
1
1.4k
業務に残された「良くない型」で考える「TypeScriptの難しさ」
sajikix
2
580
コーディングエージェントはTypeScriptの 型エラーをどう自己修正しているのか
melonps
2
130
AI飲み会幹事エージェントを作っただけなのに
ykimi
0
240
AWSアップデートから考える継続的な運用改善
toru_kubota
2
310
Featured
See All Featured
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
510
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
240
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
200
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
700
Claude Code のすすめ
schroneko
67
220k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
200
Prompt Engineering for Job Search
mfonobong
0
300
Designing Experiences People Love
moore
143
24k
The Invisible Side of Design
smashingmag
302
52k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
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!