
Type safe patterns for frontend developers Edited by Anthony Gabriele https://nitter.gq/t.co/h4IxIYLYdk All content is free. Donate: https://nitter.gq/t.co/4eapFtwx5m
Joined June 2020
- Tweets50
- Following71
- Followers102
- Likes68
I'm excited to announce that spectacles-ts v1.0.6 has dramatically increased performance & inference and added support for discriminated unions. Here's the updated blog post - let me know what you think! dev.to/anthonyjoeseph/simple…
Hey hey I haven't really liked any typescript tutorials I've seen, so I've been working on one. It's a single, interactive page. Lmk what you think! Or if you know of any other good tutorials/cheatsheets
tinyurl.com/yckrs5kk
1
1
Typesafe Frontend retweeted
Typescript functional programming development kit:
fp-ts ⚛️
io-ts 🔏
ts-pattern 🎭
practical-fp/union-types 🤲
spectacles-ts 👓
@GiulioCanti @typesafeFE @GabrielVergnaud
Presenting `spectacles-ts`, a library for modifying nested objects immutably & simply. Here's a blog post about it, and video showing it off. Lmk what you think!
dev.to/anthonyjoeseph/simple…
Here's a rough draft of 'immutable-ts' (like immutability-helper or immer.js). I'd love some feedback! (including the name)
It's not published yet. If you'd like to try it out, there are playgrounds in the repo. Please lmk if anyone has feedback/ideas!
github.com/anthonyjoeseph/im…
Typesafe Frontend retweeted
I wrote some notes up on pipeable APIs: paulgray.net/pipeable-apis/
Yet another great article by @gnomff that might help folks convince co-workers to try out fp-ts! dev.to/gnomff_65/converting-…
3
This post is great! I love its details & practicality. I recommend it if you’re interested in dependency injection
andywhite.xyz/posts/2021-01-…
1
9
Typesafe Frontend retweeted
Just released [email protected] 🎉
How many times have you forgotten to run a Task when using it as an event handler? How many hours spent debugging tasks that just won’t run? No more!
Welcome the new no-discarded-pure-expression rule, which has your back! 🚀
Example 👇
I'm proud to introduce my functional game engine, game-ts!
Features:
- simple rxjs game-loop
- graphics-ts for rendering
- integrations with spritesheet.js, Tiled, and geometric.js
Let me know what you think!
npmjs.com/package/game-ts
10
This is so neat - can't wait for the blog post!
For an intro to indexed monads, check out @gnomff's article on hyper-ts, which uses an indexed monad to enforce http protocol correctness dev.to/gnomff_65/hyper-ts-is…
Indexed monads are the essence of React's hooks. I've had this idea in the back of my mind for a while, ever since I saw the idea in github.com/spicydonuts/pures…, and I've wanted to find a pure model of hooks as an indexed monad. Finally, I think I'm getting somewhere. Blog post soon.
Here's the next installment in my series on fp-ts TaskEither, this time delving into Promises - why they're already great, and how TaskEither improves upon them.
dev.to/anthonyjoeseph/taskei…
6
fp-ts TaskEither is three things: an Either wrapped in a Promise wrapped in IO. I've written a series going into depth about each of these. Here's the first installment, exploring Either as a superior approach to error handling.
dev.to/anthonyjoeseph/either…
8
My next article builds on Tim Ecklund's great 'Beautiful API calls with fp-ts', representing errors as as union types and sum types. It's a practical introduction to sum types as well as '@morphic-ts/adt'
dev.to/anthonyjoeseph/fp-ts-…
2
5
Similar to my last article, this one explores the advantages of fp-ts Task. It also proposes a set of rules for their maximum effectiveness. As always criticism is welcome! dev.to/anthonyjoeseph/should…
Replying to @ryanleecode
@ryanleecode's "Practical Guide to fp-ts" a simple & sensible introduction to the framework with a clear focus on tangible engineering. I recommend them for all typescript devs. There's no comments section, so I'll put my thoughts in this thread instead
rlee.dev/writing/practical-g…
Article 5: 'ap' from Identity is blowing my mind. I've never seen that before. I've struggled with Applicative for a while, and now I finally have an intuitive sense beyond just "the thing that sequence uses". Best take I've seen in any language, let alone typescript







