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項必修法則
第五章
基礎程式的過往陰魂
我將為過去、現在,及未來而活。
在我心中,將為這三者的精神而努力。
我將不會抗拒它們教導的課程!
- Charles Dickens
A Christmas Carol
懷舊並非停滯不前。舊的程式碼也是如此。誰知道在你很久以前的作品中,潛藏多少功
能小鬼及排版惡魔?當你在寫它們的時候,認為它們是完美的,但是當你用挑剔的眼光
掃視舊程式,難免會發現各式各樣的程式碼陷阱。
程式員,作為一個物種,會努力邁步向前。我們都喜歡學習新穎、讓人興奮的技術,來
迎接新的挑戰,並解決更有趣的問題。這是天性。考慮就業市場的高替換率,以及編程
合約的平均期限,很少軟體開發者會長時間持續使用相同的基礎程式碼,這個事實並不
讓人感到意外。
但這跟我們寫的程式碼有什麼關係?什麼樣的態度可以提升我們的作品?我覺得,出色
的程式員會認為他們編寫的程式碼及編寫方式比實際的程式碼本身還要重要。
一般的程式員比較不會長期地維護他們自己的程式碼。這次我們不是在自己的排泄物中
打滾,而且去別的牧場,在別人的排泄物中打滾。很棒!在涉及利益時,我們甚至會讓
自己的“寵物專案”半途而廢。
當然,抱怨別人的爛程式是一種樂趣,但我們會輕易地忘記自己的作品有多糟糕。而且
你從來都不會故意地寫出劣質程式,不是嗎?
42
| 第五章:基礎程式的過往陰魂 ...
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