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
74
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
29
2.5k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
210
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.1k
Trust and Teams: GORUCO 2017
rmw
0
170
Becoming an Engineer Leader Panel Intro Slide
rmw
0
200
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
700
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
410
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
820
Tech Talk 101: Topic Generation
rmw
0
300
Other Decks in Technology
See All in Technology
Luupの開発組織におけるインシデントマネジメントの変遷 ver.RoadtoSRENEXT2024
grimoh
1
270
LINE WORKSへ簡単通知!Incoming Webhookアプリの紹介
mmclsntr
0
110
テスト・設計研修【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
170
Amazon FSx for NetApp ONTAPのパフォーマンスチューニング要素をまとめてみた #cm_odyssey #devio2024
non97
0
220
JBUG岡山 #6 WordCamp男木島の チームビルディング
takeshifurusato
0
150
クラウド利用者の「責任」をどう果たす?AWSセキュリティ対策のススメ #AWSSummit
hiashisan
0
280
What if...? 처음부터 다시 LLM 어플리케이션을 개발한다면
huffon
0
1k
頼られるのが大好きな 皆さんへ - 支援相手との期待の合わせ方、突き放し方 -/For_people_who_like_to_be_relied_on
naitosatoshi
1
290
[NIKKEI Tech Talk] KDDI/KAG Scrum & Community for Engineering Training
curanosuke
2
220
ABEMAにおけるLLMを用いたコンテンツベース推薦システム導入と効果検証
cyberagentdevelopers
PRO
1
730
Datadog Cloud SIEMを使ってAWS環境の脅威を可視化した話/lifeistech-datadog-cloud-siem
gidajun
0
480
[2024最新版]AWS Control Towerを使ったセキュアなマルチアカウント環境の作り方
hiashisan
0
270
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1362
200k
The World Runs on Bad Software
bkeepers
PRO
63
11k
Clear Off the Table
cherdarchuk
89
320k
Teambox: Starting and Learning
jrom
130
8.6k
Learning to Love Humans: Emotional Interface Design
aarron
269
39k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
23
1.9k
WebSockets: Embracing the real-time Web
robhawkes
59
7.2k
Docker and Python
trallard
37
2.9k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
149
45k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
36
9.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
325
21k
Building Flexible Design Systems
yeseniaperezcruz
323
37k
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!