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
360
Other Decks in Technology
See All in Technology
Microsoft の SSE の現在地
skmkzyk
0
180
JPOUG Tech Talk #12 UNDO Tablespace Reintroduction
nori_shinoda
2
160
PdM採用とAIの製品活用を同時に頑張ってみた話 / EM oasis 20250418
rakus_dev
0
120
SnowflakeとDatabricks両方でRAGを構築してみた
kameitomohiro
1
490
AIエージェント開発手法と業務導入のプラクティス
ykosaka
9
2.3k
Making a MIDI controller device with PicoRuby/R2P2 (RubyKaigi 2025 LT)
risgk
1
330
LiteXとオレオレCPUで作る自作SoC奮闘記
msyksphinz
0
810
Cross Data Platforms Meetup LT 20250422
tarotaro0129
1
800
Cursor AgentによるパーソナルAIアシスタント育成入門―業務のプロンプト化・MCPの活用
os1ma
15
5.9k
Dataverseの検索列について
miyakemito
1
130
4/17/25 - CIJUG - Java Meets AI: Build LLM-Powered Apps with LangChain4j (part 2)
edeandrea
PRO
0
140
品質文化を支える小さいクロスファンクショナルなチーム / Cross-functional teams fostering quality culture
toma_sm
0
150
Featured
See All Featured
Designing Experiences People Love
moore
142
24k
A Tale of Four Properties
chriscoyier
158
23k
Into the Great Unknown - MozCon
thekraken
38
1.7k
How to Think Like a Performance Engineer
csswizardry
23
1.5k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.5k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.4k
Practical Orchestrator
shlominoach
187
11k
The Language of Interfaces
destraynor
157
25k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.8k
Being A Developer After 40
akosma
91
590k
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!