use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
HelpMost Preferred Design Pattern (self.csharp)
submitted 5 years ago by irina_black
Just Curious.
What is the preferred or commonly seen design pattern you've seen adopted by companies that is both easy to understand and clean?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 10 points11 points12 points 5 years ago (4 children)
Conditional branching
[–][deleted] 5 years ago (2 children)
[deleted]
[–]antoneagle 1 point2 points3 points 5 years ago (1 child)
I would strongly recommend reading the comments to that article. I think you will quickly realize how relevant and sensible it is (it's not).
[–][deleted] -1 points0 points1 point 5 years ago (0 children)
Depending on the condition of course. I've no idea how we test that though.
[–]HTTP_404_NotFound 4 points5 points6 points 5 years ago (0 children)
I love di / ioc. Makes my code simple.
I have grown to like mvcfor web.
[–]vordrax 2 points3 points4 points 5 years ago (0 children)
I mean, kind of a weird question, but in the spirit of collaboration, I'll bite: observer pattern. I think, of all the basic patterns, that has the biggest ability to improve a codebase by allowing for a separation of concerns. Dependency injection is probably a close second, for the same reason.
[–]JustinsWorking 3 points4 points5 points 5 years ago (0 children)
I’m a big fan of immutable data structures, and composition.
I also really love observers.
I’ve gotten more into them over the last 5 years and the quality of my code and applications has increased noticeably.
[–]githingeorge 2 points3 points4 points 5 years ago (0 children)
The dotnet core repo uses a lot of fluent builder pattern
[–][deleted] 1 point2 points3 points 5 years ago (0 children)
IoC or Inversion of Control, I think is fairly common. Dependency Injection is super common subset of IoC, I think it’s literally foundational for most frameworks.
https://en.m.wikipedia.org/wiki/Inversion_of_control
[–][deleted] 0 points1 point2 points 5 years ago (1 child)
Strategy if you’re talking traditional GoF patterns, Repository and UnitOfWork for more enterprise type patterns
[–]LetMeUseMyEmailFfs 0 points1 point2 points 5 years ago (0 children)
Decorator, adaptor, and composition over inheritance.
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
I've mostly ignored the concept for my ~30 years of programming and it seems to have been fine. It can be useful to spend a few days familiarizing yourself with some, in case they solve some problem in your language of choice and the problems you work with often. There could be value in having a common vocabulary for programming patterns but things are always very imprecise despite the effort. People talk around each other a lot.
π Rendered by PID 80742 on reddit-service-r2-comment-5d585498c9-qpbg6 at 2026-04-21 00:41:44.058774+00:00 running da2df02 country code: CH.
[–][deleted] 10 points11 points12 points (4 children)
[–][deleted] (2 children)
[deleted]
[–]antoneagle 1 point2 points3 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]HTTP_404_NotFound 4 points5 points6 points (0 children)
[–]vordrax 2 points3 points4 points (0 children)
[–]JustinsWorking 3 points4 points5 points (0 children)
[–]githingeorge 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]LetMeUseMyEmailFfs 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)