Skip to Content
持續交付|使用Java
book

持續交付|使用Java

by Daniel Bryant, Abraham Marín-Pérez
July 2019
Intermediate to advanced
480 pages
9h 35m
Chinese
GoTop Information, Inc.
Content preview from 持續交付|使用Java
從管道部署與釋出 |
275
你可以在外部程式庫 java-utils
https://github.com/quiram/java-utils
)參考實際的語義
化版本系統範例。如果你採用 java-utils 並且研究過 v4.0.0 v4.6.0,你可以發現,每
一個新版都只在 helper 類別加入方法,這顯然是回溯相容的變動。v4.6.0 的下一版是
v5.0.0,它代表有非回溯相容的變動。當你查看這個新版本的變動時,可以看到方法
ArgumentChecks. ensure(Callable<Boolean>, String)
的意義已經改變了;在 v4.6.0,這
個方法的第一個參數預期接收失敗情況,但是在 v5.0.0,它預期接收通過情況,兩者正
好相反!
v5.0.0 的下一版是 v5.0.1,代表修復 bug。事實上,你可以從變動紀錄看到,v5.0.0
上述
ensure
方法的意義反過來了,但是它沒有在程式庫中更新每一個呼叫這個方法的位
置,因此破壞了一些功能,v5.0.1 是為了修復它們。
v
是什麼意思?
有時不同的組織會推出略有不同但通常可互通的最佳做法,版本控制就
是其中一個例子。雖然 semver 提倡純數字的版本號碼,但 GitHub 主張
在版本號碼前面加上字母 v。這兩種做法不相容,因為在技術上,GitHub
樣式指的是一個指向特定版本的
標籤
,而不是版本本身。按照 GitHub
的說法,v1.2.3 是引用程式碼版本 1.2.3 的標籤。事實上,就連 semver
存放區也在它的版本中使用 ...
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

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
精通機器學習|使用Python

精通機器學習|使用Python

Sarah Guido, Andreas C. Mueller
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9789865021740