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
71
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
26
2.3k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
180
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1k
Trust and Teams: GORUCO 2017
rmw
0
150
Becoming an Engineer Leader Panel Intro Slide
rmw
0
180
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
620
Frameworks for Feedback (2015 May - RailsConf)
rmw
1
390
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
800
Tech Talk 101: Topic Generation
rmw
0
280
Other Decks in Technology
See All in Technology
Domain-driven Design: A Complete Example
ewolff
2
250
Observabilityジャーニーを実現するためのAWSサービス:CloudWatch編
o11yfes2023
0
140
OPENLOGI Company Profile for engineer
hr01
1
2.1k
パフォーマンス最適化のベストプラクティス
databricksjapan
0
200
QA経験のないエンジニアリング マネージャーがQAのカジュアル面談に出て 苦労していること・気づいたこと / scrum fest niigata 2024
yoshikiiida
2
650
エンジニアゼロの組織から内製開発の DX をどう実現したのか / How did we achieve DX in in-house development in an organization with zero engineers?
genkiogasawara
6
2.9k
#phpconkagawa レガシーコードにもオブザーバビリティを 〜少しずつ始めるサービス監視〜
yamato_sorariku
0
530
5分で分かる(かもしれない) Vector engine for OpenSearch Serverless
tsukuboshi
1
400
LINEヤフーのウェブアクセシビリティ
lycorptech_jp
PRO
1
130
ハードウェアを動かすTypeScriptの世界
9wick
3
1.2k
AI JIMY - 登壇(インストール編)
hanacchi
0
150
Password cracking: past, present, future
openwall
0
240
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
226
17k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Designing Experiences People Love
moore
136
23k
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
123
39k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
34
6.1k
Building an army of robots
kneath
300
41k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
Faster Mobile Websites
deanohume
300
30k
4 Signs Your Business is Dying
shpigford
176
21k
Product Roadmaps are Hard
iamctodd
45
9.8k
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!