
"In this article, we review fp-ts library in Hoppscotch codebase. We willl look at: What is Hoppscotch? What is fp-ts? fp-ts usage in Hoppscotch CLI. I study patterns used in an open source project found on Github Trending. For this week, I reviewed some parts of Hoppscotch codebase and wrote this article. What is Hoppscotch? Hoppscotch is an open source API development ecosystem - https://hoppscotch.io. It is an alternative to Postman, Insomnia. Check out the Hoppscotch documentation to learn more."
"Either type Either<E, A> = Left<E> | Right<A> Represents a value of one of two possible types (a disjoint union). An instance of Either is either an instance of Left or Right. A common use of Either is as an alternative to Option for dealing with possible missing values. In this usage, None is replaced with a Left which can contain useful information. Right takes the place of Some. Convention dictates that Left is used for failure and Right is used for success."
Hoppscotch is an open source API development ecosystem and an alternative to Postman and Insomnia. fp-ts provides developers with popular patterns and reliable abstractions from typed functional languages in TypeScript. The library empowers writing pure functional applications and libraries using higher-order abstractions, common data types, and type classes drawn from Haskell, PureScript, and Scala. The Hoppscotch CLI imports fp-ts modules such as Either to model computations that can fail. Either represents a disjoint union of Left (failure) and Right (success). Using Either enables explicit error values and composable functional error handling in TypeScript code.
Read at Medium
Unable to calculate read time
Collection
[
|
...
]