<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-is-your-most-used-design-pattern-acjvt58qy" -->

---
title: What is your most used design pattern | daily.dev
description: A developer shares their experience with design patterns, noting that while many patterns exist, few are commonly implemented in practice. The Singleton...
canonical: https://daily.dev/posts/what-is-your-most-used-design-pattern-acjvt58qy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What is your most used design pattern | daily.dev
og:description: A developer shares their experience with design patterns, noting that while many patterns exist, few are commonly implemented in practice. The Singleton...
og:url: https://daily.dev/posts/what-is-your-most-used-design-pattern-acjvt58qy
og:image: https://api.daily.dev/og/posts/ACjVT58qY.png
og:image:alt: What is your most used design pattern
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What is your most used design pattern

**[Krzysztof](https://daily.dev/sources/vlg5h0gcnu7htgcs5hyex)** · [@kris007iron](https://daily.dev/kris007iron) · 1 min read · 440 upvotes · 68 comments

## Summary

A developer shares their experience with design patterns, noting that while many patterns exist, few are commonly implemented in practice. The Singleton pattern stands out as their most frequently used pattern, first encountered while working with Unity Engine for managing shared state across scenes, and later applied across various technologies including Java and TypeScript. The post invites others to share their most commonly used design patterns.

## Content

Although popular, personally, I have never met anyone who would have implemented more than half of the mentioned Design Patterns. Yet sometimes, even unintentionally, I have heard of a pattern that has been implemented over and over as a common solution, usually by my classmates. Do you have such a thing? Maybe you could match its structure to the one described in a book? Or are you familiar with its name? Personally, the
 most used one would be [Singleton](https://en.wikipedia.org/wiki/Singleton_pattern). I hope to learn yours.  I was introduced to it when I was making my first steps in Unity Engine. Implementing it was a way to have some common things set up between the scenes, if I remember correctly, and from then on, I often used it in different technologies, from Java to TypeScript.

## Community discussion

Top comments from developers on daily.dev.

**@randy** · 35 upvotes

> I don't think I can pick just one. Factory Method, Template Method, and Strategy come up a lot. We use Spring Boot, so Singleton is always there, but we also have actual Singleton classes.
>
> I've probably used Decorator and Visitor. And one of the first big things I build used the Builder pattern. In hindsight, I should _not_ have used Builder as it has made the code more verbose than is probably necessary, but I was left to my own devices as a junior dev...
>
> And not in this book, but mentioned somewhere, is the "method object." I can't remember where I saw that one, but I'm pretty sure it's a...

**@akkitto** · 20 upvotes

> Preferring FP over OOP. 😂

**@rafaelvs** · 13 upvotes

> This is a very good topic, raising the point of whether all patterns are truly used.
>
> I believe it's difficult to use them all, but the mistake I see in many teams, companies, or developers is not knowing how to properly explore how each pattern can help them in their project. For example, you mentioned the Singleton pattern, which you used most because it's a simple pattern that was used for a long time, even in universities and parallel courses, as well as the Strategy and Factory patterns. We end up internalizing these patterns and neglecting to explore others, not that it's mandatory, but...

**@bkmny13** · 6 upvotes

> IDK about most used, but my favorite is fly-weight and it's my favorite because before I was really knowledgeable about design patterns (at-least enough to really implement any from the top of my head) I had an issue where my system was consistently running out of memory on a large collection bein returned by the ORM and taking forever before doing so. I implemented the fly-wheel pattern and moved everything i could to a shared instance of those attributes (example: one set of 'Product Sizes' or 'Product Colors', things like that and as soon as the refactor was done, file got saved, page got...

**@catalincodes** · 5 upvotes

> If you're using modern .NET, and using DI for your services, you'll do a mix of something like:
>
> ```cs
> builder.Services.AddTransient<IOperationTransient, Operation>();
> builder.Services.AddScoped<IOperationScoped, Operation>();
> builder.Services.AddSingleton<IOperationSingleton, Operation>();
> ```
> Source: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-10.0#lifetime-and-registration-options
>
>
> So you would probably have:
>
> God Tier: Singleton, Strategy, Iterator
> S-Tier: Factory, Observer, Facade
> A-Tier: Decorator, Adapter, Command
> B-Tier: Builder,...

---

Tags: [#design-patterns](https://daily.dev/tags/design-patterns), [#java](https://daily.dev/tags/java), [#typescript](https://daily.dev/tags/typescript), [#unity](https://daily.dev/tags/unity)

[View this post on daily.dev](https://daily.dev/posts/what-is-your-most-used-design-pattern-acjvt58qy)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/what-is-your-most-used-design-pattern-acjvt58qy","headline":"What is your most used design pattern","text":"A developer shares their experience with design patterns, noting that while many patterns exist, few are commonly implemented in practice. The Singleton pattern stands out as their most frequently used pattern, first encountered while working with Unity Engine for managing shared state across scenes, and later applied across various technologies including Java and TypeScript. The post invites others to share their most commonly used design patterns.","url":"https://daily.dev/posts/what-is-your-most-used-design-pattern-acjvt58qy","datePublished":"2026-01-12T13:53:22.560Z","dateModified":"2026-03-15T06:05:54.894Z","author":{"@type":"Person","name":"Krzysztof","url":"https://daily.dev/kris007iron","image":"https://media.daily.dev/image/upload/s--tmYCYdbs--/f_auto/v1728021790/avatars/avatar_vlG5h0GCnu7Htgcs5HyEX","description":"Enthusiasts of programming currently working on becoming better engineer.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":2515}},"image":"https://media.daily.dev/image/upload/s--OG4tMLUC--/f_auto/v1768226128/posts/ACjVT58qY?_a=BAMAMiZW0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":440},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":68}],"comment":[{"@type":"Comment","text":"I don’t think I can pick just one. Factory Method, Template Method, and Strategy come up a lot. We use Spring Boot, so Singleton is always there, but we also have actual Singleton classes.\nI’ve probably used Decorator and Visitor. And one of the first big things I build used the Builder pattern. In hindsight, I should not have used Builder as it has made the code more verbose than is probably necessary, but I was left to my own devices as a junior dev…\nAnd not in this book, but mentioned somewhere, is the “method object.” I can’t remember where I saw that one, but I’m pretty sure it’s a Beck/Fowler concept. It really helps our code have readability and separation of concerns, not to mention reusability.","datePublished":"2026-01-12T14:30:47.397Z","url":"https://daily.dev/posts/ACjVT58qY#c-NkNdtZbbK","author":{"@type":"Person","name":"Randy","url":"https://daily.dev/randy","image":"https://media.daily.dev/image/upload/s--UjV4-KkB--/f_auto/v1708097210/avatars/avatar_HXYbbGcBO38Rfv7RrCBdA"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":35}},{"@type":"Comment","text":"Preferring FP over OOP. 😂","datePublished":"2026-01-13T02:19:36.641Z","url":"https://daily.dev/posts/ACjVT58qY#c-1NkGAhFyH","author":{"@type":"Person","name":"Daniel","url":"https://daily.dev/akkitto","image":"https://media.daily.dev/image/upload/s--FtwJqX4c--/f_auto/v1754900041/avatars/avatar_29TCpY2hJR72V3BlxPXzX?_a=BAMClqZW0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":20}},{"@type":"Comment","text":"This is a very good topic, raising the point of whether all patterns are truly used.\nI believe it’s difficult to use them all, but the mistake I see in many teams, companies, or developers is not knowing how to properly explore how each pattern can help them in their project. For example, you mentioned the Singleton pattern, which you used most because it’s a simple pattern that was used for a long time, even in universities and parallel courses, as well as the Strategy and Factory patterns. We end up internalizing these patterns and neglecting to explore others, not that it’s mandatory, but it can be helpful.\nSome time ago I made a post here and on my blog about a similar discussion on TDD (Test-Driven Development) from another post, so I raised my opinion on whether people know what it is and if they really use it, since it’s a methodology…\nI think what’s really lacking is exploration because they are concepts and patterns, where even mixing one with another is normal. So, we shouldn’t be stuck with the patterns presented to us but rather explore them all if possible. This book is very good for that very purpose.","datePublished":"2026-01-13T13:06:51.563Z","url":"https://daily.dev/posts/ACjVT58qY#c-tLYCJaerQ","author":{"@type":"Person","name":"Rafael Vieira dos Santos","url":"https://daily.dev/rafaelvs","image":"https://media.daily.dev/image/upload/s--QOYsKh2G--/f_auto/v1777545842/avatars/avatar_cl2Pnr0VcHx7767hHJODL?_a=BAMAMiWQ0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":13}},{"@type":"Comment","text":"IDK about most used, but my favorite is fly-weight and it’s my favorite because before I was really knowledgeable about design patterns (at-least enough to really implement any from the top of my head) I had an issue where my system was consistently running out of memory on a large collection bein returned by the ORM and taking forever before doing so. I implemented the fly-wheel pattern and moved everything i could to a shared instance of those attributes (example: one set of ‘Product Sizes’ or ‘Product Colors’, things like that and as soon as the refactor was done, file got saved, page got refreshed (it was PHP) &amp; before I could even cross my fingers / begin to pray to the code gods, the page in question had reloaded fully w/ all the rows in my grid beautifully hydrated. My jaw dropped to the floor at the sheer amount of performance gain / how awesomely graceful and simple it was to ultimately solve my problem by using that kind of pattern thinking. Between seeing it solve my problem right away &amp; implications of writing better code using design patterns my mind was blown. I felt like I had levelled up for the first time in a long time. For that, I’ll always have a soft spot for the fly-wheel pattern in my heart and toolbox!","datePublished":"2026-01-13T16:54:29.766Z","url":"https://daily.dev/posts/ACjVT58qY#c-yKhSJtjor","author":{"@type":"Person","name":"Brandon Kagey","url":"https://daily.dev/bkmny13","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}},{"@type":"Comment","text":"If you’re using modern .NET, and using DI for your services, you’ll do a mix of something like:\nbuilder.Services.AddTransient&lt;IOperationTransient, Operation&gt;();\nbuilder.Services.AddScoped&lt;IOperationScoped, Operation&gt;();\nbuilder.Services.AddSingleton&lt;IOperationSingleton, Operation&gt;();\n\nSource: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-10.0#lifetime-and-registration-options\nSo you would probably have:\nGod Tier: Singleton, Strategy, Iterator\nS-Tier: Factory, Observer, Facade\nA-Tier: Decorator, Adapter, Command\nB-Tier: Builder, Proxy, State\nPersonally, I almost always end up using Factory, Strategy and without knowing I use Iterator and Singleton (because C# will always use them)","datePublished":"2026-01-13T13:24:26.884Z","url":"https://daily.dev/posts/ACjVT58qY#c-i0VY4YJUB","author":{"@type":"Person","name":"Catalin","url":"https://daily.dev/catalincodes","image":"https://media.daily.dev/image/upload/s--dPI_Qfxp--/f_auto/v1717856576/avatars/avatar_N60Y1zup0kLFNR5dsq5H7"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/vlg5h0gcnu7htgcs5hyex","name":"Krzysztof"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Krzysztof","item":"https://daily.dev/sources/vlg5h0gcnu7htgcs5hyex"},{"@type":"ListItem","position":3,"name":"What is your most used design pattern"}]}
```

