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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Rebecca Miller-Webster
April 03, 2013
Technology
170
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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.6k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
370
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.6k
Trust and Teams: GORUCO 2017
rmw
0
310
Becoming an Engineer Leader Panel Intro Slide
rmw
0
370
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
1k
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
560
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
990
Tech Talk 101: Topic Generation
rmw
0
460
Other Decks in Technology
See All in Technology
環境凍結という Toil を倒す -セルフサービス型 Ephemeral テスト環境の 設計と実践
shirouz
1
2.4k
完全自律ロボットを作りたくて、先に開発を自律させた話(ROS Japan UG #63 LT)
rryz09
0
600
CDKで書くECSのベストプラクティス、 改めて考え直す2026 #cdkconf2026
makies
0
420
大量データに対しても、生成AIを用いてリーズナブルにデータ加工をしたい!Databricksのai_queryについて調べてみた
kamoshika
1
150
AI Coding Agent時代のcdk-nagガードレール 〜組織ルールを強制CIで守り抜く設計の挑戦〜
mhrtech
3
210
ヘルスケア領域における AI 活用と その安全性担保のための取り組み (Leveraging AI in Healthcare and Our Efforts to Ensure Its Safety) - Google I/O Extended Tokyo 2026, July 11, 2026
zettaittenani
0
380
Road to SRE NEXTの今までとこれから
hiroyaonoe
0
330
ソニー銀行におけるビジネスアジリティ向上のためのクラウドシフト戦略
srenext
0
270
DatabricksにおけるMCPソリューション
taka_aki
1
250
美しいコードを書くためにF#を学んでみた話
yud0uhu
1
420
SREとQA 二人三脚で進めるSLO運用/sre-qa-slo
sugitak
0
610
型は壁、Rustでもバグを直すな、表現できなくせよ
nwiizo
13
2.1k
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
870
SEO for Brand Visibility & Recognition
aleyda
0
4.6k
Deep Space Network (abreviated)
tonyrice
0
220
エンジニアに許された特別な時間の終わり
watany
107
250k
Why Our Code Smells
bkeepers
PRO
340
58k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Design in an AI World
tapps
1
260
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
500
Scaling GitHub
holman
464
140k
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!