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
There's more to code review than you might think
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Daniel Shaw
June 11, 2016
Programming
0
290
There's more to code review than you might think
Lightning talk, given at PHPSC 2016
Daniel Shaw
June 11, 2016
Tweet
Share
More Decks by Daniel Shaw
See All by Daniel Shaw
There's more to code review than you might think
thatdamnqa
1
330
Educating Enfys (lightning talk)
thatdamnqa
0
300
There's More to Code Reviews than You Might Think ✩
thatdamnqa
0
120
There's More To Code Reviews Than You Might Think (lightning talk)
thatdamnqa
0
290
The Less Dull Bits of Testing
thatdamnqa
0
270
Other Decks in Programming
See All in Programming
CSC307 Lecture 11
javiergs
PRO
0
590
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.4k
ベクトル検索のフィルタを用いた機械学習モデルとの統合 / python-meetup-fukuoka-06-vector-attr
monochromegane
2
320
文字コードの話
qnighy
43
17k
株式会社 Sun terras カンパニーデック
sunterras
0
2k
Claude Code、ちょっとした工夫で開発体験が変わる
tigertora7571
0
200
AIに任せる範囲を安全に広げるためにやっていること
fukucheee
0
110
Railsの気持ちを考えながらコントローラとビューを整頓する/tidying-rails-controllers-and-views-as-rails-think
moro
4
370
AIに仕事を丸投げしたら、本当に楽になれるのか
dip_tech
PRO
0
180
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
230
SourceGeneratorのマーカー属性問題について
htkym
0
140
CSC307 Lecture 15
javiergs
PRO
0
220
Featured
See All Featured
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
470
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
300
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
130
Raft: Consensus for Rubyists
vanstee
141
7.3k
How to Think Like a Performance Engineer
csswizardry
28
2.5k
Done Done
chrislema
186
16k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
290
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Transcript
THERE’S MORE TO CODE REVIEW THAN YOU MIGHT THINK Clair
Shaw @clairs · clairshaw.co.uk
What are Code reviews for?
Code reviews are not an indication of anybody's abilities
Check code style
Check code style Pick a house style, use it, communicate
it
Check code style Pick a house style, use it, communicate
it
Check code style Don't get too distracted by checking code
style
Check code style Automate if you can. Bad news can
be better received by a cruel and lifeless script
Review the configuration
Review the configuration { "require": { "usefultool/tool": "1.1" } }
Review the configuration { "require": { "usefultool/tool": "1.2.1" } }
Review the configuration { "require": { "usefultool/tool": "^1.2" } }
Check forwards compatibility
Check forwards compatibility PHP 5.5.32 PHP 5.6.18 PHP 7.0.3
Check forwards compatibility jQuery 1.12.1 jQuery 2.2.1
Review the documentation
Review the commit message
Review the commit message Update usefultool
Review the commit message [MYCOOLAPP-1234] Update UsefulTool lib Wider company
policy dictates that the latest UsefulTool v1 should be used. Update Composer config to reflect this.
Double check the code
Double check the code if (in_array($input, $expected)) { $this->showRestrictedSecrets(); }
else { $this->goAway(); }
Double check the code $expected = ['2', '4', '5', 'cake'];
$input = 0; if (in_array($input, $expected)) { echo "I'm in!"; }
Double check the tests
Final thoughts…
Final thoughts… All output should be reviewed. It’s not personal
Final thoughts… Often, a peer review can teach something to
two people
Thanks. Feedback please! https://joind.in/talk/29752
[email protected]
@clairs