Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
How to implement type-safe JSON strings and extend `JSON.parse()` and `JSON.stringify()` to automatically infer them. Genius. https://youtu.be/z7pDvyVhUnE
1 reply
0 recast
3 reactions

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
or use https://effect.website/docs/schema/json-schema/
1 reply
0 recast
1 reaction

jtgi pfp
jtgi
@jtgi
never :P
1 reply
0 recast
2 reactions

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
:P how come :D
1 reply
0 recast
0 reaction

jtgi pfp
jtgi
@jtgi
1. if you use a 3rd party library so close to the native one you're basically forking into a new programming language, a massive dependency, can cut you off from ecosystem, and makes bringing others on hard. 2. Functional programming doesn't scale well. You hit complicated subjects quite quickly and the it very quickly consumes your entire codebase with non native types. All of the sudden before anyone can contribute they have to understand monads, functors, lifting functions, combinators and a lot of advanced subjects. I experienced this with scalaz in scala world and a bit of guava in java.
1 reply
1 recast
2 reactions