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
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
270
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
Data Hubグループ 紹介資料
sansan33
PRO
0
2.8k
LINEアプリ開発のための Claude Code活用基盤の構築
lycorptech_jp
PRO
2
1.4k
製造業ドメインにおける LLMプロダクト構築: 複雑な文脈へのアプローチ
caddi_eng
1
450
Windows ネットワークを再確認する
murachiakira
PRO
0
260
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
44k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
14k
Master Dataグループ紹介資料
sansan33
PRO
1
4.4k
Webアクセシビリティ技術と実装の実際
tomokusaba
0
210
【SLO】"多様な期待値" と向き合ってみた
z63d
2
310
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
A Gentle Introduction to Transformers
keio_smilab
PRO
1
120
Eight Engineering Unit 紹介資料
sansan33
PRO
1
6.9k
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
63
The Spectacular Lies of Maps
axbom
PRO
1
580
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
140
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
400
Designing for Performance
lara
611
70k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
810
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
80
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
620
Leo the Paperboy
mayatellez
4
1.5k
Chasing Engaging Ingredients in Design
codingconduct
0
130
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!