Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
談談_Code_review.pdf
Search
CypressKuo
June 10, 2021
Technology
57
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
談談_Code_review.pdf
CypressKuo
June 10, 2021
Transcript
13 slides
談談 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
感謝聆聽
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
45
CSS_for_Web_Vitals.pdf
cypresskuo
0
52
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
31
CSS_重構.pdf
cypresskuo
0
37
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
43
Core_Web_Vitals.pdf
cypresskuo
0
65
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
93
Webassembly.pdf
cypresskuo
0
24
談談_Functional_Programming.pdf
cypresskuo
0
36
Other Decks in Technology
See All in Technology
AI時代のTechLeadの問い〜Tech Lead Conference 2026 Autumn / questions-for-tech-leads-in-the-age-of-ai
haru860
0
110
Is the Website Dying?
miriamschwab
0
270
Test Impact Analysis を武器に立ち向かう、AI 時代のテスト増加に対するヌーラボのアプローチ / getting-started-datadog-test-impact-analysis
k6s4i53rx
3
910
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
490
Ignite 2026 Security
babaneko
0
120
PMの私の 最近のAgent Skills活用法
haru860
0
110
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5.5k
対話 AI プラットフォーム「アイブリー」で実践する自然言語処理と事業開発
ivry_presentationmaterials
0
230
本の挿絵に困ったから挿絵メーカーを自作した
yoshimura_datam
1
140
Go でトランザクション、どう書いてますか?
knwoop
2
670
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
200
猫でもわかるKiro初心者編(2026年11月版)
kentapapa
1
130
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
2
4.2k
Amusing Abliteration
ianozsvald
1
410
Discover your Explorer Soul
emna__ayadi
2
1.4k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
RailsConf 2023
tenderlove
30
1.6k
My Coaching Mixtape
mlcsv
0
400
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
530
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
690
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.6k
So, you think you're a good person
axbom
PRO
2
2.3k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.7k