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項必修法則
第十五章
遵守遊戲規則
如果我要遵守所有的規則,我就哪裡也去不了。
- Marilyn Monroe
我們在許多規則下過生活。你可以說它是反烏托邦惡夢,但它不是。有些規則是強加在
我們身上的。但有些規則是我們自己設定的。這些規則潤滑了我們的生活齒輪。
規則可讓我們盡情地玩遊戲,說明遊戲是怎麼進行的,描述
誰會贏,以及如何贏。它們讓我們的運動可以公平地進行、
充滿樂趣,並提供很多機會供人解釋(或誤解,請參考足球
的越位規則)。
它們會影響旅行,因為安全規則規定你只能帶多少液體、不
能帶尖銳物體上飛機。它們描述行車速限,以及如何安全地
在馬路上駕駛。這些規則可確保安全。
規則會約束我們的社會,指出當你第一次遇到一個陌生人時,舔他的耳朵是不適當的,
無論他看起來多可口。141
是的,我們在生活中會一直注意很多規則。因為很習慣,所以會經常忘了它們的存在。
意料之中的是,我們的開發也是如此。在程式碼部分,有許多規則需要遵守:開發流程
規範、已取得授權的工具鏈與工作流程、辦公室禮儀、語言的語法、設計模式。它們都
定義一位專業程式員該遵守的事項,以及與其他人一起玩這場開發遊戲的方式。
148
| 第十五章:遵守遊戲規則
如果你加入一個新的專案,應該會面對許多既有的規則。規則引領人們有責任地創作高
品質程式碼。規則規定工作流程與做法。也有特定的專案與問題領域規則:或許是現行 ...
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