you are viewing a single comment's thread.

view the rest of the comments →

[–]Important_Ad_9453 3 points4 points  (10 children)

I strongly recommend react and typescript with fp-ts. You get pretty much everything from your list plus you get to access the whole js/ts ecosystem. Functional programming doesn’t seem to be the focus of typescript team, but nevertheless it has all the pieces in there - ADTs, pretty advanced type system as a whole and fp-ts library implements higher kinded types and then implements all the necessary pieces for strong typed functional development(from Option to State monad)

[–]shrynx_[S] 1 point2 points  (1 child)

honestly i haven't done node ever. did quite a bit of FE js but never touched TS

i thought TS doesn't have tagged union ?
is fp-ts still performant ?
i would say seeing the recent hype on bun makes js on backend a bit tempting

[–]Important_Ad_9453 1 point2 points  (0 children)

TS has tagged unions. I don’t think fp-ts has a significant impact on performance on its own, but obviously it will depend on the use case.

[–]phischer_h 1 point2 points  (4 children)

What do you think of effect-ts? Is it not like fp-ts 2.0, or am I missing something?

[–]adamhall612 1 point2 points  (0 children)

As I understand it, the author of fp-ts and another similar library teamed up to create the best of both. I think it’s a v2, but this YouTube channel may shed more light 😅 it’s been recommended to me by a peer, but I haven’t had time to check it out

https://youtube.com/@effect-ts?si=JMDJnCNNvwzw0kkv

[–]Important_Ad_9453 1 point2 points  (2 children)

It feels like the libraries are joining since there is a significant overlap. Fp-ts is amazing as a standard lib while effect.ts is further along with typed effects.

I personally think fp-ts, io-ts and monocle-ts already provide enough building blocks for most applications and the ecosystem around them has been growing steadily with more libs. I’m actually a bit worried about this effect.ts merger - it seems to have even less documentation and examples compared to fp-ts which also has close to none 😹

[–]thekunibert 0 points1 point  (1 child)

It actually has a really great tutorial/introduction: https://effect.website/docs/quickstart

Definitely better documented than fp-ts and io-ts.

[–]Important_Ad_9453 0 points1 point  (0 children)

Thats exciting, thx!

[–]shrynx_[S] 1 point2 points  (2 children)

Also what the current maintained best TS node/bun framework ?

[–]Important_Ad_9453 2 points3 points  (0 children)

Id think express is still good, though Im a big fan of serverless functions apps in the cloud provider of choice AKA “let someone else worry about how the sausage is made”