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
Get Your Patch Accepted
Search
Lorna Mitchell
August 22, 2015
Technology
1.1k
1
Share
Get Your Patch Accepted
Code reviews and how to survive them (from Froscon 2015)
Lorna Mitchell
August 22, 2015
More Decks by Lorna Mitchell
See All by Lorna Mitchell
Introduction to OpenAPI Specification
lornajane
1
810
Create PDFs from markup with rst2pdf
lornajane
3
900
Serverless Microservices are the New Black
lornajane
3
150
Serverless Computing with Apache OpenWhisk
lornajane
0
140
Build A Serverless Data Pipeline
lornajane
1
840
SQL, NoSQL and Beyond
lornajane
0
1.1k
Build a Serverless Data Pipeline
lornajane
1
1.1k
Road Trip Through Database Country
lornajane
1
1k
Serverless Microservices Are The New Black
lornajane
1
170
Other Decks in Technology
See All in Technology
Keeping Ruby Running on Cygwin
fd0
0
200
UIライブラリに依存しすぎないReact Native設計を目指して
grandbig
0
190
バイブコーディングで3倍早く⚪⚪を作ってみた
samakada
0
210
Agents CLI と Gemini Enterprise Agent Platform で マルチエージェント開発が楽しくなる!
kaz1437
0
220
エージェントスキルを作って自分のインプットに役立てよう
tsubakimoto_s
0
510
FessのAI検索モード:検索システムとLLMへの取り組み
marevol
0
170
「SaaSの次の時代」に重要性を増すステークホルダーマネジメントの要諦 ~解像度を圧倒的に高めPdMの価値を最大化させる方法~
kakehashi
PRO
3
3.5k
色を視る
yuzneri
0
310
AI時代に越境し、 組織を変えるQAスキルの正体 / QA Skills for Transforming an Organization
mii3king
4
3k
巨大プラットフォームを進化させる「第3のROI」
recruitengineers
PRO
2
2.2k
要件定義の精度を高めるための型と生成AIの活用 / Using Types and Generative AI to Improve the Accuracy of Requirements Definition
haru860
0
270
生成AIはソフトウェア開発の革命か、ソフトウェア工学の宿題再提出なのか -ソフトウェア品質特性の追加提案-
kyonmm
PRO
2
780
Featured
See All Featured
We Are The Robots
honzajavorek
0
220
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
390
Game over? The fight for quality and originality in the time of robots
wayneb77
1
170
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
780
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
55k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
540
The SEO Collaboration Effect
kristinabergwall1
1
440
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Transcript
How to get your patch accepted Lorna Mitchell, August 2015
maintainer and team lead
unsolicited advice
stories
3 ingredients
code
words
perspective
what does it do?
feature/bug
ticket(s)?
If there aren't any acceptance criteria for your patch, invent
some
all the code
git diff master
git diff master...HEAD
tools
TOO BIG
common code mistakes
exotic code, no comments
Leaving commented code in your codebase is like leaving litter
on a campsite
variable named $x
contributing.md
can you break your code?
I can
missing data
permissions
user is an idiot
tests
coding standards
syntax check
The commit history in your branch will be part of
my project until the end of time
git reset --soft $(git merge-base master HEAD)
more info than diff
accurate
sane format
http://chris.beams.io/posts/git-commit/
SFW
apologies
will it merge?
git merge --no-commit --no-ff feature git merge --abort
fix it
rebase
A pull request is the opening line in a conversation
about a feature
source/target
diff
title
description
what does it do?
what will I observe?
why do I care?
code review
"review" vs "merge"
anyone
peer review vs gatekeepers
key skills
Being able to see what you're NOT looking at is
a reviewer's superpower
documentation
tests
database patch
deployability
template
email
report
monitoring
cron job
and if not ...
reject
automated build
constructive feedback
colleagues vs contributors
too much feedback
sandwich technique
harsh feedback
Pull requests have a lifecycle, be prepared to champion them
to the end
3 ingredients
code
words
perspective
Thankyou http://lornajane.net (also speaking about PHP7 tomorrow)