Przejdź do trybu offline z Player FM !
Daria Caraway Chats About TypeScript
Manage episode 303801004 series 2530175
TypeScript has been taking over, and for good reason. Have you ever had good end-to-end or integration tests that ended up being invaluable during some refactoring? You can think of TypeScript in the same way. It's amazing when it's done well, but when done poorly it's misleading and a huge headache.
Because of this, migrating to TypeScript is not a magic bullet. When converting large pieces of code from JavaScript to TypeScript you need to be cautious about typing things correctly, don't be afraid of using unknown
and moving on if you're unsure.
In this episode, you'll learn more about these realities of working with TypeScript and why it's all totally worth it!
Homework
- TypeScript Users: Take a look at five interfaces you wrote recently and see if you can refactor them to make them easier to read for the next person.
- Non-TypeScript Users: Think about the last complex code that you had to interface with and whether it would have been easier to interface with if it had types.
Guest: Daria Caraway
- Twitter: @dariacaraway
- GitHub: @darcar31
- Website: dariacaraway.com
Host: Kent C. Dodds
- Website: kentcdodds.com
- Twitter: @kentcdodds
- GitHub: @kentcdodds
- YouTube: Kent C. Dodds
- Epic React: epicreact.dev
89 odcinków
Manage episode 303801004 series 2530175
TypeScript has been taking over, and for good reason. Have you ever had good end-to-end or integration tests that ended up being invaluable during some refactoring? You can think of TypeScript in the same way. It's amazing when it's done well, but when done poorly it's misleading and a huge headache.
Because of this, migrating to TypeScript is not a magic bullet. When converting large pieces of code from JavaScript to TypeScript you need to be cautious about typing things correctly, don't be afraid of using unknown
and moving on if you're unsure.
In this episode, you'll learn more about these realities of working with TypeScript and why it's all totally worth it!
Homework
- TypeScript Users: Take a look at five interfaces you wrote recently and see if you can refactor them to make them easier to read for the next person.
- Non-TypeScript Users: Think about the last complex code that you had to interface with and whether it would have been easier to interface with if it had types.
Guest: Daria Caraway
- Twitter: @dariacaraway
- GitHub: @darcar31
- Website: dariacaraway.com
Host: Kent C. Dodds
- Website: kentcdodds.com
- Twitter: @kentcdodds
- GitHub: @kentcdodds
- YouTube: Kent C. Dodds
- Epic React: epicreact.dev
89 odcinków
Wszystkie odcinki
×Zapraszamy w Player FM
Odtwarzacz FM skanuje sieć w poszukiwaniu wysokiej jakości podcastów, abyś mógł się nią cieszyć już teraz. To najlepsza aplikacja do podcastów, działająca na Androidzie, iPhonie i Internecie. Zarejestruj się, aby zsynchronizować subskrypcje na różnych urządzeniach.