Mattia Crovero

73 posts

Mattia Crovero banner
Mattia Crovero

Mattia Crovero

@mcrovero

Code ideas @ UjibooSrl

Torino, Piemonte Katılım Aralık 2013
98 Takip Edilen166 Takipçiler
Sabitlenmiş Tweet
Mattia Crovero
Mattia Crovero@mcrovero·
I’ve been working on an @EffectTS_ package to make it easier to use Effect in the @nextjs App Router world by providing "effectful" wrappers and middlewares. 🚀 Try it out and give early feedback at: github.com/mcrovero/effec…
English
6
1
47
2K
Mattia Crovero
Mattia Crovero@mcrovero·
@berenddeboer Llms are really getting good at Effect, glad you’re enjoying it, any feedback is more than welcome!
English
1
0
1
20
Mattia Crovero
Mattia Crovero@mcrovero·
Thanks again to the @EffectTS_ team for the amazing meetup in Milan yesterday, it was great meeting everyone! looking forward to the next event
Mattia Crovero tweet mediaMattia Crovero tweet media
English
1
0
11
442
Mattia Crovero retweetledi
Effect | TypeScript at Scale
Kicking off our first Effect Meetup in Milan 🇮🇹
Effect | TypeScript at Scale tweet mediaEffect | TypeScript at Scale tweet media
English
1
6
37
2.8K
Mattia Crovero
Mattia Crovero@mcrovero·
@TimZolleis @EffectTS_ yes! it's flexible enough for many use cases. at the end of the day it’s just an effect runner that forwards the args and enriches the errors but it's nice because you can use Effect.fn in framework-exposed handlers and get error tracing + automatic spans for free
English
0
0
2
54
Mattia Crovero
Mattia Crovero@mcrovero·
I’m looking for the smallest helper to start using @EffectTS_ in a Next.js project.. here’s what I came up with so far
Mattia Crovero tweet media
English
2
0
11
588
Mattia Crovero
Mattia Crovero@mcrovero·
@MattiaManzati @EffectTS_ 🤯 this is insane, good job! I tried the vscode extension to see effect spans but I feel like vscode is really limiting ui, is there a web version exposed when starting the dev server? With other features like this one it can be really useful to have them in a web gui
English
1
0
1
151
Mattia Manzati
Mattia Manzati@MattiaManzati·
Any real world application has a complex tree of dependencies. @EffectTS_ Layers keep them manageable… and with this, they become even nicer! Learn how 👇
English
5
7
57
4.2K
Juan
Juan@ditorodev·
@MichaelArnaldi @EffectTS_ @mcrovero Appreciate it! Also realizing I’m not pilled enough lol This just scream to me “yeah just harder nextjs” I think tho it makes a lot of sense just too “dirty”. Makes sense because it aligns a lot with the curve of complexity explained in the effect website
English
1
0
1
153
Juan
Juan@ditorodev·
Feeling intelligent today got my first service and endpoint done in @EffectTS_ I also realized no fucking sense to do nextjs api with effect unless you do RPC or am I still dumb?
English
2
0
11
1.2K
Mattia Crovero
Mattia Crovero@mcrovero·
@matodev @EffectTS_ @nextjs yes but the stacktrace is enriched by the library to include effect's one. you can still improve it by giving names to generator functions
English
0
0
0
30
Mato
Mato@matodev·
@mcrovero @EffectTS_ @nextjs does this cause the page component to become an anonymous function causing error logs to be harder to debug?
English
1
0
0
42
Mattia Crovero
Mattia Crovero@mcrovero·
@AndersonAndrue Unfortunately Effect.fn cannot infer the type from the build handler, you'd need to specify the type every time like `Effect.fn(function* ({ searchParams }: EffectNextParams) {`, right now you can use middlewares to add spans
English
0
0
0
16
Storm
Storm@AndersonAndrue·
@mcrovero instead of `.build(({ searchParams }) => Effect.gen` just do `.build(Effect.fn(function*({ searchParams}) {`
English
1
0
3
90
Mattia Crovero
Mattia Crovero@mcrovero·
@elie2222 Yes, that’s true, but how do you know what errors you’ll get and where? You’d need to add something like neverthrow, but then with zod, p-retry, etc., it turns into library sprawl that you could instead standardize with a single package
English
1
0
0
25
Elie Steinbock — oss/acc
Elie Steinbock — oss/acc@elie2222·
@mcrovero Plenty of ways to show errors in nextjs. There’s an error.ts file for example. Error boundary another option in react.
English
1
0
0
53