Although you can find many implementations around, let’s type a simple one: The complex partĪs we are using a Redux like architecture inside Fidesmo app, the Result is part of our state and it must be serialized!! □ 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |