design-patterns-explained-with-food
SmartEnum
design-patterns-explained-with-food | SmartEnum | |
---|---|---|
8 | 7 | |
2,409 | 2,055 | |
- | - | |
0.0 | 8.1 | |
4 months ago | 4 days ago | |
C# | C# | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
design-patterns-explained-with-food
- A unique and helpful explanation of design patterns.
- Design Patterns Explained with Food 🥕
- GoF Design Patterns with “Real-World” Examples Involving Food-Related Businesses
-
Best .NET Posts This Week: 24th January 2021
Design Patterns Explained with Food
-
Design Patterns - Explained with Food
I was wondering why you are not using abstract methods but instead declaring the method as virtual and throwing NotImplementedException, like [here](https://github.com/wesdoyle/design-patterns-explained-with-food/blob/main/StructuralPatterns/Bridge/FarmersMarketVendor.cs)?
SmartEnum
- Java or C# for backed
-
Is there a "right" way to consolidate constants in C#/.NET?
I agree SmartEnum is my go-to for this
-
best practice to create a method with params of limited values
If we knew more about these methods and what kinds of parameters they take we could maybe make some suggestions. There are some patterns like smart enum that are sometimes just the thing.
-
Smart Enums In C# Like Java
In C# I am not able to add constructors, properties, and methods. although there is a library to do this https://github.com/Ardalis/SmartEnum but wouldn't be nice if we have this feature built-in to C#.
- What is it about C# that you do NOT like compared to other languages?
-
Displaying Enums with custom value
You can use the SmartEnum library.
- C# records can be used to emulate Java's fancy enums.
What are some alternatives?
Enums.NET - Enums.NET is a high-performance type-safe .NET enum utility library
SmartAnnotations - A library for .NET that uses source generators to automatically generate data annotations for your models.
csharplang - The official repo for the design of the C# programming language
Result - A result abstraction that can be mapped to HTTP response codes if needed.
NodaTime - A better date and time API for .NET
UnitsNet - Makes life working with units of measurement just a little bit better.
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
software-design-patterns - C# Design Patterns Tutorial Sample Code
csharp-dotnet-digest-authentication - A basic example of digest authentication using C# and .NET
Crow - C# Rapid Open Widgets