meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

Clamp & Interpolate

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 11 July 2022

⏱️ 19 minutes

🧾️ Download transcript

Summary

In this Hasty Treat, Scott and Wes talk about clamp and interpolate and how you might want to use them in your next project. 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. NAME - Sponsor There are hundreds of payments processing companies out there. Hit up developer.paymentshub.com/syntax to learn more about how Payments Hub Developers not only processes ecommerce and in-person payments, but also boards and underwrites your merchants in as little as 90 minutes. We are currently offering Syntax listeners who become new partners 6 months free data through our Business Reporting API! Show Notes 00:25 Welcome 00:52 Sponsor: Sentry 01:31 Sponsor: Payments Hub 02:40 Topic introduction 05:05 What is Clamp? CSS clamp: font-size: clamp(1rem, 10vw, 2rem); JavaScript Clamp: const clamp = (num, min, max) => Math.min(Math.max(num, min), max) 09:12 What is Interpolate? D3 Interpolate 12:56 Interpolate in colors 14:37 Quantize D3 Quantize 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

Transcript

Click on a timestamp to play from that location

0:00.0

Monday! Monday! Monday! Open wide dev fans! Get ready to stuff your face with

0:07.0

JavaScript CSS! Node modules! Barbecue tips! Get workflow! Break dancing! Soft skills!

0:12.0

Web development! The hastiest! The Carrazius! The tastiest! Web development

0:17.0

treats! Coming in hot! Here is Wes Barakuda! Boss and Scott El Torro Lugo!

0:24.0

Tolinsky!

0:27.0

Welcome to syntax on this Monday hasty treat. We're going to be talking about two

0:32.0

concepts and functions that will change how you think about numbers in

0:37.0

programming in general and might illuminate some JavaScript and CSS topics for

0:42.0

you. I'm talking about clamping and interpolating numbers. My name is Scott

0:46.0

Tolinsky. I'm a developer from Denver, Colorado, and with me is always

0:49.0

Wes Boss. Hey, everybody! Hey, Wes, and with us today in addition to Wes Boss is

0:55.0

two amazing sponsors, Century and Payments Hub. Century is the perfect place to see

1:00.0

all of your errors and exceptions happening. It allows you to gain total

1:03.0

visibility into what's going on in your application, whether it be your

1:07.0

performance metrics, whether it be how buggy your code is, whether it's how

1:12.0

good that new release was you just did. You just pushed out a new release,

1:16.0

it has no bugs. You can sleep well tonight. So, check out century

1:20.0

at century.io. You can use the coupon code at hasty treat, all

1:24.0

or case, all one word, and you'll get two months for free of their amazing

1:28.0

or an exception handling tracking tools where you can make sure that your

1:32.0

application is always running as smooth as possible. We're also

1:35.0

sponsored by Payments Hub. Payments Hub is an easy to use API and

...

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