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
Why I use Guard
Search
Keith Pitty
May 26, 2016
Programming
0
140
Why I use Guard
Lightning Talk given at Melbourne Ruby Meetup on 25 July, 2016
Keith Pitty
May 26, 2016
Tweet
Share
More Decks by Keith Pitty
See All by Keith Pitty
Succeeding with Remote Retrospectives
keithpitty
0
190
What were they thinking?
keithpitty
0
200
How not to have future developers curse you
keithpitty
1
69
How not to give advice (about Markdown)
keithpitty
0
86
Morphing your Ruby into Civil Tech
keithpitty
0
88
Loving Legacy Code
keithpitty
0
620
Better OO Design in Rails
keithpitty
0
76
Other Decks in Programming
See All in Programming
複数アプリケーションを育てていくための共通化戦略
irof
7
2.9k
カクヨムAndroidアプリのリブート
numeroanddev
0
110
MLOps Japan 勉強会 #52 - 特徴量を言語を越えて一貫して管理する, 『特徴量ドリブン』な MLOps の実現への試み
taniiicom
2
590
❄️ tmux-nixの実装を通して学ぶNixOSモジュール
momeemt
1
130
Efficiency and Rock 'n’ Roll (Really!)
hollycummins
0
620
tsconfigのオプションで変わる型世界
keisukeikeda
1
130
Blueskyのプラグインを作ってみた
hakkadaikon
1
310
コンポーネントライブラリで実現する、アクセシビリティの正しい実装パターン
schktjm
1
690
Step up the performance game with Spring Boot and Project Leyden
mhalbritter
0
110
機械学習って何? 5分で解説頑張ってみる
kuroneko2828
0
140
Rethinking Data Access: The New httpResource in Angular
manfredsteyer
PRO
0
220
iOSアプリ開発もLLMで自動運転する
hiragram
6
2.2k
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
94
13k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Stop Working from a Prison Cell
hatefulcrawdad
269
20k
Facilitating Awesome Meetings
lara
54
6.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.8k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
6
660
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
The Invisible Side of Design
smashingmag
299
50k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
25
2.8k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Transcript
WHY I USE GUARD KEITH PITTY
None
WHY?
None
FAST AUTOMATIC FEEDBACK
FIN!
None
None
OH, OK …
None
HOW?
guard-rspec
REMEMBER AUTOTEST?
GuardFile
guard :rspec, cmd: 'zeus rspec' do watch('spec/spec_helper.rb') { "spec" }
watch(%r{^spec/.+_spec\.rb$}) watch(%r{^app/(.+)\.rb$}) { |m| "spec/ #{m[1]_spec.rb" } # etc. end
guard :rspec, cmd: 'zeus rspec'
None
None
None
< 1 SECOND
None
GuardFile
CURATION
watch('app/views/feeds/facebook/_encoded_content.erb') { "spec/controllers/feeds/facebook_controller_spec.rb" }
WHEN A FILE CHANGES …
AFFECTED TESTS RUN AUTOMATICALLY
None
FOCUS
SPECIFIC TEST
it "does what it should" do, focus: true # expect
something end
None
FIRST 10 FAILED SPECS
guard :rspec, cmd: 'zeus rspec', failed_mode: :focus do # etc.
end
guard-rspec
FAST AUTOMATIC FEEDBACK
None
ALSO …
guard-teaspoon
guard-livereload
guard-bundler
guard-ctags-bundler
AUTOMATION
None
NEXT?
None
guard-rubocop
WHY DO I USE GUARD?
FAST AUTOMATIC FEEDBACK
UNDERSTAND NOW?
None
None
THANK YOU!
@keithpitty