

Popular in languages like Scala, Elm or Rust, it is fantastic because it wraps a value of type T inside a “request context”, where E is the error obtained if the request fails. We use a version of the Either pattern redefined as Result. On the other hand, it is a complex and expensive component.Ĭuriously, the same example can be found inside Fidesmo app codebase: The easy interaction Sometimes when developing an app, you need to introduce some complexity in order to keep your code neat and clean.Īpplying this idea to a bicycle, an internal-gear hub part comes to my mind: the interaction with it is simple and makes life easier if you stop-and-go when commuting in a big city. JSON serialization and generics in Kotlin.
