How to use Effect!
And write better end to end software, so you can sleep at night!
You will aquire knowledge on how to build software in a purely functional manner, you will leverage a particular kind of algebraic effects called environmental effects in order to structure your code in a better way enabling you to test each individual component in an isolated way and making your modules reusable and composable.
The latest development in the core TypeScript language allow us to take environment usage even further compared to what ZIO can achieve, namely TypeScript has a very good support for intersection types and this makes environment usage wonderful.
So let's get the superpowers, bootstrap a new
yarnproject and install basic dependencies:
$ mkdir my-project
$ yarn init -y
$ yarn add @matechs/aio
$ yarn add -D typescript
Note that @matechs/aio (all-in-one) includes all the required dependencies plus a rich set of optional libraries like io-ts, morphic-ts, newtype-ts, monocle-ts that makes development in typescript extremely productive
As with any good library there is a commercial project that support the development and maintainance, if you want to know more find us at https://www.matechs.com/ we are a digital accelerator looking for smart founders & projects to build!
Docs are meant to be only for introduction to the architecture but are still outdated, for proper usage refer to the test & demo packages in each package in the github repo.
You will need to bootstrap a classic
npmpackage with TypeScript configured in "strict" mode.