Skip to Content
程序员的38堂成长课
book

程序员的38堂成长课

by Pete Goodliffe
January 2022
Beginner to intermediate
314 pages
6h 55m
Chinese
Posts & Telecom Press
Content preview from 程序员的38堂成长课
用智不用力
235
这有什么寓意吗?
过度专注于用一种工具或单一方法来解决问题始终存在风险。你很容易几小时钻进死胡同
出不来,而看不见有一条更简单、更直接的路通往目标。
怎样才能做得更好呢?
31.1
 慎选战场
要成为高效的程序员,你需要学会在工作中
更聪明
,而不是
更努力
。有经验的程序员的标
志不仅仅是技术敏锐,还有其解决问题和选择突破方向的方式。
有经验的程序员很快就能完成工作。他们不会像鲁莽的新手那样贸然出击。他们的工作方
式更明智。他们不是更聪明,而是更清楚如何
有效地解决问题
。丰富的经验会指导他们使
用正确的方法。他们可以横向看问题并找到解决方案——应用一种不那么常规的方式完成
工作,并且中途基本不会有太多困难。他们知道如何绕过那些若隐若现的障碍。他们可以
做出明智的决定,投入最少的精力,取得最多的成果。
31.2
 战斗策略
下面这些简单的方法可以帮你做出更明智的选择。
31.2.1
 复用智慧
当你可以使用现有的库或复用其他项目的代码时,不要自己编写。
即使第三方库需要付费,采用已有的方案通常也比自己实现成本更低。测试和调试已有方
案也更节省成本。
要诀
使用已有的代码,而不是自己从头开始编写。把时间用在更重要的事
情上。
克服“
非我所创
”综合征。许多人认为自己可以做得更好,或者会为特定应用创建一个更
合适的版本。真的有必要这样做吗?即使其他代码的设计你不喜欢,也可以使用它。既然
它能够满足需求,就不必重新创造。集成到系统中的时候,可以根据需要创建一个合适的
对外接口。
31.2.2
 转变成别人的问题
如果某一件事别人已经有了解决方案,就不要自己去做 ...
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

管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
Python应用开发指南

Python应用开发指南

Posts & Telecom Press, Ninad Sathaye
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115577948