MENU

Fun & Interesting

The most important function in my codebase

Theo - t3․gg 111,424 lượt xem 3 weeks ago
Video Not Working? Fix It Now

Error handling in TypeScript is bad. Try catch is NOT a good pattern. Go got a lot wrong, but returning errors as values was absolutely right.

Thank you CodeRabbit for sponsoring! Check them out at: https://soydev.link/coderabbit

SOURCES
https://gist.github.com/t3dotgg/a486c4ae66d32bf17c09c73609dacc5b
https://github.com/supermacro/neverthrow
https://effect.website/
https://ethanniser.dev/blog/the-truth-about-effect/

Try T3 Chat? https://soydev.link/chat

Want to sponsor a video? Learn more here: https://soydev.link/sponsor-me

Check out my Twitch, Twitter, Discord more at https://t3.gg

S/O Ph4se0n3 for the awesome edit 🙏

Comment