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項必修法則
第六章
尋找路徑
……要研究困難的事情,
應該優先採用分析的方法,
而不是組合的方法。
- Sir Isaac Newton
有一個新人加入我的研發團隊。我們的專案雖然不是非常龐大,但比較大型,並橫跨若
干不同的領域。他還要學很多東西,才可以有效率地工作。他該如何描繪出程式碼內部
的脈絡?他如何從零開始,快速地具有生產力?
這是一種常見的狀況,我們都會一次又一次地面對。如果你沒遇過,代表你需要看更多
的程式碼,並且參觀新的專案。(不要永遠跟著一個團隊,使用同一個基礎程式碼,這
會讓你落伍,這很重要)。45
投入任何既有的大型基礎程式碼都很困難。你必須迅速著手:
y
找出查看程式碼的起始點。
y
瞭解每一段程式碼在做什麼事,及其做法
y
評估程式碼的品質
y
瞭解如何在系統中四處巡覽
y
瞭解程式碼的典型表達風格,讓你的修改可以融入其中
y
尋找任何功能的位置(及它可能產生的 bug
y
瞭解程式碼及重要的衛星物件之間的關係(例如,它的測試項及文件)
52
| 第六章:尋找路徑
你必須快速地瞭解它,因為你不希望你第一次修改的內容太尷尬,不小心重複既有的成
果,或將其他地方的東西破壞。[Page-46]
我的朋友給我的小幫助
我的新同事在這個學習過程中,有一個很棒的開始。他加入辦公室時,已經瞭解程式
碼、可以解答許多專案的小問題、可以指出既有的函式在哪裡。這種協助是無價的。 ...
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