DEV Community

Cover image for TypeScript is lying to you (and how to fix it with Effect) 🛠️
Emma Tardy
Emma Tardy

Posted on • Originally published at blog.hoppr.tech

TypeScript is lying to you (and how to fix it with Effect) 🛠️

Ever looked at a function like async function completeTask(id: string): Promise and thought it was safe?

It’s actually a lie by omission. It doesn't tell you that it can fail in 5 different ways, or that it tightly couples your database and mailer dependencies. You usually find out... in production.🔥

In our latest article, we dive deep into how the Effect ecosystem (Effect) brings type safety to the next level, making Hexagonal Architecture and TDD the path of least resistance in TypeScript.

Note: The deep-dive article is written in French, but code blocks are universal and your browser's translator will handle the rest perfectly! 😉

Effect, ou comment arrêter de découvrir ses erreurs en production | HoppR

À mesure que les systèmes gagnent en complexité, les approches traditionnelles montrent leurs limites. Dépendances cachées, erreurs silencieuses, tests laborieux : autant de symptômes qui ralentissent

favicon blog.hoppr.tech

What about you? Are you already using Effect in production, or are you still relying on traditional try/catch and raw Promises? Let’s discuss in the comments! Drop a ❤️ or 🦄 if you found this helpful!

Top comments (0)