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
談談_Code_review.pdf
Search
CypressKuo
June 10, 2021
Technology
48
0
Share
談談_Code_review.pdf
CypressKuo
June 10, 2021
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
35
CSS_for_Web_Vitals.pdf
cypresskuo
0
40
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
23
CSS_重構.pdf
cypresskuo
0
28
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
31
Core_Web_Vitals.pdf
cypresskuo
0
55
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
63
Webassembly.pdf
cypresskuo
0
13
談談_Functional_Programming.pdf
cypresskuo
0
31
Other Decks in Technology
See All in Technology
"うちにはまだ早い"は本当? ─ 小さく始めるPlatform Engineering入門
harukasakihara
6
620
Agent Skillsで実現する記憶領域の運用とその後
yamadashy
2
1.9k
開発サイクルのボーダーレス化に伴う組織変革から学んだこと / Organizational Transformation Amid the Borderless Development Cycle
mii3king
0
160
ワールドカフェ再び、そしてゴール・ルール・ロール・ツール / World Café Revisited, and the Goals-Rules-Roles-Tools
ks91
PRO
0
180
Swift Sequence の便利 API 再発見
treastrain
1
290
freeeで運用しているAIQAについて
qatonchan
1
630
おいらのAWSアップデートの追い方〜Slack×AgentCore〜
yakumo
1
110
いつの間にかデータエンジニア以外の業務も増えていたけど、意外と経験が役に立ってる
zozotech
PRO
0
630
20260516_SecJAWS_Days
takuyay0ne
2
430
そのSLO 99.9%、本当に必要ですか? 〜優先度付きSLOによる責任共有の設計思想〜 / Is that 99.9% SLO really necessary? Design philosophy of shared responsibility through prioritized SLOs
vtryo
0
780
サンプリングは「作る」のか「使う」のか? 分散トレースのコストと運用を両立する実践的戦略 / Why you need the tail sampling and why you don't want it
ymotongpoo
4
180
SpeechTranscriber + AIによる文字起こし機能
kazuki1220
0
110
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.8k
WCS-LA-2024
lcolladotor
0
590
The World Runs on Bad Software
bkeepers
PRO
72
12k
Music & Morning Musume
bryan
47
7.2k
Become a Pro
speakerdeck
PRO
31
5.9k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Facilitating Awesome Meetings
lara
57
6.8k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Transcript
談談 Code review 2021/06/10 F2E 例會 cypresskuo
Code review 的好處 • 分享知識 • 互相學習 • 程式碼的一致性 •
團隊成長 • 增加團隊向心力 • 提升程式碼品質
Code review 的壞處 • 增加成本 ◦ 時間成本 ◦ 溝通成本 •
reviewer 標準太高會降低開發者改善程式碼的意願 • 凝聚團隊共識需時間(新團隊)
Code review 的基本原則 • 符合功能需求 • 可維護性 • 技術上的建議 •
遵守 style guideline • 維持程式碼的一致性 • 沒有規則可以參考時,以開發者選擇為主
Code review 在 review 什麼 • Design • Functionality •
Complexity • Tests • Naming • Comments • Style • Documentation • Every line • Context • Good Things
Code review 的步驟 • 由大至小 ◦ 全局 ◦ 更動/新增的部份 ◦
其他
怎麼寫 Commit • 對事不對人 • 友善與尊重的語氣 • 充分說明 • 不要直接點出問題,保留思考空間給開發者
• 鼓勵
面對回饋 • 寫 Code 的是開發者,不是 reviewer ◦ 有些問題只有開發者才知道,不能強硬要求改 Code •
不要怕被抱怨就降低標準
Code review 的衝突 • 不以個人主觀為主 • 只針對程式/數據 • 找出雙方都可以接受的解決方式 •
討論後務必做出決議
結語 Code review 除了可以幫助團隊成長,也能幫助自己 Code review 除了提出意見外,也可以鼓勵開發者
參考資料 https://google.github.io/eng-practices/review/
Q & A
感謝聆聽