I can't recommend a specific book but I love functional programming as it helps to solve these problems by using appropriate type definitions. e.g. Maybe<Product> which indicates that there might be a product in this wrapper, there might be none, or Result<HttpError, Product> which represents response of a HTTP call to retrieve a product.
I can't recommend a specific book but I love functional programming as it helps to solve these problems by using appropriate type definitions. e.g.
Maybe<Product>
which indicates that there might be a product in this wrapper, there might be none, orResult<HttpError, Product>
which represents response of a HTTP call to retrieve a product.Check github.com/rametta/pratica out. A very small lib that has it all :)
Thanks! I really want to get more into functional programming, I'll definitely check that out.