Artwork

A tartalmat a Frontend First, Sam Selikoff, and Ryan Toronto biztosítja. Az összes podcast-tartalmat, beleértve az epizódokat, grafikákat és podcast-leírásokat, közvetlenül a Frontend First, Sam Selikoff, and Ryan Toronto vagy a podcast platform partnere tölti fel és biztosítja. Ha úgy gondolja, hogy valaki az Ön engedélye nélkül használja fel a szerzői joggal védett művét, kövesse az itt leírt folyamatot https://hu.player.fm/legal.
Player FM - Podcast alkalmazás
Lépjen offline állapotba az Player FM alkalmazással!

Throw is about control flow – not error handling

1:04:11
 
Megosztás
 

Manage episode 411765740 series 1635850
A tartalmat a Frontend First, Sam Selikoff, and Ryan Toronto biztosítja. Az összes podcast-tartalmat, beleértve az epizódokat, grafikákat és podcast-leírásokat, közvetlenül a Frontend First, Sam Selikoff, and Ryan Toronto vagy a podcast platform partnere tölti fel és biztosítja. Ha úgy gondolja, hogy valaki az Ön engedélye nélkül használja fel a szerzői joggal védett művét, kövesse az itt leírt folyamatot https://hu.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 epizódok

Artwork
iconMegosztás
 
Manage episode 411765740 series 1635850
A tartalmat a Frontend First, Sam Selikoff, and Ryan Toronto biztosítja. Az összes podcast-tartalmat, beleértve az epizódokat, grafikákat és podcast-leírásokat, közvetlenül a Frontend First, Sam Selikoff, and Ryan Toronto vagy a podcast platform partnere tölti fel és biztosítja. Ha úgy gondolja, hogy valaki az Ön engedélye nélkül használja fel a szerzői joggal védett művét, kövesse az itt leírt folyamatot https://hu.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 epizódok

Minden epizód

×
 
Loading …

Üdvözlünk a Player FM-nél!

A Player FM lejátszó az internetet böngészi a kiváló minőségű podcastok után, hogy ön élvezhesse azokat. Ez a legjobb podcast-alkalmazás, Androidon, iPhone-on és a weben is működik. Jelentkezzen be az feliratkozások szinkronizálásához az eszközök között.

 

Gyors referencia kézikönyv