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
140
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.4k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
340
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.5k
Trust and Teams: GORUCO 2017
rmw
0
280
Becoming an Engineer Leader Panel Intro Slide
rmw
0
340
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
990
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
540
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
960
Tech Talk 101: Topic Generation
rmw
0
430
Other Decks in Technology
See All in Technology
複数クラスタ運用と検索の高度化:ビズリーチにおけるElastic活用事例 / ElasticON Tokyo2026
visional_engineering_and_design
0
110
非情報系研究者へ送る Transformer入門
rishiyama
9
6.8k
Agentic Software Modernization - Back to the Roots (Zürich Agentic Coding and Architectures, März 2026)
feststelltaste
1
230
vLLM Community Meetup Tokyo #3 オープニングトーク
jpishikawa
0
280
[AEON TECH HUB #24] お客様の長期的興味の理解に向けて
alpicola
0
130
Claude Codeが爆速進化してプラグイン追従がつらいので半自動化した話 ver.2
rfdnxbro
0
480
Datadog の RBAC のすべて
nulabinc
PRO
3
420
AIファーストを前提とした開発スタイルの変化
sbtechnight
0
270
Kubernetesにおける推論基盤
ry
1
250
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
11k
JAWS Days 2026 楽しく学ぼう! 認証認可 入門/20260307-jaws-days-novice-lane-auth
opelab
10
1.7k
僕、S3 シンプルって名前だけど全然シンプルじゃありません よろしくお願いします
yama3133
1
170
Featured
See All Featured
Thoughts on Productivity
jonyablonski
75
5.1k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
280
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
89
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
530
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
670
Documentation Writing (for coders)
carmenintech
77
5.3k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
150
My Coaching Mixtape
mlcsv
0
69
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!