---
title: "#strategypattern articles | Hashnode"
description: "Explore 35 articles tagged #strategypattern on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/strategypattern"
---

Tag

# #strategypattern

35 posts · 1 followers

[Kartik Gupta](https://hashnode.com/@thebackendtechie) · [Jan 7](https://hashnode.com/posts/design-patterns/695dcf014adf7034f53526e7)

### [Design Patterns](https://backendtechie.hashnode.dev/design-patterns?utm_source=hashnode&utm_medium=feed)

1\. Strategy Pattern When to Use: Multiple algorithms or behaviours for the same task Need to switch logic at runtime Want to avoid big if-else or switch statements Example: Payment System ❌ What NOT to do if (type.equals("CARD")) { // card ...

4 min read · [backendtechie.hashnode.dev](https://backendtechie.hashnode.dev/design-patterns?utm_source=hashnode&utm_medium=feed)

[01 Tanishq Mohod](https://hashnode.com/@TanishqMohod) · [Jan 5](https://hashnode.com/posts/stop-using-inheritance-everywhere-master-the-strategy-design-pattern/695bfdb4a1c45d8699b0186b)

### [Stop Using Inheritance Everywhere: Master the Strategy Design Pattern](https://tanishqcoding.hashnode.dev/stop-using-inheritance-everywhere-master-the-strategy-design-pattern?utm_source=hashnode&utm_medium=feed)

Welcome Back 👋 In the last blog, we explored SOLID principles — the rules of good object-oriented design. But knowing principles alone is not enough. 👉 The real question is:How do we apply these principles while designing real systems? That’s where...

6 min read · [tanishqcoding.hashnode.dev](https://tanishqcoding.hashnode.dev/stop-using-inheritance-everywhere-master-the-strategy-design-pattern?utm_source=hashnode&utm_medium=feed)

[Jeetjyoti Deka](https://hashnode.com/@Jeetjyoti) · [Dec 26, 2025](https://hashnode.com/posts/strategy-pattern-in-go-learning-software-architecture/694e61dd582be5961811f842)

### [Strategy Pattern in Go: Learning Software Architecture](https://jeet-blogs.hashnode.dev/strategy-pattern-in-go-learning-software-architecture?utm_source=hashnode&utm_medium=feed)

Learning software architecture by building and explaining in public

5 min read · [jeet-blogs.hashnode.dev](https://jeet-blogs.hashnode.dev/strategy-pattern-in-go-learning-software-architecture?utm_source=hashnode&utm_medium=feed)

[Usman Soliu](https://hashnode.com/@devFresher) · [Sep 25, 2025](https://hashnode.com/posts/building-a-notification-system-in-nestjs-part-2/68d58a9a083f990de1d3ac73)

### [Building a Notification System in NestJS - Part 2](https://code-along.hashnode.dev/building-a-notification-system-in-nestjs-part-2?utm_source=hashnode&utm_medium=feed)

The Smart Strategy Pattern

8 min read · [code-along.hashnode.dev](https://code-along.hashnode.dev/building-a-notification-system-in-nestjs-part-2?utm_source=hashnode&utm_medium=feed)

[Kristiadhy](https://hashnode.com/@kristiadhy) · [Sep 23, 2025](https://hashnode.com/posts/implementing-the-open-closed-principle-with-strategy-and-factory-patterns/68d2a96cdd7a479236dedb63)

### [Implementing the Open-Closed Principle with Strategy and Factory Patterns](https://krisoncode.com/implementing-the-open-closed-principle-with-strategy-and-factory-patterns?utm_source=hashnode&utm_medium=feed)

Learn how to implement the Open-Closed Principle using Strategy and Factory Patterns for flexible, easily extendable software design

5 min read · [krisoncode.com](https://krisoncode.com/implementing-the-open-closed-principle-with-strategy-and-factory-patterns?utm_source=hashnode&utm_medium=feed)

[Cao Trung Đức](https://hashnode.com/@caotrungduc) · [Sep 18, 2025](https://hashnode.com/posts/strategy-pattern-giai-phap-cho-mot-class-phai-ganh-qua-nhieu-logic/68cb6eec1accd7d14983e77f)

### [Strategy Pattern – Giải pháp cho một class phải "gánh" quá nhiều logic](https://caotrungduc.hashnode.dev/strategy-pattern-giai-phap-cho-mot-class-phai-ganh-qua-nhieu-logic?utm_source=hashnode&utm_medium=feed)

Discover the Strategy Pattern to manage complex logic in classes efficiently by separating algorithms into distinct, interchangeable strategies

6 min read · [caotrungduc.hashnode.dev](https://caotrungduc.hashnode.dev/strategy-pattern-giai-phap-cho-mot-class-phai-ganh-qua-nhieu-logic?utm_source=hashnode&utm_medium=feed)

[Johnny Hideki Kinoshita de Faria](https://hashnode.com/@johnnyhideki) · [Aug 9, 2025](https://hashnode.com/posts/mastering-5-design-patterns-in-c-part-1/68975f715605eeaee0ffd5a6)

### [🧠Mastering 5 Design Patterns in C# - Part 1](https://johnnyhideki.hashnode.dev/mastering-5-design-patterns-in-c-part-1?utm_source=hashnode&utm_medium=feed)

A Comparative Guide Using the Same Example

5 min read · [johnnyhideki.hashnode.dev](https://johnnyhideki.hashnode.dev/mastering-5-design-patterns-in-c-part-1?utm_source=hashnode&utm_medium=feed)

[Maverick](https://hashnode.com/@maverick48) · [Jun 16, 2025](https://hashnode.com/posts/strategy-design-pattern/685065dc68f190956e22e7f6)

### [Strategy Design Pattern](https://jyanshu.hashnode.dev/strategy-design-pattern?utm_source=hashnode&utm_medium=feed)

Discover the Strategy Design Pattern: Enhance flexibility and maintainability in your code through interchangeable algorithms and easy scalability.

6 min read · [jyanshu.hashnode.dev](https://jyanshu.hashnode.dev/strategy-design-pattern?utm_source=hashnode&utm_medium=feed)

[Manoj Kumar](https://hashnode.com/@Manoj8222) · [May 30, 2025](https://hashnode.com/posts/system-design-day-44/6839ddeafb4db08e5bae09d9)

### [System Design ( Day - 44 )](https://systemdesignbymanoj.hashnode.dev/system-design-day-44?utm_source=hashnode&utm_medium=feed)

Design Patterns ( Strategy Design ) Why Design PattersBecause Someone has already encountered the common problem and come up with the solution which is already proven and that can be reusable whenever that problem occurs to improve code quality and e...

2 min read · [systemdesignbymanoj.hashnode.dev](https://systemdesignbymanoj.hashnode.dev/system-design-day-44?utm_source=hashnode&utm_medium=feed)

[Mirna De Jesus Cambero](https://hashnode.com/@mirnadjc) · [May 15, 2025](https://hashnode.com/posts/strategy-design-pattern-clear-and-concise-with-java-examples/682607e697b3d3dc2b3d3821)

### [Strategy Design Pattern: Clear and Concise with Java Examples](https://codelikeawoman.com/strategy-design-pattern-clear-and-concise-with-java-examples?utm_source=hashnode&utm_medium=feed)

The Strategy pattern lets you define a family of algorithms, encapsulate each one, and make them interchangeable. It enables selecting an algorithm at runtime, promoting flexibility and adherence to SOLID principles. Understanding the Class Diagram ...

4 min read · [codelikeawoman.com](https://codelikeawoman.com/strategy-design-pattern-clear-and-concise-with-java-examples?utm_source=hashnode&utm_medium=feed)
