SwissChecklist

Checklist: Programming Design Patterns - Strategy Pattern - Learning

Use this checklist to learn the Strategy Pattern
  • Background to Programming Patterns and This Pattern

    Show Details Show Substeps Show Substeps Show Substeps
  • To learn this pattern, ensure you know what programming patterns are

    Show Details Show Substeps Show Substeps Show Substeps
  • Understand what the Strategy Pattern is for

    Show Details Show Substeps Show Substeps Show Substeps
  • Examples using the Strategy Pattern

    Show Details Show Substeps Show Substeps Show Substeps
  • Changing algorithm - for example the encryption you'll use - with configuration

    Show Details Show Substeps Show Substeps Show Substeps
    This is an important real-live example: you never know, when an encryption method is cracked. So if your code has any kind of encryption, it would be good to do this in a way that can change the algorithm, simply by changing the configuration information. There is a good article in MSDN Magazine on this (todo: add).
  • Changing algorithms at runtime

    Show Details Show Substeps Show Substeps Show Substeps
    Many systems will also dynamically want to apply different "strategies" at runtime. Instead of developing a never-ending if-then-else block, and extending it with every additional wish, it's cleaner to use the strategy pattern and accessing the right strategy dynamically.
  • Business Rules

    Show Details Show Substeps Show Substeps Show Substeps
    An ERP-Software might have many standard components, but each customer will want other things to happen in certain situations. For example, customer A) might want the creation of a bill logged, while customer B) might want the creation of a bill to automatically generate a delivery receipt as well. Instead of programming all possible options, you can create a standardized ERP, which has Business Rules implemented with the Strategy Pattern.
  • First Steps using the Strategy Pattern (todo)

    Show Details Show Substeps Show Substeps Show Substeps
  • Learning the Strategy Pattern

    Show Details Show Substeps Show Substeps Show Substeps
  • Using the Strategy Pattern

    Show Details Show Substeps Show Substeps Show Substeps
    From now on, whevener you need the strategy pattern, you can use this checkist.
  • Using the Strategy Pattern

    Show Details Show Substeps Show Substeps Show Substeps
  • New Step

    Show Details Show Substeps Show Substeps Show Substeps
Use this Checklist

Preview/Print

Use

Change

Sort