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
27
2.4k
Trust & Teams: 2019 Chicago CTO Summit
rmw
2
190
Refactoring Trust on Your Team (CTO Summit 2018)
rmw
1
1.1k
Trust and Teams: GORUCO 2017
rmw
0
160
Becoming an Engineer Leader Panel Intro Slide
rmw
0
190
Frameworks for Feedback (Long version) - 2016 May Self Conference
rmw
2
640
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
株式会社EventHub・エンジニア採用資料
eventhub
0
2.2k
Unified Diff 形式の差分から Go AST を構築して feature flag を自動計装する
biwashi
7
820
ID連携基盤のマイクロサービス移行プラクティス(freee技術の日)
terara
0
420
Cloudflare Workersで構築する非同期ジョブシステム
aiji42
4
550
社内 TSKaigi 実施を経た Full Stack TypeScript 強化の道
niwatakeru
0
120
Luupの開発組織におけるインシデントマネジメントの変遷
grimoh
2
360
OpenTelemetry Collector の Connectors って何者?
phaya72
1
940
EMがマジ価値を届けきるために考え行動したこと / Engineering Manager's thoughts and actions to deliver outcome
matsu0228
0
330
自動生成されたhttpエンドポイントごとにカスタムミドルウェアを挿入したい話
uhzz
1
1.7k
情報の世界 2024年度 第10回「データとセンシングの概要」 #情報の世界 / Data and Sensing 2024
yumulab
0
160
未知の未知を既知の未知へ / Unknown unknowns to Known unknowns
rhumie
1
2k
actionlint の Linter 設計
rhysd
5
590
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
331
56k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
4 Signs Your Business is Dying
shpigford
176
21k
How STYLIGHT went responsive
nonsquared
92
4.9k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
Testing 201, or: Great Expectations
jmmastey
32
6.8k
Optimizing for Happiness
mojombo
372
69k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
275
13k
GitHub's CSS Performance
jonrohan
1025
450k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
Automating Front-end Workflow
addyosmani
1358
200k
Principles of Awesome APIs and How to Build Them.
keavy
122
16k
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!