Software Design Pattern By Example: Strategy

Explain Strategy Design Pattern in an easy-to-understand example

Zhimin Zhan
4 min readNov 26, 2021

--

(I know the majority of this blog’s readers are testers or automation/DevOps engineers. This one is about software design.)

Table of Contents:· The Problem: GCD
· Preparation
Implement individual algorithms
· Sub-optimal Design
· Strategy Pattern
· Apply Strategy pattern again
· Exercise
A quick introduction to Object-Oriented in C++

The Problem: GCD

--

--

Zhimin Zhan

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.