TypeScript Enums are Bad // Alternatives to use
8.1 هزار بار بازدید -
پارسال
-
In this lesson we look
In this lesson we look at all the reasons why TypeScript enums are not recommended and what are the simple alternatives that you can use that offer greater reliability and future proof code ❤️
🚥 Professional Courses
https://www.booleanart.com/
Chapters
0:00 Intro
0:18 Not Standardized Yet
0:45 Simple Enums are easy to break
1:55 Not Type Safe
2:40 Lookups cause issues
3:58 Issues with String Enums
5:52 Simple Recommended Pattern
6:48 Additional JavaScript Patterns
8:10 Outro
🏷 #basarat #TypeScript #JavaScript #Tutorial
👇 ❤️ Subscribe for MOORE ❤️ 👇
https://www.youtube.com/basaratali?su...
🌹 Support 🌹
Join: basaratali
~
Twitter: basarat
https://github.com/basarat
https://basarat.com/
~~ Additional Resources ~~
TypeScript for Professionals:
https://www.udemy.com/course/typescri...
🚥 Professional Courses
https://www.booleanart.com/
Chapters
0:00 Intro
0:18 Not Standardized Yet
0:45 Simple Enums are easy to break
1:55 Not Type Safe
2:40 Lookups cause issues
3:58 Issues with String Enums
5:52 Simple Recommended Pattern
6:48 Additional JavaScript Patterns
8:10 Outro
🏷 #basarat #TypeScript #JavaScript #Tutorial
👇 ❤️ Subscribe for MOORE ❤️ 👇
https://www.youtube.com/basaratali?su...
🌹 Support 🌹
Join: basaratali
~
Twitter: basarat
https://github.com/basarat
https://basarat.com/
~~ Additional Resources ~~
TypeScript for Professionals:
https://www.udemy.com/course/typescri...
پارسال
در تاریخ 1402/01/07 منتشر شده
است.
8,137
بـار بازدید شده