Artwork

Conteúdo fornecido por Frontend First, Sam Selikoff, and Ryan Toronto. Todo o conteúdo do podcast, incluindo episódios, gráficos e descrições de podcast, é carregado e fornecido diretamente por Frontend First, Sam Selikoff, and Ryan Toronto ou por seu parceiro de plataforma de podcast. Se você acredita que alguém está usando seu trabalho protegido por direitos autorais sem sua permissão, siga o processo descrito aqui https://pt.player.fm/legal.
Player FM - Aplicativo de podcast
Fique off-line com o app Player FM !

Throw is about control flow – not error handling

1:04:11
 
Compartilhar
 

Manage episode 411765740 series 1635850
Conteúdo fornecido por Frontend First, Sam Selikoff, and Ryan Toronto. Todo o conteúdo do podcast, incluindo episódios, gráficos e descrições de podcast, é carregado e fornecido diretamente por Frontend First, Sam Selikoff, and Ryan Toronto ou por seu parceiro de plataforma de podcast. Se você acredita que alguém está usando seu trabalho protegido por direitos autorais sem sua permissão, siga o processo descrito aqui https://pt.player.fm/legal.

Sam and Ryan talk about why it’s better to think of throw as a general-purpose JavaScript language feature rather than something that should only be used for error handling. They discuss the ambiguity around the phrase “error handling”, situations that call for dealing with errors locally vs. globally, and how throw can be useful for non-error control flow. They also discuss the problems with trying to shoehorn dynamic features into a static site.

Topics include:

  • 0:00 - Intro
  • 4:07 - Error handling vs. throw-try/catch
  • 23:34 - Errors vs. Exceptions
  • 31:52 - How Next.js uses throw for non-error control flow
  • 40:44 - Adding a dynamic feature to a static site

Links:

  continue reading

201 episódios

Artwork
iconCompartilhar
 
Manage episode 411765740 series 1635850
Conteúdo fornecido por Frontend First, Sam Selikoff, and Ryan Toronto. Todo o conteúdo do podcast, incluindo episódios, gráficos e descrições de podcast, é carregado e fornecido diretamente por Frontend First, Sam Selikoff, and Ryan Toronto ou por seu parceiro de plataforma de podcast. Se você acredita que alguém está usando seu trabalho protegido por direitos autorais sem sua permissão, siga o processo descrito aqui https://pt.player.fm/legal.

Sam and Ryan talk about why it’s better to think of throw as a general-purpose JavaScript language feature rather than something that should only be used for error handling. They discuss the ambiguity around the phrase “error handling”, situations that call for dealing with errors locally vs. globally, and how throw can be useful for non-error control flow. They also discuss the problems with trying to shoehorn dynamic features into a static site.

Topics include:

  • 0:00 - Intro
  • 4:07 - Error handling vs. throw-try/catch
  • 23:34 - Errors vs. Exceptions
  • 31:52 - How Next.js uses throw for non-error control flow
  • 40:44 - Adding a dynamic feature to a static site

Links:

  continue reading

201 episódios

Wszystkie odcinki

×
 
Loading …

Bem vindo ao Player FM!

O Player FM procura na web por podcasts de alta qualidade para você curtir agora mesmo. É o melhor app de podcast e funciona no Android, iPhone e web. Inscreva-se para sincronizar as assinaturas entre os dispositivos.

 

Guia rápido de referências

Ouça este programa enquanto explora
Reproduzir