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
46
0
Share
談談_Code_review.pdf
CypressKuo
June 10, 2021
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
33
CSS_for_Web_Vitals.pdf
cypresskuo
0
39
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
23
CSS_重構.pdf
cypresskuo
0
27
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
29
Core_Web_Vitals.pdf
cypresskuo
0
54
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
60
Webassembly.pdf
cypresskuo
0
13
談談_Functional_Programming.pdf
cypresskuo
0
29
Other Decks in Technology
See All in Technology
OPENLOGI Company Profile for engineer
hr01
1
61k
GitHub Advanced Security × Defender for Cloudで開発とSecOpsのサイロを超える: コードとクラウドをつなぐ、開発プラットフォームのセキュリティ
yuriemori
1
120
AIにより大幅に強化された AWS Transform Customを触ってみる
0air
0
230
Microsoft Fabricで考える非構造データのAI活用
ryomaru0825
0
540
CloudFrontのHost Header転送設定でパケットの中身はどう変わるのか?
nagisa53
1
230
【Oracle Cloud ウェビナー】データ主権はクラウドで守れるのか?NTTデータ様のOracle Alloyで実現するソブリン対応クラウドの最適解
oracle4engineer
PRO
3
130
PostgreSQL 18のNOT ENFORCEDな制約とDEFERRABLEの関係
yahonda
0
150
ハーネスエンジニアリング×AI適応開発
aictokamiya
1
910
40代からのアウトプット ― 経験は価値ある学びに変わる / 20260404 Naoki Takahashi
shift_evolve
PRO
3
460
私がよく使うMCPサーバー3選と社内で安全に活用する方法
kintotechdev
0
150
AWS DevOps Agent or Kiro の使いどころを考える_20260402
masakiokuda
0
120
互換性のある(らしい)DBへの移行など考えるにあたってたいへんざっくり
sejima
PRO
0
480
Featured
See All Featured
Everyday Curiosity
cassininazir
0
180
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
610
Building Adaptive Systems
keathley
44
3k
Bash Introduction
62gerente
615
210k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Ethics towards AI in product and experience design
skipperchong
2
240
Accessibility Awareness
sabderemane
0
88
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
96
Unsuck your backbone
ammeep
672
58k
It's Worth the Effort
3n
188
29k
4 Signs Your Business is Dying
shpigford
187
22k
The SEO identity crisis: Don't let AI make you average
varn
0
430
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
感謝聆聽