Artwork

Contenu fourni par Frontend First, Sam Selikoff, and Ryan Toronto. Tout le contenu du podcast, y compris les épisodes, les graphiques et les descriptions de podcast, est téléchargé et fourni directement par Frontend First, Sam Selikoff, and Ryan Toronto ou son partenaire de plateforme de podcast. Si vous pensez que quelqu'un utilise votre œuvre protégée sans votre autorisation, vous pouvez suivre le processus décrit ici https://fr.player.fm/legal.
Player FM - Application Podcast
Mettez-vous hors ligne avec l'application Player FM !

Throw is about control flow – not error handling

1:04:11
 
Partager
 

Manage episode 411765740 series 1635850
Contenu fourni par Frontend First, Sam Selikoff, and Ryan Toronto. Tout le contenu du podcast, y compris les épisodes, les graphiques et les descriptions de podcast, est téléchargé et fourni directement par Frontend First, Sam Selikoff, and Ryan Toronto ou son partenaire de plateforme de podcast. Si vous pensez que quelqu'un utilise votre œuvre protégée sans votre autorisation, vous pouvez suivre le processus décrit ici https://fr.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

185 episodes

Artwork
iconPartager
 
Manage episode 411765740 series 1635850
Contenu fourni par Frontend First, Sam Selikoff, and Ryan Toronto. Tout le contenu du podcast, y compris les épisodes, les graphiques et les descriptions de podcast, est téléchargé et fourni directement par Frontend First, Sam Selikoff, and Ryan Toronto ou son partenaire de plateforme de podcast. Si vous pensez que quelqu'un utilise votre œuvre protégée sans votre autorisation, vous pouvez suivre le processus décrit ici https://fr.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

185 episodes

Tous les épisodes

×
 
Loading …

Bienvenue sur Lecteur FM!

Lecteur FM recherche sur Internet des podcasts de haute qualité que vous pourrez apprécier dès maintenant. C'est la meilleure application de podcast et fonctionne sur Android, iPhone et le Web. Inscrivez-vous pour synchroniser les abonnements sur tous les appareils.

 

Guide de référence rapide