Skip to Content
面向对象的思考过程(原书第5版)
book

面向对象的思考过程(原书第5版)

by 马特 魏斯费尔德
August 2021
Intermediate to advanced
450 pages
4h 46m
Chinese
Pearson
Content preview from 面向对象的思考过程(原书第5版)

第6章 使用对象进行设计

当使用软件产品时,你期望它和宣传的一样好。不幸的是,并不是所有的产品都符合期望。问题在于开发大量产品时,大部分时间和精力都花在了开发阶段,而不是设计阶段。

面向对象的设计已经被吹捧为健壮和灵活的软件开发方式。实际情况是你可以创建优秀的或者糟糕的面向对象设计,正如之前你可以创建优秀的或者糟糕的非面向对象设计一样。不要因为你正在使用一个先进的设计方法就认为你的设计是正确的。你必须注意整体设计,投入适量的时间和精力来创造出尽可能最好的产品。

在第5章中我们关注如何设计优秀的类。本章关注设计优秀的系统。系统可以被定义为相互交互的类。在软件开发的历史中优秀的设计实践贯穿始终。无论是否使用了面向对象的技术,我们没有任何原因放弃利用充满软件前辈们热血、汗水和眼泪的成就。

利用之前的成就并不限于设计实践。你甚至可以把已存在的遗留代码包含到面向对象设计中。很多情况下可以把已经正常工作数年的代码通过迭代的方式包装到对象中。本章稍后会讨论包装技术。

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

Node与Express开发(第2版)

Node与Express开发(第2版)

Ethan Brown
计算机科学导论:跨学科方法

计算机科学导论:跨学科方法

罗伯特 塞奇威克, 凯文 韦恩
手把手教会你linux

手把手教会你linux

桑德.范.乌格特
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉

Publisher Resources

ISBN: 9787111684527