Skip to Content
成為卓越程式設計師的38項必修法則
book

成為卓越程式設計師的38項必修法則

by Pete Goodliffe
May 2015
Intermediate to advanced
376 pages
5h 48m
Chinese
GoTop Information, Inc.
Content preview from 成為卓越程式設計師的38項必修法則
第二十章
有效的版本控制
一切都在改變,沒有東西滅亡。
- Ovid
對開發人員而言,版本控制與原始碼編譯器與編譯器一樣,就像是吃飯與呼吸,是日常
開發生活的一部分。
版本控制是管理一組檔案的許多版本的流程。它們通常是軟體系統的原始檔案(所以它
通常被稱為
原始碼控制
),但是它也可以是簡單的文件樹改版,或任何其他你想要在檔
案系統中儲存的東西。
這是一個非常簡單的工具。但是善用好的版本控制系統有許多好處:
y
它會提供中央協作中心,策劃開發人員一起工作的方法。
y
它會定義且公布最新狀況,除非程式碼被存到系統,否則它不會被整合。其他的工
具會連結到這個更新摘要,例如,持續整合、版本工程,及程式碼審核系統。
y
它會維護專案的工作歷史記錄,將每一個特定版本內的具體內容建檔。它是程式碼
的時光機器。
這有利於進行
軟體考古
,在檔案中追蹤改變,來找出組成特定功能的修改項目。它
會記錄是誰修改檔案,及其原因。
y
它會集中備份你的工作成果。
y
它會提供一個安全網給開發人員。它會保留實驗、修改的空間,並且在修改的程式
無法動作時將它們回復。
178
| 第二十章:有效的版本控制
y
它會促進工作的節奏與韻律:讓你做一部分的工作、測試它,接著將它 check in
接著繼續做下一個部分的工作。[Page-172]
y
它可以讓許多開發流程同時在同樣的基礎程式上進行,不會受到干擾。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

精通機器學習|使用Python

精通機器學習|使用Python

Sarah Guido, Andreas C. Mueller
Java性能优化实践:JVM调优策略、工具与技巧

Java性能优化实践:JVM调优策略、工具与技巧

Benjamin J. Evans, James Gough, Chris Newland

Publisher Resources

ISBN: 9789863475699