dunet icon indicating copy to clipboard operation
dunet copied to clipboard

Improve samples

Open domn1995 opened this issue 2 years ago • 0 comments

As a developer who is considering using Dunet, I want a collection of different real-world samples to help me determine if the library makes sense for my use case.

As a current user of Dunet, I want a collection of different real-world samples to help me better understand how/when to use the library.

Sample ideas:

  • Web application: A result union that models the outcome of some business logic. This result is passed back to a controller to be mapped into the proper response.
  • Improved calculator: Model an operation as a union of operators. Calculator logic depends on the user selected operator.
  • Web Client: Monads to represent different HTTP request results. Option monad for operations that may return nothing. Result monad for an operation that can succeed with a result object or fail with an error object.
  • Implicit conversion sample.
  • A blazor sample would be nice too. Was asked about it on twitter: https://twitter.com/shunjiey/status/1541488240225439744?s=20&t=nCBOdq3MBeNGu6kwE4TV3w

domn1995 avatar Jun 24 '22 04:06 domn1995