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
110
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
34
2.9k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
280
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.3k
Trust and Teams: GORUCO 2017
rmw
0
230
Becoming an Engineer Leader Panel Intro Slide
rmw
0
290
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
890
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
480
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
900
Tech Talk 101: Topic Generation
rmw
0
370
Other Decks in Technology
See All in Technology
PostgreSQL Log File Mastery: Optimizing Database Performance Through Advanced Log Analysis
shiviyer007
PRO
1
150
企業が押さえるべきMCPの未来
takaakikakei
0
260
CodeRabbitと過ごした1ヶ月 ─ AIコードレビュー導入で実感したチーム開発の進化
mitohato14
1
230
AIでめっちゃ便利になったけど、結局みんなで学ぶよねっていう話
kakehashi
PRO
1
520
クラウドネイティブ環境の脅威モデリング
kyohmizu
1
290
ガバクラのAWS長期継続割引 ~次の4/1に慌てないために~
hamijay_cloud
1
580
Notion x ポストモーテムで広げる組織の学び / Notion x Postmortem
isaoshimizu
1
150
社会人力と研究力ー博士号をキャリアの武器にするー
kentaro
2
100
Web Intelligence and Visual Media Analytics
weblyzard
PRO
1
6k
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
5.4k
LT Slide 2025-04-22
takesection
0
110
コードや知識を組み込む / Incorporating Codes and Knowledge
ks91
PRO
0
160
Featured
See All Featured
Bash Introduction
62gerente
612
210k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
5
590
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
41
2.3k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Speed Design
sergeychernyshev
29
920
Java REST API Framework Comparison - PWX 2021
mraible
31
8.5k
For a Future-Friendly Web
brad_frost
177
9.7k
A Modern Web Designer's Workflow
chriscoyier
693
190k
What's in a price? How to price your products and services
michaelherold
245
12k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
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!