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
47
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
39
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
23
CSS_重構.pdf
cypresskuo
0
27
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
30
Core_Web_Vitals.pdf
cypresskuo
0
55
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
62
Webassembly.pdf
cypresskuo
0
13
談談_Functional_Programming.pdf
cypresskuo
0
30
Other Decks in Technology
See All in Technology
UIライブラリに依存しすぎないReact Native設計を目指して
grandbig
0
120
国内外の生成AIセキュリティの最新動向 & AIガードレール製品「chakoshi」のご紹介 / Latest Trends in Generative AI Security (Domestic & International) & Introduction to AI Guardrail Product "chakoshi"
nttcom
4
1.4k
基盤を育てる 外部SaaS連携の運用
gamonges_dresscode
1
120
AzureのIaC管理からログ調査まで、随所に役立つSkillsとCustom-Instructions / Boosting IaC and Log Analysis with Skills
aeonpeople
0
250
弁護士ドットコム株式会社 エンジニア職向け 会社紹介資料
bengo4com
1
180
AgentCore×VPCでの設計パターンn選と勘所
har1101
3
300
AI時代における技術的負債への取り組み
codenote
1
1.7k
260422_Sansan_Tech_Talk__関西_vol.3_データ活用のリアル__矢田__.pdf
sansantech
PRO
0
120
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
2
750
AI駆動1on1〜AIに自分を育ててもらう〜
yoshiakiyasuda
0
140
AIはハッカーを減らすのか、増やすのか?──現役ホワイトハッカーから見るAI時代のリアル【MEGU-Meet】
cscengineer
PRO
0
190
AI: Making Admin and Users, Lives Better
kbmsg
0
110
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
Producing Creativity
orderedlist
PRO
348
40k
Visualization
eitanlees
150
17k
エンジニアに許された特別な時間の終わり
watany
106
240k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
Designing Experiences People Love
moore
143
24k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Google's AI Overviews - The New Search
badams
0
980
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Are puppies a ranking factor?
jonoalderson
1
3.3k
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
感謝聆聽