Why Nostr? What is Njump?
2023-03-01 12:40:55

bitswired on Nostr: "Move fast. Break Nothing". Strong types are a blessing 🔥. Have you ever spent ...

"Move fast. Break Nothing". Strong types are a blessing 🔥.


Have you ever spent countless hours trying to debug your code, only to find out that the error was a simple typo or misspelling?
😩 I've been there too.

🚀 This weekend, I challenged myself to write a custom headless CMS for my blog using Postgres, tRPC, Prisma, and Vercel NextJS.
With a focus on speed, I coded away without testing anything - just making sure to avoid any TypeScript typing errors. 🤞

And the result?
🎉 Success on the very first try!
With Prisma's strong types, even my Postgres database was easily integrated into the project.
When I hit 'next build & start' to run the web app and backend, everything worked like a charm. 💻💡

This experience shows that enforcing strong types may seem like it takes more time upfront, but it saves you countless hours of debugging in the long run.

🕰️ As the tRPC website wisely states: « Move fast. Break nothing. »

So, fellow developers, let's embrace strong typings and save ourselves the headache of endless debugging.
Trust me, it's worth it. 💯
Author Public Key
npub1gqq2c2zvzrc6ytlpteyqxwtfl38e45564pf9xstwfz4p5vmjj03qmat726