filmov
tv
TypeScript Enums are Bad // Alternatives to use
Показать описание
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
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 ❤️ 👇
🌹 Support 🌹
~
~~ Additional Resources ~~
TypeScript for Professionals:
🚥 Professional Courses
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 ❤️ 👇
🌹 Support 🌹
~
~~ Additional Resources ~~
TypeScript for Professionals:
Enums considered harmful
TypeScript Enums are TERRIBLE. Here's Why.
Let's Talk About TypeScript's Worst Feature
The TRUTH About TypeScript Enums
TypeScript Enums are Bad // Alternatives to use
STOP using Enums | Typescript
Enums are MISUNDERSTOOD (not terrible): Josh Goldberg, typescript-eslint maintainer
TypeScript Enums or Objects?
How to use TypeScript Enums and why not to, maybe
Avoid TypeScript Enums ☠️
Use this instead of TypeScript Enums
Avoid TypeScript Enums!
Don't put your types in .d.ts files
The most common TypeScript error
2 ways TypeScript LIES to you
Master TypeScript Enums Continued: Essential Tips for Beginners | TypeScript Tips
TypeScript Basics 18 - Enums
Enum in Typescript | How and Where to use it ??? #shorts #typescript
TypeScript Tutorial - Episode 8 - Enums
TypeScript Quickly. Lesson 17. Numeric enums
DevTips Daily: How to use strings with Enums in TypeScript
Database enums are weird
9. Enums (Enumerated Types) in the TypeScript. Using Enumerations Enum Types in the Typescript
Why use Type and not Interface in TypeScript
Комментарии