Syntax - Tasty Web Development Treats

Async + Await


Listen Later

Freshbooks — Sponsor

If you are a small business or freelancer check out Freshbooks.com Cloud Accountingand get 30 days free. Make sure to enter SYNTAX into the "How did you hear about us" section.

Show Notes

02:55

  • Wes' Async + Await talk on YouTube from DotJS
  • JavaScript is Asynchronous
  • Ryan Dhal (Creator of Node.js) original Node.js talk

06:00

  • Callback Hell
  • Q
  • Bluebird
  • What is a promise?
  • Promises are an IOU

8:30

  • Async + Await IS promises
  • What is Async + Await?
  • How does the code look?
  • Returning values from an await

15:20

  • Performance Considerations
  • MEGA PROMISES
  • Promise.all()
  • Here is an example:
  • const [weather, store] = Promise.all(getWeather(), getStores());

19:22

  • This stuff is 100% native
  • Most new Browser APIs are build on Promises
  • Fetch()
  • Some examples:
  • await fetch(' https://api.github.com/users/wesbos').then(data => data.json())
  • OR
  • await (await fetch(' https://api.github.com/users/wesbos')).json()
  • Axios

22:48

  • The Payment Request API
  • You should listen to episode 006 on accepting money on the internet
  • Web Animation API

27:00

  • Snackisodes
  • Snack Packs
  • Hasty Treats?!!!

28:00

  • Making callback-based functions promised basked
  • es6-promisify
  • util.promisify()

30:00

  • Error Handling Methods
  • View my slides for some code examples.
  • Try/Catch
  • High Order Function
  • Just handle the error when you callIt().catch(dealWithIt);
  • Node's process.on('unhandledRejection') event

36:00

  • Browser Support
  • Babel it!

38:00

  • AbortController()
  • Abortable Fetch
SIIIIICK PICKS

42:00

  • Scott: Ring Doorbell
  • Wes: The Indicator Podcast

47:00

  • Sick Tip
  • Chrome's Autoplay is changing
  • Details on this
  • Visit chrome://media-engagement to see your scores
Shameless Plugs
  • Fullstack GraphQL
  • CSS Grid Course is coming sooooon!
Tweet us your tasty treats!
  • Scott's Instagram
  • LevelUpTutorials Instagram
  • Wes' Instagram
  • Wes' Twitter
  • Wes' Facebook
  • Scott's Twitter
  • Make sure to include @SyntaxFM in your tweets
...more
View all episodesView all episodes
Download on the App Store

Syntax - Tasty Web Development TreatsBy Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

977 ratings


More shows like Syntax - Tasty Web Development Treats

View all
Software Engineering Radio - the podcast for professional software developers by team@se-radio.net (SE-Radio Team)

Software Engineering Radio - the podcast for professional software developers

272 Listeners

Hanselminutes with Scott Hanselman by Scott Hanselman

Hanselminutes with Scott Hanselman

383 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

290 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

622 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

584 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

288 Listeners

Thoughtworks Technology Podcast by Thoughtworks

Thoughtworks Technology Podcast

43 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

215 Listeners

The freeCodeCamp Podcast by freeCodeCamp.org

The freeCodeCamp Podcast

487 Listeners

CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

CoRecursive: Coding Stories

189 Listeners

Practical AI by Practical AI LLC

Practical AI

205 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

63 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

141 Listeners

PodRocket by LogRocket

PodRocket

60 Listeners

Oxide and Friends by Oxide Computer Company

Oxide and Friends

66 Listeners