{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

设计模式精解及面试攻略

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

设计模式精解及面试攻略

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Content Description

全书共9章,第1章全面概述本书主要内容,帮助读者理解;第2章介绍学习后续章节所必需的UML基本介绍和必要概念;第3章介绍设计模式和模式的分类等概念;第4章讨论创造型模式(抽象工厂、工厂方法、生成器、原型和单件模式);第5章讨论结构型模式(适配器、桥接、组成、装饰、外观、享元和代理模式);第6章阐释行为模式(职责链、命令、解释器、迭代器、中介者、备忘录、观察者、状态、策略、模板方法、访问者模式);第7章针对所有设计模式向初学者提供一些提示;第8章包括常见的面试问题及实际示例;第9章涵盖Java面试问题和其他的一些概念,如MVC模式等。
Catalogue

译者序
前言
致谢
第1章概述 1
1.1全书概览 1
1.2设计模式简史 2
1.3本书读者对象 2
1.4本书对面试的帮助 3
1.5如何阅读本书 3
1.6本书主要内容 3
1.7源代码免责声明 4
1.8本书中使用的工具 4
第2章UML基础 5
2.1什么是UML 5
2.2为什么使用UML 5
2.3UML符号 6
2.4面向对象概念 6
2.5面向对象的分析与设计 8
2.6UML构造块和符号 9
2.7事物 9
2.8关系 15
2.9UML图 19
第3章设计模式简介 28
3.1什么是设计模式 28
3.2设计模式简史 28
3.3设计模式的作用 29
3.4设计模式的分类 29
3.5学习设计模式所需注意的问题 30
3.6使用模式并积累设计经验 31
3.7恰当使用设计模式 31
3.8设计模式与软件框架 32
第4章创造型模式 33
4.1创造型模式 33
4.2创造型模式的分类 33
4.3工厂方法模式 34
4.4抽象工厂模式 38
4.5生成器模式 42
4.6单例模式 49
4.7原型模式 53
第5章结构型模式 59
5.1结构型模式 59
5.2结构型模式的分类 59
5.3适配器模式 60
5.4桥接模式 66
5.5组合模式 69
5.6装饰模式 75
5.7门面模式 81
5.8代理模式 87
5.9享元模式 90
第6章行为型模式 97
6.1行为型模式 97
6.2行为型模式的类型 97
6.3职责链模式 98
6.4命令模式 104
6.5解释器模式 109
6.6迭代器模式 112
6.7中介者模式 118
6.8备忘录模式 124
6.9观察者模式 128
6.10状态模式 133
6.11策略模式 136
6.12模板方法模式 139
6.13访问者模式 142
第7章概念与提示 147
7.1什么是反面模式 147
7.2代码重构 147
7.3提示 148
第8章设计模式面试问题 150
8.1设计模式面试问题 150
8.2设计问题举例 228
第9章其他概念 231
参考文献 247
Introduction

Preface前言
亲爱的读者,请先别着急往后翻!我知道你们很多人从来都不读前言。但是我强烈推荐大家在继续阅读之前先好好看一下前言。这是因为本书的前言会提供一些阅读本书所必需的知识。
首先,编写本书时我们假定你有一定量的计算机知识。其次,编写本书的主要目的并不是为大家提供一本设计模式的查询手册或技术面试指南。我们在编写本书之前就设立了以下目标:
本书的语言保证没有任何计算机软件编程背景的读者能够轻松和透彻地理解本书所表述的内容。
本书以简单直接的方法清晰地展示设计模式的核心思想。
在读完本书之后,每位读者都会比以往更加希望优化自己的软件设计,并且会更加乐于参与日常工作中的软件架构设计讨论。
为了让大家更好地理解设计模式,本书提供了足够多的代码示例。这些示例对软件工程师面试也非常有帮助。所以建议大家好好读一读设计面试问题的相关章节。
在读透本书之后,一般软件工程师应该都能达到软件架构师的水准。
在20世纪80年代末,由于软件设计的结果总是令人很不满意,设计模式才真正地被引入程序设计实践之中。在后续的发展过程中,很多抽象方法(算法和数据结构)对于流程化/函数式编程契合得非常完美。但是它们与面向对象编程的联系不多。
随后,一本介绍设计模式的书籍标志着软件设计历史的转折点。1995年,4位精通面向对象的软件设计师(Gamma、Helm、Johnson、 Vlissides)出版了一本介绍23种设计模式的书籍。这本获得了巨大成功的书,又被称为GoF手册。
设计模式不断地帮助初学者(新手)避免常见的错误,并激励高级程序员构建出更好的软件。
本书的编写更像为GoF提出的这些设计模式所举办的庆功会。最近几年,几乎所有面向对象的软件架构都构建在这些设计模式的基础上。
在本书中,为了便于学生和教师理解,我们使用简单例子来诠释设计模式。本书结尾给出了常见的软件设计面试问题,以帮助求职者提升面试表现。
跟随本书深入了解设计模式、软件过程和方法会帮助你开发出更好的应用软件和基本架构。通过阅读本书你能够全面了解这些关键的设计模式。我们自己从中也获益良多,相信各位读者也一定会如此。
如果每一位求职者都能够完成本书的学习并且充分理解本书的内容,那么我相信你一定能够征服面试官。这也是本书的编写目的之一。
本书也适用于软件工程的本科生和研究生的学习与学术研究。本书中的各个章节都包含了设计理论和相关问题。作为一名学生,你也能够通过阅读本书的内容以准备相关考试。本书对各个关键点都有详尽的介绍。
建议各位读者完整阅读本书至少一次,以便对各个知识点有一个大概理解。在后续的学习和阅读过程中,你就能够有的放矢。尽管如此,考虑到人为原因,本书肯定会有部分不实之处,通过不断阅读也能够鉴别书中的谬误。如果你发现了任何错误,我们希望你能够到www.CareerMonk.com上传相关内容。也建议你在阅读本书的过程中多访问该网站,以查看新发现的问题或者任何更正。我们热忱地欢迎你对本书提出宝贵意见:Info@CareerMonk.com。
祝好,我们相信你会发现本书物有所值。
Sreenivasa Rao Meda教授,博士Narasimha KarumanchiCareerMonk.com创始人Acknowledgements致谢首先,感谢我们的家人和亲爱的朋友们。他们对我们生活的支持和鼓励让我们有能力完成本书的编写。
我们还要通过这本书对那些审读本书的朋友表示感激之情,包括对所有为本书提供各种支持,探讨技术问题,提供阅读、编写和修改意见,允许本书引用相关简介,并协助编辑校对和设计的朋友。我们尤其需要感谢下列人士:
Kalyani Tummala,IIT克勒格布尔分校,Xilinx公司Girish P. Saraph教授,Vegayan系统公司创始人Manoj Patra,微软印度公司高级经理A. Vamshi Krishna,IIT坎普尔分校,Mentor图形公司Rambabu Dubbukuri,IIT坎普尔分校,微软印度公司Venkata Ramana Sanaka,诺基亚公司Kishore Jinka,IIT孟买分校Vikas Kedia,IIT孟买分校,谷歌印度公司Suman Somavarapu,IIT孟买分校,De-Shaw印度公司Anil Bhat,IIT罗克分校,微软印度公司Chaganti Siva Rama Krishna Prasad,StockMonks公司创始人Kumar和Jagan,Impression Design Studio公司创始人

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book