Geek Culture
Published in

Geek Culture

Photo by on

Strategy design pattern in Python

Loosely coupled algorithm selection

Strategy pattern is a . It allows an object to choose between different strategies in a structured way.

A strategy might be an algorithm — for example, your code might need to apply various search algorithms to a data set. You might need to be able to search a list of words for an exact match, or a matching starting…

--

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Recommended from Medium

https://t.co/IbJaJ6SXDz

Tekton — Kubernetes Native CI/CD

How to Access A Secure Elasticache Cluster?

How Experienced Developers Get Up to Speed with a Complex Project

5 Methods of Debugging the Value of the Variable in Python Using PyCharm

Let’s code with Leetcode

GIT with IntelliJ IDEA: Problem-Solution aproach

Weekly Update #21 (24/4/22)

JOLT ONLY staking pool

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Martin McBride

Martin McBride

Software developer. Java, Python, C++ etc. I write for and maintain the generativepy library.

More from Medium

Pydantic validators v.s. custom data type

How to Write Clean Code (in Python) With SOLID Principles | Principle #4

Abstract Factory design pattern in Python

Python Design Pattern- Creational | Part 1