Logo
    Search

    javascript promises

    Explore "javascript promises" with insightful episodes like "What’s New in Web Development" and "Async + Await" from podcasts like ""Syntax - Tasty Web Development Treats" and "Syntax - Tasty Web Development Treats"" and more!

    Episodes (2)

    What’s New in Web Development

    What’s New in Web Development

    In this episode of Syntax, Scott and Wes talk about what’s new in web development: new promise static methods, new CSS functions, PWAs and more!

    Sentry - Sponsor

    If you want to know what’s happening with your errors, track them with Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting Sentry.io and using the coupon code “tastytreat”.

    Clubhouse - Sponsor

    Clubhouse is the first project management software that brings everyone together so that teams can focus on what matters: creating products that customers love. Clubhouse provides a perfect balance of simplicity and structure for better cross-functional collaboration. Check out https://clubhouse.io/syntaxpodcast and get your first two months free.

    Show Notes

    5:38 - New Promise static methods

    • Promise.all
    • Promise.race()
    • Promise.allSettled()
    • Promise.any()

    10:16 - Lazy loading images

    14:25 CSS Houdini aka JS in CSS

    20:32 - Subgrid

    24:31 - Native modules in browser

    • type="module"
    • dynamic import()

    27:08 - Node Native Modules update

    29:17 - PWA install app and Google PlayStore

    • Already shipped in Chrome
    • Java API that communicates through services with Chrome
    • Trusted Web Activity aka TWA
    • All content in TWAs must comply with Play store policy including policies for payments in-app purchases and other digital goods
    • Already existing TWAs include Twitter Lite, Google Maps Go, Instagram Lite
    • Passing the PWA Criteria
    • Performance Score with a minimum of 80/100, tested with Lighthouse
    • All current Google Play Store rules

    35:49 - CSS Scroll Snap

    • In many browsers already
    • scroll-padding

    38:17 - Aspect Ratio Unit

    39:32 - CSS nesting

    • Disallows cross-domain cookies unless on the same domain/subdomain

    Links

    ××× SIIIIICK ××× PIIIICKS ×××

    Shameless Plugs

    Tweet us your tasty treats!

    Async + Await

    Async + Await

    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

    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

    22:48

    27:00

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

    28:00

    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

    SIIIIICK PICKS

    42:00

    47:00

    • Sick Tip
    • Chrome's Autoplay is changing
    • Details on this
    • Visit chrome://media-engagement to see your scores

    Shameless Plugs

    Tweet us your tasty treats!