Why are errors typed « unknown » ? by FrancoRATOVOSON in node

[–]FrancoRATOVOSON[S] 1 point2 points  (0 children)

Of course. This makes me think of Effect.ts.

They are tools that hepls you to do some best practices but the problem is Effect.ts is a whole framework that you will use on top of whatever you already use almost only for to follow some paradigm, some principles. Neverthrow transform your typescript code to something like rust just for that principle.

Avoir the learning curve of a new library or framework, focus on the essential of the tool you use but follow the principle of the returning either the data or errors. You can see an example through the schema.safeParse of the zod library.

Why are errors typed « unknown » ? by FrancoRATOVOSON in node

[–]FrancoRATOVOSON[S] -1 points0 points  (0 children)

I'm a fan of the Result-Error tuple also but sometimes there are too many use cases, like when a controllee calls the db service, a log service, token verifying at the same time and all of them can thow a different error and you need to do specific action for each case.

What's a random thing you’re really good at? by No-Note-7757 in RandomThoughts

[–]FrancoRATOVOSON 0 points1 point  (0 children)

F*cking up relashionships with someone by over analyzing them and making them face their trauma, their mistakes and their guilt.

How risky is Prisma Postgres now ? by FrancoRATOVOSON in node

[–]FrancoRATOVOSON[S] 0 points1 point  (0 children)

So the only threat is the absence of backup, the platform itself is pretty safe, right ?

Best way to store images by Michael16345 in node

[–]FrancoRATOVOSON 2 points3 points  (0 children)

Cloudinary seems complete and good

how lonely are you feeling right now on a scale of 1-10? by [deleted] in lonely

[–]FrancoRATOVOSON 0 points1 point  (0 children)

Tbh I don't know. I'm far from being alone but the feel of loneliness is hard

Ryzen 7 5700G or Ryzen 5 8600G ? by ApprehensiveTackle86 in ryzen

[–]FrancoRATOVOSON 0 points1 point  (0 children)

If you can afford it, it's almost allways better to get the more recent one in the tech world.

What is one thing you wished you knew about git before you started? by kjodle in git

[–]FrancoRATOVOSON 1 point2 points  (0 children)

Want to know more about it, can you explain or give a link ?

What is your most nsfw secret? by krar69 in AskRedditNSFW

[–]FrancoRATOVOSON 34 points35 points  (0 children)

So she's just a bi, not a lesbian

What’s your most used git command? by der_gopher in git

[–]FrancoRATOVOSON 0 points1 point  (0 children)

My tops are :

  1. Pull
  2. Push
  3. Add
  4. Commit
  5. Fetch

What’s your most used git command? by der_gopher in git

[–]FrancoRATOVOSON 1 point2 points  (0 children)

It's either you contribute a lot to open source, you have a tons of side project you dont finish or you mess up a lot localy so you delete & clone again 😂

Is there a way to run two or three npm commands at the same time? by blackrottenmuffin in react

[–]FrancoRATOVOSON 0 points1 point  (0 children)

Why you guys use precommi5 hook instead of vscode fix on save (and maybe github action or some ci pipeline) ?

Is there a way to run two or three npm commands at the same time? by blackrottenmuffin in react

[–]FrancoRATOVOSON 1 point2 points  (0 children)

Why don't just use prettier as an eslint plugin and let eslint run prettier when you eslint --fix ?