, 5 tweets, 1 min read Read on Twitter
Despite my long history in C#, I’m still not using TypeScript. Why?

I’ve found I don’t spend much time on type-related issues in JS.

¯\_(ツ)_/¯

“JavaScript fatigue is what happens when people use tools they don't need to solve problems they don't have.” - Lucas F Costa
That said, I totally appreciate how many projects/teams benefit from TS.

My need for types is reduced because:
1. My teams tend to compose many small apps instead of a few big apps
2. I work in React, where PropTypes help
3. ESLint catches many issues too
4. I typically declare a centralized mock data structure and code against that. This documents all object shapes and avoids repeating object creation code.
5. I write automated tests with Jest.
6. I heavily leverage npm packages, which often provide .ts files that @code parses.
7. I compile code with Babel which produces useful compile-time errors
8. I centralize React propType declarations and consistently declare object shapes with propTypes
9. I avoid mutating object shapes. I declare separate well-named objects when properties differ.
10. I centralize input normalization and normalize API call responses. This assures objects maintain consistent data structures and casing, and helps assure properties exist.
11. I strive to centralize state changes and enjoy immutable structures via Immer.
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Cory House 🏠
Profile picture

Get real-time email alerts when new unrolls (>4 tweets) are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!