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
790
Tech Talk 101: Topic Generation
rmw
0
280
Other Decks in Technology
See All in Technology
NewSQL Landscape
oracle4engineer
PRO
5
3.1k
Max out Local LLM in Challenging Environments
sashimimochi
2
230
実例で紹介するRAG導入時の知見と精度向上の勘所
yamahiro
7
2.7k
類似ロジック実装をiOS/Android間で合わせる道標No.1
fumiyasac0921
1
210
「できる!」を増やすGitHub Copilot活用法 / How to use GitHub Copilot to expand your possibilities
sansan_randd
1
210
【リラン】AIの光と闇?失敗しないために知っておきたいAIリスクとその対応 ①政府の動き編
tkhresk
0
130
LLM評価の落とし穴~開発者目線で気をつけるポイント~
rishigami
8
2.1k
TailwindCSSでUIライブラリを作る際のハマりどころ
shuta13
0
210
コードファーストの考え方。 Amplify Gen2から学ぶAWS次世代のWeb開発体験
yoshiitaka
2
580
#phpconkagawa レガシーコードにもオブザーバビリティを 〜少しずつ始めるサービス監視〜
yamato_sorariku
0
480
大規模言語モデル (LLM)における低精度数値表現
pfn
PRO
3
550
グイグイ系QAエンジニアでやっていくよ!
____rina____
0
480
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
92
4.8k
Agile that works and the tools we love
rasmusluckow
325
20k
The Brand Is Dead. Long Live the Brand.
mthomps
49
30k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.7k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
228
16k
Optimising Largest Contentful Paint
csswizardry
13
2.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
356
18k
Documentation Writing (for coders)
carmenintech
60
4k
Building Adaptive Systems
keathley
32
1.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
126
32k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
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!