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項必修法則
56
| 第六章:尋找路徑
踏車,將腳放在踏板上,試著真正踩它,否則你永遠不會進步。當你跌倒時,學到的東
西會比在書本中閱讀如何取得平衡還要多。
程式碼也一樣。
閱讀程式碼的進步有限。你只能透過爬上它、試著騎上它、犯下錯誤及跌倒才能瞭解基
礎程式碼。不要靜止不動,阻礙你的前進。不要豎起知識障礙,讓你不去研究程式碼。
我看過許多優秀的程式員剛開始對自己的瞭解能力缺乏自信。
動手去做、大膽地投入。去修改程式碼。
重點
學習程式碼的最佳方式是修改它,並從錯誤中學習。
那麼你應該修改什麼? [Page-50]
當你在學習程式碼時,查看可以馬上獲益的地方,它也可以讓你減少破壞某些東西的機
會(或寫出尷尬的程式碼)。
把目標放在可以帶著你四處瀏覽系統的東西上
低掛的果實
嘗試做一些簡單的小事情,例如追蹤一個與明顯事件有直接關係的小 Bug(例如 GUI
為)。從小型、可重現、低風險的錯誤報告開始,而不是間歇性的惡夢。
檢查程式碼
透過一些基礎程式碼驗證程式來執行程式碼庫(例如
Lint
Fortify
Cppcheck
FxCop
ReSharper
,等等)。看看編譯器警告是否已被停用,將它們重新啟用,並修復
警告訊息。這可以教導你程式碼結構,並提示這個程式碼的品質。
修復這種東西通常不難,但非常有價值,是很棒的入門方式。它通常可以讓你快速地瀏
覽大部分的程式碼。這種非功能性的程式碼修改行為,可教導你事物如何組合在一起,
做中學
|
57
以及哪些東西位於何處。它可以讓你充分地瞭解既有開發人員的勤奮程度,並指出哪一
部分的程式碼是最讓人擔心,且需要特別注意的。 ...
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