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
380
Frameworks for Feedback - DevOpsDays Chicago
rmw
0
790
Tech Talk 101: Topic Generation
rmw
0
270
Other Decks in Technology
See All in Technology
いいたいことちゃんという
tkengo
0
240
Além do else! Categorizando Pokemóns com Pattern Matching no JavaScript
wmsbill
0
710
MLOpsの「壁」を乗り越える、LINEヤフーの Data Quality as Code
lycorptech_jp
PRO
8
630
MixIT 2024 - Pulumi : Gérer son infra avec son langage de programmation préféré
ju_hnny5
1
120
チームでロジカルシンキングに改めて向き合っている話 〜学習環境と実践⽅法〜
sansantech
PRO
3
3.3k
Azureの基本的な権限管理の勉強会
yhana
1
2.1k
止まらないLinuxシステムを構築する_高信頼性クラスタ入門
koedoyoshida
2
460
今年のRubyKaigiはProfiler Year🤘
osyoyu
0
410
LLM開発・活用の舞台裏@2024.04.25
yushin_n
3
1.3k
データベース03: 関係データモデル
trycycle
0
100
M5と自作基板をくっつけてみた〜M5 Japan Tour 2024 Spring 福冈 (Fukuoka|福岡)〜
keropiyo
0
150
M&A戦略を支えるデータマネジメント (MIDAS Tech Study #16 GENDA Komiyama)
kommy339
1
120
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
Optimizing for Happiness
mojombo
370
69k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
A Tale of Four Properties
chriscoyier
152
22k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
Teambox: Starting and Learning
jrom
128
8.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
GitHub's CSS Performance
jonrohan
1025
450k
Faster Mobile Websites
deanohume
300
30k
GraphQLとの向き合い方2022年版
quramy
33
12k
From Idea to $5000 a Month in 5 Months
shpigford
378
45k
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!