TypeScript Tutorial for Beginners

preview_player
Показать описание
Chapters:
00:00:00 - Basic Typescript Tutorial
00:03:29 - The Importance of Type Safety in Typescript Programming
00:10:01 - Working with Different Data Types in TypeScript
00:18:40 - Using Custom Types and Interfaces in TypeScript
00:22:43 - The Benefits and Basics of TypeScript
00:25:48 - Tips and Tricks for Using TypeScript in React Native

Learn the basics of TypeScript!

Check me out on:

Code Editor: Visual Studio Code
VS Code Theme: Seti

If you liked this video and you have a little to spare, please consider supporting me on Patreon:
Рекомендации по теме
Комментарии
Автор

Calmed my hesitation to start working with TypeScript! Thanks Jesse! Gatsby (React) is what I work with mostly.

JohnHansenArtist
Автор

Jesse, regarding interfaces vs types, in SOLID principles, I stands for ISP, which stands for Interface Segregation Principle, which means minimize your interfaces to keep them usable by classes that implement them. For example, if you have an interface called IShape meant to be required of geometry functions and meant to be implemented by various shape classes like Circle, Square, etc. ISP says don't have an IShape property that isn't strictly required by shapes, like for instance, a property Color should not be a part of IShape interface. So, at 19:00, do not create large interfaces.

jerroldneal
Автор

My experience was 4 months of fighting with TS slowing down my development, after that I was feeling more and more productive.
Personally I don't think I would want to go back to pure JS after tasting TS. The only thing I don't like about it tho is trying to integrate it with some frameworks or libraries. Other than that it's great and saves me a lot of time, especially cuz I am prone to typos

Some people think it's counter productive for small projects, but I feel like even small projects can benefit from it simply by having good documentation provided by TS code and when someone decides to make project bigger, then there you go. No need for refactor. Writing those types doesn't take much time and sometimes makes you rethink the structure of some objects too.

nobodyz