Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
130
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.3k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
330
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.4k
Trust and Teams: GORUCO 2017
rmw
0
250
Becoming an Engineer Leader Panel Intro Slide
rmw
0
320
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
970
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
520
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
930
Tech Talk 101: Topic Generation
rmw
0
410
Other Decks in Technology
See All in Technology
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
9.9k
意外と知らない状態遷移テストの世界
nihonbuson
PRO
1
210
AI時代のワークフロー設計〜Durable Functions / Step Functions / Strands Agents を添えて〜
yakumo
3
2k
ソフトウェアエンジニアとAIエンジニアの役割分担についてのある事例
kworkdev
PRO
0
150
ペアーズにおけるAIエージェント 基盤とText to SQLツールの紹介
hisamouna
2
1.5k
AI駆動開発の実践とその未来
eltociear
1
480
ExpoのインダストリーブースでみたAWSが見せる製造業の未来
hamadakoji
0
190
Knowledge Work の AI Backend
kworkdev
PRO
0
140
Snowflake導入から1年、LayerXのデータ活用の現在 / One Year into Snowflake: How LayerX Uses Data Today
civitaspo
0
2.2k
Entity Framework Core におけるIN句クエリ最適化について
htkym
0
110
Bedrock AgentCore Evaluationsで学ぶLLM as a judge入門
shichijoyuhi
1
160
Amazon Bedrock Knowledge Bases × メタデータ活用で実現する検証可能な RAG 設計
tomoaki25
6
2.2k
Featured
See All Featured
Code Review Best Practice
trishagee
74
19k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Bash Introduction
62gerente
615
210k
Unsuck your backbone
ammeep
671
58k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
How to train your dragon (web standard)
notwaldorf
97
6.4k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
110
Applied NLP in the Age of Generative AI
inesmontani
PRO
3
2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
130
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
sira's awesome portfolio website redesign presentation
elsirapls
0
89
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!