Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть TypeScript Enums are TERRIBLE. Here's Why.

  • Michigan TypeScript
  • 2022-11-03
  • 73859
TypeScript Enums are TERRIBLE.  Here's Why.
  • ok logo

Скачать TypeScript Enums are TERRIBLE. Here's Why. бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно TypeScript Enums are TERRIBLE. Here's Why. или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку TypeScript Enums are TERRIBLE. Here's Why. бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео TypeScript Enums are TERRIBLE. Here's Why.

TypeScript enums have worn their welcome. In the early days before string unions became so powerful, there was no other option. Today, though, they are more trouble than they're worth. This talk explores some of the problems with enums as well as some solutions to those problems. No solution is perfect, but perhaps no perfect solution uses TypeScript's enums, either. :P

00:00 how enums work in general
00:45 the value of enums by default
01:00 the first failure of enums
01:30 attempting to fix this problem with required indices
02:00 what do enums look like at runtime?
02:50 another downside: function arguments
03:43 working around the problem with function arguments
04:31 there are footguns (even with workarounds)
04:47 a better approach than enums: POJOs
06:14 audience question: why not just create a string union?
06:59 audience question: runtime values for a bad function argument?
07:56 audience comment: it's still just JavaScript
08:26 audience question: are there any keys on the enum?
09:22 audience comment: TypeScript runtime artifacts === bad
10:06 audience question: how do you deal with variations?
11:25 the satisfies operator could help
12:29 how to solve a new problem introduced by using objects

Aaron Harper (https://github.com/goodoldneon) is a software engineer who enjoys gardening, biking, and spending too much time and money on an overkill homelab.

Recorded on November 1st 2022 at Cahoots (https://cahoots.com) in Ann Arbor, Michigan.|

Discord:   / discord  
Twitter:   / mitypescript  
Mastodon: https://fosstodon.org/@MichiganTypeSc...
Instagram:   / michigantypescript  
TikTok:   / michigantypescript  

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]