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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
CypressKuo
June 10, 2021
Technology
0
44
談談_Code_review.pdf
CypressKuo
June 10, 2021
Tweet
Share
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
32
CSS_for_Web_Vitals.pdf
cypresskuo
0
38
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
22
CSS_重構.pdf
cypresskuo
0
25
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
28
Core_Web_Vitals.pdf
cypresskuo
0
53
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
56
Webassembly.pdf
cypresskuo
0
12
談談_Functional_Programming.pdf
cypresskuo
0
26
Other Decks in Technology
See All in Technology
Greatest Disaster Hits in Web Performance
guaca
0
210
Context Engineeringの取り組み
nutslove
0
330
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
180
ZOZOにおけるAI活用の現在 ~開発組織全体での取り組みと試行錯誤~
zozotech
PRO
5
5.1k
外部キー制約の知っておいて欲しいこと - RDBMSを正しく使うために必要なこと / FOREIGN KEY Night
soudai
PRO
12
5.3k
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
640
顧客の言葉を、そのまま信じない勇気
yamatai1212
1
350
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
450
配列に見る bash と zsh の違い
kazzpapa3
1
140
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
330
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
890
AI駆動開発を事業のコアに置く
tasukuonizawa
1
160
Featured
See All Featured
Designing Experiences People Love
moore
144
24k
Accessibility Awareness
sabderemane
0
51
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
300
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
73
Test your architecture with Archunit
thirion
1
2.1k
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
The Cult of Friendly URLs
andyhume
79
6.8k
The Spectacular Lies of Maps
axbom
PRO
1
520
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
感謝聆聽