|
This post originated from an RSS feed registered with .NET Buzz
by David Cumps.
|
Original Post: Design Patterns - Strategy Pattern
Feed Title: David Cumps
Feed URL: http://weblogs.asp.net/cumpsd/rss?containerid=12
Feed Description: A Student .Net Blog :p
|
Latest .NET Buzz Posts
Latest .NET Buzz Posts by David Cumps
Latest Posts From David Cumps
|
|
The first pattern I want to talk about is the Strategy pattern, which always reminds me about the Command & Conquer games so I’ll simply use it as an example :)
First of all, the definition: "Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it."
I’m bad at remembering definitions or trying to imagine what they really mean, so let’s just go ahead and try to create something and learn as we go, eventually we’ll end up implementing the Strategy pattern and you’ll 'get it' for the rest of your life, without a definition.

Read more at http://blog.cumps.be/design-patterns-strategy-pattern/
Read: Design Patterns - Strategy Pattern