---
title: "Discussion on \"Strategy pattern (Ever wanted to choose the algorithm during runtime?)\" | Hashnode"
description: "Discussion on \"Strategy pattern (Ever wanted to choose the algorithm during runtime?)\". Writing readable and extendable code is magic. Be a magician. \n Anonymous (jk. It's me) \n\n Strategy pattern \n  The strategy pattern helps to decide which algorithm to use during runtime thus giving more reusability and extensibilty.\n\n\nProblem: \n  You..."
url: "https://hashnode.com/posts/strategy-pattern/5fea17315283d44a62c721f9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Strategy pattern (Ever wanted to choose the algorithm during runtime?)](https://buildwithsammie.hashnode.dev/strategy-pattern?utm_source=hashnode&utm_medium=feed)

Writing readable and extendable code is magic. Be a magician. Anonymous (jk. It's me) Strategy pattern The strategy pattern helps to decide which algorithm to use during runtime thus giving more reusability and extensibilty. Problem: You...

Dec 28, 2020 · 5 min read · buildwithsammie.hashnode.dev  
Read the article

-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#design-principles](https://hashnode.com/tag/design-principles)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)
-   [#java](https://hashnode.com/tag/java)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Samuel Johnson R](https://hashnode.com/@samiemovic)

@samiemovic · Tamil Nadu, India

  
[View profile](https://hashnode.com/@samiemovic)

Software Engineer by day. Ninja by night.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
