DEV Community

Discussion on: Refactoring node.js (Part 1)

Collapse
 
buinauskas profile image
Evaldas Buinauskas

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.

Check github.com/rametta/pratica out. A very small lib that has it all :)

Thread Thread
 
paulasantamaria profile image
Paula Santamaría

Thanks! I really want to get more into functional programming, I'll definitely check that out.