SlideShare a Scribd company logo
提高 Code 品質心得
呂宗螢
Outline
• 英文
• 思考
•
•
• 工欲善其事,必先利其器
英文
• 程式之母
• 看不懂也要強迫自己練習看
思考
• 了解要做什麼
• 詢問,詢問, 再詢問
• 做錯的代價
• 重做!!!
• 思考 整理邏輯 詢問 歸納
… 完成
Flow
• 專注,專注,還是專注
•
• 所以
• 中斷再重來的代價是很大的
• 訓練自己持續專注 分鐘
• 休息 分鐘
• 番茄時鐘工作法
Debug
• 一要做
•
•
•
•
•
•
版本控制很重要 !!!
寫程式常常…
• 檔案被別人或自己覆蓋,甚至遺失
• 想復原前幾天寫的版本
• 想知道跟昨天寫的差在哪裡
• 是誰改了這段程式碼,為什麼
• 軟體發行,需要分成維護版跟開發版
所以…
• 可以隨時復原修改,回到之前的版本
• 多人協作時,不會把別人的東西蓋掉
• 保留修改歷史記錄,以供查詢
• 軟體發行時,可以方便管理不同版本
• 根本
沒有版本控制時
Git
•
•
•
•
•
一個好習慣
1. 在本地端測試自己新的功能是正確完成的
2. 取得最新的狀態
3. 請一隻一隻程式確定
• 禁用
4. 請也一隻一隻程式去確定這次改變的
5. 寫
6.
7. 到 去驗證本次寫的功能
請思考…
• 為什麼會有公司規定
• 如果有人 造成了系統錯誤或是
• 要留下來加班完成並請大家喝啡咖
請思考…
• 每次你們跟我說完成,結果我到機器 一看
國防布!?
惰性 > 理性
• 只好硬性規定一下
• 如果…
• 未來…
• 因前述的方法做得不夠徹底造成的錯誤…
工欲善其事,必先利其器
•
•
•
Editor
•
•
Diff
•
Git GUI
•
•
Books
•
•
•
•
•
Other
•
• 心智圖可以整理思緒
Reference
•
•
•
•

More Related Content

PPTX
玩轉 Schematics - Modern Web 2018
PDF
Parallel program design
PPT
PPT
Performance improvement techniques for software distributed shared memory
PPTX
Vue.js
PDF
JIRLGIRL August collection
PPTX
Balance of payments
PPTX
Digital Business Briefing December 2014
玩轉 Schematics - Modern Web 2018
Parallel program design
Performance improvement techniques for software distributed shared memory
Vue.js
JIRLGIRL August collection
Balance of payments
Digital Business Briefing December 2014

Viewers also liked (13)

PPTX
Creative Business Development Briefing - April 2015
DOCX
Rencana pelaksanaan pembelajaran
PDF
Programme on recently recruited clerks of UCB/DCC/State Cooperative Banks
PDF
Cs437 lecture 10-12
PPTX
PKN tentang Rakyat :)
PDF
Cs437 lecture 16-18
PDF
Why I love the Rain and You Will too - Guarenteed
PPTX
Lights in world
PDF
經濟部訴願委員會第A410501007號決定書
PPTX
Creative Business Development Briefing - February 2015
PDF
Lu siau vay_616_wds_
DOCX
Tata cara perijinan pendakian g
Creative Business Development Briefing - April 2015
Rencana pelaksanaan pembelajaran
Programme on recently recruited clerks of UCB/DCC/State Cooperative Banks
Cs437 lecture 10-12
PKN tentang Rakyat :)
Cs437 lecture 16-18
Why I love the Rain and You Will too - Guarenteed
Lights in world
經濟部訴願委員會第A410501007號決定書
Creative Business Development Briefing - February 2015
Lu siau vay_616_wds_
Tata cara perijinan pendakian g
Ad

Similar to 提高 Code 品質心得 (20)

PPTX
我怎么做前端分享
PDF
2019/7/27 先別開 Branch 了,你聽過 Feature Toggle 嗎?
PDF
20180615 @ 家防中心
PDF
Java SE 7 技術手冊投影片第 07 章 - 介面與多型
KEY
猛犸浏览器
PPT
拥抱开源-关于程序员的自我提高
PDF
前端编译平台
PDF
李成银:前端编译平台
PDF
Joomla! 網站規劃 簡報-i love joomla! 5月小聚
PDF
Joomla! 網站規劃 簡報 - I love joomla! 5月小聚
PDF
我要活下來 - Ruby Junior 工程師的存活術
PDF
Scrum Gathering 2012 Shanghai_团队合作与团队指导分会场演讲话题:自组织?你开玩笑吧!(艾永亮)
PDF
不妥協的河蟹之道
PPTX
Developer vs designer
PDF
设计模式浅析
PPTX
Duck Typing and Multiple Inheritance
PDF
Running a Service in Production without Losing Your Sanity
PDF
Djt22 justinliu djt.qq.com
PDF
Djt22 justinliu djt.qq.com
PPTX
与Python一路走来
我怎么做前端分享
2019/7/27 先別開 Branch 了,你聽過 Feature Toggle 嗎?
20180615 @ 家防中心
Java SE 7 技術手冊投影片第 07 章 - 介面與多型
猛犸浏览器
拥抱开源-关于程序员的自我提高
前端编译平台
李成银:前端编译平台
Joomla! 網站規劃 簡報-i love joomla! 5月小聚
Joomla! 網站規劃 簡報 - I love joomla! 5月小聚
我要活下來 - Ruby Junior 工程師的存活術
Scrum Gathering 2012 Shanghai_团队合作与团队指导分会场演讲话题:自组织?你开玩笑吧!(艾永亮)
不妥協的河蟹之道
Developer vs designer
设计模式浅析
Duck Typing and Multiple Inheritance
Running a Service in Production without Losing Your Sanity
Djt22 justinliu djt.qq.com
Djt22 justinliu djt.qq.com
与Python一路走来
Ad

More from ZongYing Lyu (12)

PPT
Architecture of the oasis mobile shared virtual memory system
PPT
A deep dive into energy efficient multi core processor
PPT
Libckpt transparent checkpointing under unix
PPT
Device Driver - Chapter 6字元驅動程式的進階作業
PPT
Device Driver - Chapter 3字元驅動程式
PDF
Web coding principle
PPT
PPT
Consistency protocols
PPT
Compiler optimization
PPT
MPI use c language
PDF
PPT
OpenMP
Architecture of the oasis mobile shared virtual memory system
A deep dive into energy efficient multi core processor
Libckpt transparent checkpointing under unix
Device Driver - Chapter 6字元驅動程式的進階作業
Device Driver - Chapter 3字元驅動程式
Web coding principle
Consistency protocols
Compiler optimization
MPI use c language
OpenMP

提高 Code 品質心得