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項必修法則
第三十一章
更聰明,而不是更辛苦
戰爭是透過殺戮與行動來取得勝利的。
愈偉大的將軍,會貢獻愈多行動,需要的殺戮就愈少。
- Winston Churchill
告訴你一個真實的故事。有一個同事正在寫一些 UI 程式,需要在他的畫面放上弧形的
箭頭。他很掙扎地使用所提供的基本繪圖工具來編寫後,我建議他只要把圖形放在畫面
上就好,這容易多了。
所以他就去做了。他使用 Photoshop,修改、調整,並製造更多箭頭。當時,在這個勞
斯萊斯級的圖像組合應用程式中,無法快速且簡單地畫出弧形的箭頭。大概只有經驗豐
富的圖形設計者才可以在兩分鐘之內做出一個。但是經過幾乎一個小時的繪製、剪裁、
組合及排列,他仍然沒有一個令人滿意的弧形箭頭。
當他想要去泡杯茶時,跟我提這件事。
他回來時,手裡拿著茶,發現桌面上有一個閃閃發亮的弧形箭頭圖像準備讓他使用。
“為什麼你可以這麼快就做出來?”他問。273
“我只是使用正確的工具,”我邊回答,邊躲開飛濺的茶水。
Photoshop
或許
已經是正確的工具了。它可以完成大部分的圖像設計工作。但是我知道
Open Office 提供一個方便的弧形箭頭設置工具。我 10 秒鐘就畫出一個,並把一個螢幕
截圖傳給他。它並不優雅,但有用。
這是有道德的做法嗎?
286
| 第卅一章:更聰明,而不是更辛苦
把重心放在單一工具上,或者使用同一種方法來解決問題 ...
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