Logo
    Search

    sentry

    Explore "sentry" with insightful episodes like "741: TypeScript Interview Questions - STUMP’d", "686: We Need Your Help With The Secret Sauce", "CSS Proposals @when, CSS Masonry, Carets", "JavaScript in 2022 - New, Coming and Proposed Features" and "JS One Liners" from podcasts like ""Syntax - Tasty Web Development Treats", "Syntax - Tasty Web Development Treats", "Syntax - Tasty Web Development Treats", "Syntax - Tasty Web Development Treats" and "Syntax - Tasty Web Development Treats"" and more!

    Episodes (13)

    741: TypeScript Interview Questions - STUMP’d

    741: TypeScript Interview Questions -  STUMP’d

    Wes and Scott tackle TypeScript trivia, from combining string literal types to unraveling the mystery of d.ts files. Join them as they challenge each other on conditional types, interfaces, triple-slash directives, and TypeScript records.

    Show Notes

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott:X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    686: We Need Your Help With The Secret Sauce

    CSS Proposals @when, CSS Masonry, Carets

    CSS Proposals @when, CSS Masonry, Carets

    In this episode of Syntax, Wes and Scott talk about proposals to CSS including @when, CSS Masonry, CSS Caret, ENV Vars, and Media Query Ranges.

    Sentry - Sponsor

    If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

    Sanity - Sponsor

    Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.

    Show Notes

     @when media(width >= 400px) and media(pointer: fine) and supports(display: flex) {   /* A */ } @else supports(caret-color: pink) and supports(background: double-rainbow()) {   /* B */ } @else {   /* C */ }  
     .grid {   display: inline-grid;   grid: masonry / repeat(3, 2ch);   border: 1px solid;   masonry-auto-flow: next; }  

    Tweet us your tasty treats

    JavaScript in 2022 - New, Coming and Proposed Features

    JavaScript in 2022 - New, Coming and Proposed Features

    In this Hasty Treat, Scott and Wes talk about new proposed features coming to JavaScript in 2022.

    MagicBell - Sponsor

    Magic Bell is the The notification inbox for your product. Add a MagicBell to your product for announcements, billing, workflow, and other notifications. The free plan supports up to 100 Monthly Active Users - use the coupon code SYNTAXFM for 10% off the first 12 months.

    Sentry - Sponsor

    If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

    Show Notes

    URL imports in Node.js

    Tweet us your tasty treats

    JS One Liners

    JS One Liners

    In this Hasty Treat, Scott and Wes talk about some Javascript one liners that speed up your coding experience in one line.

    Whether you’re working on a personal project or managing enterprise infrastructure, you deserve simple, affordable, and accessible cloud computing solutions that allow you to take your project to the next level. Simplify your cloud infrastructure with Linode’s Linux virtual machines and develop, deploy, and scale your modern applications faster and easier. Get started on Linode today with a $100 in free credit for listeners of Syntax. You can find all the details at linode.com/syntax. Linode has 11 global data centers and provides 24/7/365 human support with no tiers or hand-offs regardless of your plan size. In addition to shared and dedicated compute instances, you can use your $100 in credit on S3-compatible object storage, Managed Kubernetes, and more. Visit linode.com/syntax and click on the “Create Free Account” button to get started.

    If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

    Show Notes

    • 00:24:12 Welcome
    • 01:24:11 Sponsor: Linode
    • 02:11:02 Sponsor: Sentry
    • 03:54:18 Twitter ask for One Liners
    • 04:24:05 Math random const getPsuedoID =() => Math.floor(Math.random() * 1e15);
    • 05:43:09 Random color
    • Paul Irish random color '#'+Math.floor(Math.random()*16777215).toString(16);
    • 06:41:06 Console.log as an object. console.log({ dog, person }); VS Marketplace Link
    • 08:29:17 Edit anything document.designMode = "on"
    • 10:15:15 Temporal date export const today = Temporal.Now.plainDateISO();
    • 11:44:05 Console(log) const myFunc = (age) ⇒ console.log(age) || updateAge()
    • 13:26:13 Remove a prop const { propToRemove, ...rest } = obj;
    • 15:29:01 PHP style debugging preElement.innerText ={JSON.stringify(val, '', ' ')}`
    • 16:31:00 First and Last Destructure var {0: first, length, [length - 1]: last} = [1,2,3];
    • 17:34:17 Speed up audio video document.querySelector('audio, video’).playbackRate = 2
    • Overcast
    • 19:44:15 Sleep function let sleep = (time = 0) => new Promise(r => setTimeout(r, time))
    • 20:26:00 If statements on one line If (!thing) return 'something'

    Tweet us your tasty treats

    Hasty Treat - CSS Nesting 1

    Hasty Treat - CSS Nesting 1

    In this Hasty Treat, Scott and Wes talk about CSS nesting — what it is, when to use it, and why.

    Prismic - Sponsor

    Prismic is a Headless CMS that makes it easy to build website pages as a set of components. Break pages into sections of components using React, Vue, or whatever you like. Make corresponding Slices in Prismic. Start building pages dynamically in minutes. Get started at prismic.io/syntax.

    Sentry - Sponsor

    If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

    Show Notes

    04:22 - What is it?

    06:02 - Why nest?

    • Easier to read
    • Easier to write
    • Prevents refactoring errors, allows for dry-er code. No more typing a parent div 100 times, with a possibility of screwing it up.

    08:13 - When to use nesting

    • Nesting is often overused
    • Only nest what you would have written un-nested with a short hand (e.g. don’t nest just for the sake of it)
      • .container .item {} .container .item a {}
    • Use it for scoping

    10:06 - Nesting prefixes

    • In order to nest CSS, you must first start it with a nesting selector
     .tweet {   & > p {   }   &.media-included { color: green; }   & + .tweet { } // sibling   & p { } // descentang }  
    • Component-based — tweet, card, company, Link
     article{     color: blue;   & {         color: red;   } }  

    and must be the first child of a compound selector

    12:44 - @nest rule / media queries

    • Mostly just a visual way to show nested
     .foo {     display: grid;     @media(orientation: landscape) {     & {             grid-auto-flow: column;         }     } }  
     .foo {   display: grid;    @media (orientation: landscape) {     & {       grid-auto-flow: column;     }      @media (min-inline-size > 1024px) {       & {         max-inline-size: 1024px;       }     }   } } /* equivalent to    .foo { display: grid; }     @media (orientation: landscape) {      .foo {        grid-auto-flow: column;      }    }     @media (orientation: landscape) and (min-inline-size > 1024px) {      .foo {        max-inline-size: 1024px;      }    }  */  

    16:30 - How to use nesting today

    • Literally any CSS preprocessor
    • PostCSS to use spec

    Links

    Tweet us your tasty treats!

    Hasty Treat - Environmental Variables

    Hasty Treat - Environmental Variables

    In this Hasty Treat, Scott and Wes talk about environment variables — what they are, where you should keep them, and more!

    Sanity - Sponsor

    Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.

    Sentry - Sponsor

    If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

    Show Notes

    03:54 - What are they?

    • API Keys
    • Secrets
    • Database URLs
    • NODE_ENV

    06:16 - Type of env variables

    • Plain text
    • Encrypted
    • Frontend
    • Backend
    • .env files
      • .env is a good package for all langs
      • .env.local
    • Framework env variables
    • System env variables
    • Host-provided variables

    16:20 - Where should you keep them?

    17:34 - Other gotchas

    • Netlify Limit is 4096
    • Netlify needs a clear cache before it works
    • THING=yo node index.js
    • cross-env
    • NODE_OPTIONS="–inspect"
    • Require before run

    Links

    Tweet us your tasty treats!

    Hasty Treat - Certifications? Government Specified JavaScript Skills?

    Hasty Treat - Certifications? Government Specified JavaScript Skills?

    In this Hasty Treat, Scott and Wes talk about web dev certifications — are they worth it, or a waste of time?

    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”.

    Show Notes

    02:12 - Certifications

    05:30 - We have standards, and people move faster than standards.

    • jQuery moved faster than vanilla JS
    • Typescript is sometimes preferred over regular JS
    • We have universities that offer web developer certs and many of them are a joke
    • The point is that programming is the wild west — it’s far too broad and moves far too fast for us to try and fit it in a box

    10:28 - Do certifications mean anything?

    14:30 - How do you know if you have enough skills (when you’re job hunting)?

    19:04 - Some jobs do require a certification

    • AWS
    • Google

    Links

    Tweet us your tasty treats!

    Hasty Treat - Target=_blank security issue? What's the deal with noopener and noreferrer?

    Hasty Treat - Target=_blank security issue? What's the deal with noopener and noreferrer?

    In this Hasty Treat, Scott and Wes talk about noopener and noreferrer and why you should use them with links that have blank targets.

    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”.

    Show Notes

    03:35 - What’s the big deal?

    • If you have a link that is target="_blank" you should add rel=“noopener” and rel=“noreferrer”
    • Retail Me Not uses it
    • Valid use cases:
      • Same domain change the page from a popup
      • Cross domain changing page data
    • Example: https://mathiasbynens.github.io/rel-noopener/

    05:39 - Why doesn’t the browser just fix it?

    10:48 - Does this hurt SEO?

    • It breaks analytics of the recipient site, turning a referral visit from your site into direct traffic, unless the link has UTM or similar tracking parameters. If you have a site where passing traffic offsite is part of the business model, links need an affiliate id instead.

    Links

    Tweet us your tasty treats!

    Hasty Treat - Should You Support IE11?

    Hasty Treat - Should You Support IE11?

    In this Hasty Treat, Scott and Wes talk about IE11 — should you support it, what to be aware of if you do, and what data is important in making that decision.

    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”.

    Show Notes

    03:21 - When was IE11 made?

    03:48 - When is it deprecated?

    04:44 - How to make the decision?

    • Look at your analytics
    • Look at your users
    • Is a 2% drop in sales worth it?

    09:00 - What doesn’t IE11 have? What can you start using now that IE11 is gone?

    • Modern Flexbox
    • CSS Grid
    • CSS Variables

    10:26 - Can you partially support it?

    • Major features
    • Progressive enhancement
    • Gracefully degrade
    • Polyfill

    11:16 - What about testing?

    Links

    Tweet us your tasty treats!

    Hasty Treat - Scott's New Personal Website

    Hasty Treat - Scott's New Personal Website

    In this Hasty Treat, Scott and Wes talk about Scott’s new website!

    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”.

    Show Notes

    02:25 - Relaxed fit development

    • Not concerned with it being perfect
    • Will act as a loose digital garden, so it needs to be flexible
    • Keep my talks and podcast appearances somewhere

    04:40 - The stack

    • Svelte / Sapper
    • CSS variables
    • Static generation with markdown
    • No API
    • Hosted on Netlify

    08:15 - Why?

    • I dropped that db life in 2015 and never looked back
    • I’m a developer - markdown is good for me
    • I like a playground for ideas, so the new site throws out any idea of formality and dives into being a playground for myself.
    • Full page animations. Orchestration. Fully SSG.
    • Code is painless to add to — adding a blog post is as easy as creating a markdown file

    Links

    Tweet us your tasty treats!

    Hasty Treat - Picking the Stack for uses.tech - Gatsby, React, Context, Styled Components

    Hasty Treat - Picking the Stack for uses.tech - Gatsby, React, Context, Styled Components

    In this Hasty Treat, Scott and Wes talk about Wes’ new website, uses.tech — the stack he chose for building it, as well as what it does and how to use it!

    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”.

    Show Notes

    2:23 - What is uses.tech?

    5:33 - The stack

    8:13 - Avatars

    10:43 - Filtering

    15:51 - Github actions

    19:25 - Favicon

    21:30 - Search

    22:03 - Hosting

    Links

    Tweet us your tasty treats!

    Hasty Treat - Async + Await Error Handling Strategies

    Hasty Treat - Async + Await Error Handling Strategies

    In this Hasty Treat, Scott and Wes discuss different error handling strategies.

    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”.

    Show Notes

    2:07 - Try / Catch

    • This can be done at call time or inside the function

    4:10 - Higher Order Function

    • Makes a function that returns a new function which in turn calls your original function (but with a .catch chained on)

    7:46 - Handle the error when you call it

    • Use async/await but chain a .catch onto the end

    9:03 - Node.js Unhandled Rejection Event

    • process.on('unhandledRejectionEvent', callback)

    9:40 - What do do with those errors

    • Send to error tracking service
    • Possible to give the user a reference number
    • Display good error text to user

    Tweet us your tasty treats!