ValueOf
eShopOnWeb
ValueOf | eShopOnWeb | |
---|---|---|
9 | 46 | |
833 | 9,931 | |
- | 0.8% | |
0.0 | 8.0 | |
about 1 year ago | 17 days ago | |
C# | C# | |
MIT License | 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.
ValueOf
-
Robust Design through Value Objects in C#
As we anticipate advancements in C#, we can still forge ahead with crafting resilient applications by utilizing the "ValueOf" package as a provisional solution. Below, we create a validated EmailAddress class leveraging the package:
-
Check out new C# 12 preview features! - .NET Blog
Probably better to use something like https://github.com/mcintyre321/ValueOf until we get a better solution (if we ever do). I agree that this is a pitfall.
-
Strong typedefs
The problem you’re describing here I think is ‘primitive obsession’, and the solution you’ve described is I think essentially a value object. This library might be useful https://github.com/mcintyre321/ValueOf
-
New Exception helpers in .NET 8
It lacks compile-time validation (though an analyzer that at least detects validation errors in the constructor should be fairly easy; more complicated flow control cases are probably hard), but at runtime, https://github.com/mcintyre321/ValueOf would let you do that.
- The power of OneOf. Unions for C#
-
Class vs Struct
If you want to wrap a small number of properties in a type to avoid primitive obsession, consider using ValueOf.
-
Is there anyway to override default values of the decimal type in c#?
You might be able to create a wrapper type with something like ValueOf.
-
Primitive Obsession
I good library I've found for addressing this issue is https://github.com/mcintyre321/ValueOf
eShopOnWeb
-
How to find a sample enterprise applications?
- https://github.com/dotnet-architecture/eShopOnWeb (a Microsoft example -- also includes the link to a recent livestream which provides an overview)
-
Best .NET Core API project for learning?
https://github.com/dotnet-architecture/eShopOnWeb for studying best practices
-
eShop vs eShopOnWeb?
dotnet-architecture/eShopOnWeb: Sample ASP.NET Core 7.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder. (github.com)
-
What are the GitHub repositories or blogs to learn industry-standard coding for Web API
There is also https://github.com/dotnet-architecture/eShopOnWeb
- How do you make docker-compose and kubernetes files for .NET applications?
-
React developer to NET
A fully featured sample ASP .NET Core Application
- I am new to .NET, can you guys recommend resources for a complete beginner
- Confusion about whether DTOs having validation logic is acceptable or terrible.
- My SWE internship starts soon but I haven't coded in a year
- Java guy maybe moving to .NET -- what to learn?
What are some alternatives?
OneOf - Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching
eShopOnContainers - Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor. Moved to https://github.com/dotnet/eShop.
FSharp.UMX - F# units of measure for primitive non-numeric types
CleanArchitecture - Clean Architecture Solution Template for ASP.NET Core
EngineeringUnits - Working with units made easy with automatic unit-check and converting between units
nopCommerce - ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
coolstore-microservices - A full-stack .NET microservices build on Dapr and Tye
spring-petclinic - A sample Spring-based application
StringlyTyped - A cure for StringlyTyped software and PrimitiveObsession
modular-monolith-with-ddd - Full Modular Monolith application with Domain-Driven Design approach.
csharplang - The official repo for the design of the C# programming language
Orchard Core - Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.