Skip to Content
Head Firstデザインパターン 第2版 ―頭とからだで覚えるデザインパターンの基本
book

Head Firstデザインパターン 第2版 ―頭とからだで覚えるデザインパターンの基本

by Eric Freeman, Elisabeth Robson, 佐藤 直生, 木下 哲也
June 2022
Beginner to intermediate
672 pages
17h 23m
Japanese
O'Reilly Japan, Inc.
Content preview from Head Firstデザインパターン 第2版 ―頭とからだで覚えるデザインパターンの基本
最初のパターンの
習得、おめでとう
ございます!
最初のデザインパターンである「
Strategy
」パターンを適用しまし
た。
Strategy
パターンを使用して
SimUDuck
アプリを作り直した
のです。このパターンのおかげで、このシミュレータは経営幹部が
マウイへの次の出張の際に思いつきそうなあらゆる変更に対処でき
ます。
これまでこのパターンの学習に長い道のりを費やしてきたので、こ
こではこのパターンの正式な定義を紹介しましょう。
Strategyパターンは一連のアルゴリズムを定義してカプセル
化し、交換できるようにします。
Strategy
パターンを使うと、
アルゴリズムを利用するクライアントとは独立してアルゴリ
ズムを変更できます。
デザインパターンのことを話そう
友人を感心させたり主な経営幹
部に影響を与えたりする必要が
あるときには、この定義を使い
ましょう。
24
 
1
章
Strategy
パターン
 アクションアドベンチャーゲーム用のクラスとインタフェースが散らばっています。
ゲームキャラクター用のクラスと、キャラクターがゲーム内で使用できる武器の振る舞い
用のクラスがあります。各キャラクターは一度に
1
つの武器しか使用できませんが、ゲー
ム中はいつでも武器を交換できます。みなさんの仕事は、すべてを整理することです。
 
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

マッピングエクスペリエンス ―カスタマージャーニー、サービスブループリント、その他ダイアグラムから価値を創る

マッピングエクスペリエンス ―カスタマージャーニー、サービスブループリント、その他ダイアグラムから価値を創る

James Kalbach, 武舎 広幸, 武舎 るみ

Publisher Resources

ISBN: 9784873119762Other