活動:LINE Developers Meetup 開發者小聚 #18 - TECH FRESH 畢業展 活動頁面:https://linegroup.kktix.cc/events/20230627-tech-fresh-gratudation 講者:Ricky Hu
發PR被同事「留⾔灌爆」!他只⽤這2⽅法解決,同事驚:輕鬆很多Ricky HuTECH FRESH @ Android team
View Slide
Ricky HuTECH FRESH @ Android teamLINE SHOPPING AppNTUT EECS(graduated)※Source from︓https://www.flaticon.com/free-icon/graduation-hat_1344761
010203ContentsPR 被灌爆,到底是怎麼回事?PR 可以不要被灌爆嗎?⼀點⼩⼩的想法
我在學校的 PR:標題不寫清楚PR 內容偷懶沒有⼈ Code Review※Source from︓https://github.com/Genies-des-mathematiques/sususudoku/pull/12
我的 PR 來到 LINE 之後:
我被 Comment 了什麼?Spec不符合預期設計或⾏為Quality需要提升程式碼品質Convention不符合團隊的程式碼準則Reuse未使⽤現有的類別或函式Others其他類型
13%46%17%11%13%SpecQualityConventionReuseOthers我被 Comment 了什麼?
13%46%17%11%13%我被 Comment 了什麼?在會議中討論 / 私下討論寫到相關的 Code 才知道要⽤少⾒的 CommentSpecQualityConventionsReuseOthers
Tip 1: 預先閱讀 Coding Style Docs1. 熟悉團隊的 Coding ConventionDart 語⾔官⽅推薦寫法:Effective Dart※Source from︓https://github.com/Genies-des-mathematiques/sususudoku/pull/12
Tip 2: 觀察其他 PR 的 Comment1. 熟悉團隊的 Coding ConventionRicky 在 PR 留⾔哈密瓜發 PR🍈草莓在 PR 留⾔🍓哈密瓜修正留⾔🍈Ricky & 草莓留⾔ LGTM🍓哈密瓜Merge PR🍈不知道留⾔什麼🤔 觀察別⼈的留⾔ 👀※Source from︓https://www.flaticon.com/free-icon/pull-request_10824098https://www.flaticon.com/free-icon/git_10042189https://www.flaticon.com/free-icon/comment_3193015https://www.flaticon.com/free-icon/hammer_7012680
Big PR+589 -196133 comments…2. ⼤ PR 分成多個⼩ PRPR 上的留⾔修⼀下! 對不起,我只是⼀個實習⽣…😵💫同事😓我
Small PR #1+223 -9847 commentsSmall PR #3+196 -10215 commentsSmall PR #2+261 -14424 comments2. ⼤ PR 分成多個⼩ PR…LGTM! Merged!😎同事😉我
010203ContentsPR 被灌爆,到底是怎麼回事?PR 可以不要怎麼被灌爆嗎?⼀點⼩⼩的想法
⼀點⼩⼩的想法PR 被留⾔灌爆是⼀件好事?• 透過 PR 快速了解團隊 Convention• 團隊成員對於專案品質要求⾼實習⼩⼩⼼得• TECH FRESH Mentor 學習指引• Workshop、Team Building 維持合作品質
THANK YOU