TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Mindfulness in TypeScript code branching, or how to if/else

6 pointsby Firfi4 months ago

1 comment

Firfi4 months ago
Hey folks, sometimes on PRs, I find that people aren&#x27;t well-versed in the intricacies of code branching. So, I wrote a short article to educate fellow engineers and point to it sometimes so I don&#x27;t have to explain things over and over.<p>Specifically, many people apparently don&#x27;t know yet about exhaustiveness and the statement&#x2F;expression dichotomy and how TS type system can help with it.