meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

922: Pre-commit Hooks, requestAnimationFrame, Code Reviews, and More

Syntax - Tasty Web Development Treats

Wes Bos

Js, Technology, Css, Html5, Tech News, Webdevelopment, News, Javascript, Html

4.91.1K Ratings

🗓️ 23 July 2025

⏱️ 59 minutes

🧾️ Download transcript

Summary

In this potluck episode of Syntax, Wes and Scott answer your questions about code reviews, migrating legacy apps, CSS attr() use cases, pre-commit hooks, the future of creative web development, whether front-end devs need to be full-stack, and more! Show Notes 00:00 Welcome to Syntax! 00:43 When is the appropriate time to use requestAnimationFrame? 05:10 How do you handle code reviews on larger teams? 13:08 When to use the CSS attr() function 19:01 The future of browsing websites and the impact of AI 28:45 Brought to you by Sentry.io 29:10 Navigating browser preview in VS Code 31:31 Pre-populating email content with mailto 34:29 Is there increasing pressure for front-end developers to become full-stack? 43:14 What pre-commit checks should you run and how? 46:16 How do you deal with a poorly-built codebase when you already have thousands of active users? 50:05 What GitHub Copilot features should you disable while you’re learning something new? 52:22 Sick Picks + Shameless Plugs Sick Picks Scott: WOLFBOX MF100 Electric Air Duster Wes: Competition Kettlebells Shameless Plugs Syntax YouTube Channel 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

Transcript

Click on a timestamp to play from that location

0:00.0

Welcome to Syntax. We've got a Pollock episode for you today, which is you bring the questions. We bring the answers. Keep the questions coming, folks. Go to Syntax.com. In the bar, there's a hyperlink you can click on and you can give us your question. We'll answer it in an upcoming episode. Today we got some really good questions on should every developer be a full stack developer? A lot of people have frustrated that all the

0:21.9

job postings want you to do absolutely everything. How should you review a pull request? What does

0:28.0

that even look like? Migrating a large PHP app. What is the use of the CSS ATTR function?

0:34.0

So it just landed in Chrome. You can use it on all the HTML elements. What is possibly the use for that? And then some Vsco

0:40.8

tricks. Some really good questions today. Let's get on into it. First question we have here from Big Dave. When is the

0:47.0

appropriate time to use request animation frame and does it differ in React's felt angular? Yeah, this is a cool question. Request animation frame is a function in JavaScript that essentially allows you to

1:00.1

queue up some work that needs to be done.

1:03.3

And very likely that has to do with updating the DOM or something that will cause a

1:09.1

repaint on the page.

1:10.7

So I'll use this if I'm trying to

1:13.9

draw something to the page or if you're trying to use a canvas and you're trying to update the

1:20.0

canvas as often as you want. Now, normally you would think, okay, well, I want to run this thing,

1:26.2

like maybe some, some monitors are 30 frames a second,

1:29.4

some monitors are 60 frames a second, and some monitors are 120 frames a second.

1:36.5

And then you have to think about like computation as well, meaning that like maybe you can't

1:41.7

run that as often as you want because it's it's computationally expensive

1:45.8

and maybe you're only going to get 20 frames out of there so there's this like problem with

1:51.3

the browser is like how often do I run this updater function and instead of having to figure any of

1:57.3

that out you simply just run request animation frame meaning that you say hey

2:02.7

browser I would like to paint this when you are next able to paint please go ahead and

2:10.5

run this function to update the canvas or to rotate an item a certain amount and so on. So it's pretty nice because you don't

2:22.3

really have to figure out how frequently you want to run something. You just ask the browser and it's

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2025.