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項必修法則
第十七章
用你的大腦
"
兔子是聰明的
"
小熊維尼若有所思地說。
“對,”小豬說“兔子是聰明的。”
“而且他有腦袋。”
“對,”小豬說“兔子有腦袋。”
一段很長的靜默。“我認為,”
小熊維尼說“這就是他永遠無法瞭解任何事情的原因。”
- A.A. Milne
小熊維尼
“用你的大腦”不是針對粗心大意的同事的眨義禁令。相反,它是給盡職的程式員遵守
的核心原則。它是我的團隊第二條親選的規則,供大師級程式設計參考。它在我們日常
編程方案中,有很多重要的應用。153
別傻
我們已經提過 KISS 規則了:保持簡單,愚蠢。我們在這裡往前再進一步:不要像個笨
。這聽起來像個明顯的建議,但我們程式員需要被一再地提醒。
有時很讓人難以置信,超級聰明的人為什麼會這麼愚蠢。有些超級天才罹患一種慢性疾
病,自動忽略常識。因為他們近視了,所以像忍者一樣跳過程式碼,他們會錯過明顯就
在眼前的東西。令人敬畏的建築師會走到牆裡面,因為他們的頭卡在雲裡面。
典型的宅男才會做的事。
160
| 第十七章:用你的大腦
編寫一個讓人興奮的新演算法或建構一個靈巧的資料結構的慾望會消耗我們的精力,如
果遮蔽我們的觀察力,只要一個陣列就夠了。在急於釋出版本時,很容易就會草草寫出
大量不標準的程式,壓力讓我們比較不會仔細思考。我們會編寫
愚蠢
的程式。
專家會這麼做,我們凡人也會 ...
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