meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

Hasty Treat - Handy Utility Functions with Just

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.9 • 1.2K Ratings

🗓️ 18 October 2021

⏱️ 15 minutes

🧾️ Download transcript

Summary

In this Hasty Treat, Scott and Wes talk about handy utility functions with Just! 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. LogRocket - Sponsor LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax. Show Notes 03:44 - What is Just? https://github.com/angus-c/just No dependencies It’s written in JS, so you can copy+paste them if you really need it Types available https://medium.com/@angustweets/just-a12d54221f65#.ljib0mfr5 06:46 - Some nice ones just-safe-set → deeply setting dynamic object properties set(data, 'a.long[0].path', value) object-typeof Why not use typeof? Everything is an object Why not use array.isArray? Handy to have a switch statement just-*-case Camel, kebab, snake just-compare 10:54 - Why? This is the NPM install of Stack Overflow copy+paste Handy as hell Battle-tested Lots of ways to do simple stuff Sometimes the simple stuff has weird edge cases - these are caught Sometimes your checks can be messy Check if an object is empty 25 lines Just install it 12:05 - Other Great to learn and test yourself There are tests for each function Run them See them fail Try and make it so all the tests pass without looking at the source Links https://github.com/angus-c/just https://github.com/antony 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 javascript CSS node module barbecue tips get work flows break dancing soft skills web development the hastiest the

0:13.5

Carrazius the tastiest web development treats coming in hot here is West

0:19.2

Barakuda boss and Scott El Toro Lugo to Linsky

0:25.2

Welcome to syntax in this Monday hasty treat we're going to be talking about handy utility functions via a library called just

0:35.2

JUST it's funny because when I was thinking about just I was thinking about just and in all these other libraries that sound kind of just like this

0:42.7

But this is just JUST and we'll have a link in the show description

0:48.2

Now my name is Scott to Linsky I'm a developer from Denver Colorado and with me as always is the

0:53.7

West boss

0:55.7

Everybody hey West I'm excited about this episode because these are I love utility functions

1:01.1

I love neat little javascript things and I love small code bundles

1:04.1

So that is all up in the alley of this one so this episode is sponsored by two amazing companies. That's a sanity and log

1:11.7

Rocket now sanity is the perfect place to store your data for your website west

1:17.9

Do you want to talk about sanity? I do

1:20.2

sanity.io is the structured content

1:25.2

CMS for your application

1:27.2

It's really cool because it's a service

1:29.5

But all the configuration all of the the UI for entering in your data the whole CMS that's self-hosted

1:36.7

You know full control over all that so it's kind of best of both world is like it works really super well like a service

1:43.0

But you can also if you need to you have control over literally anything you can put in your own react components into the CMS

1:50.0

They have image transformation and face detection and all that stuff built in as well. It's not just a CMS

1:55.9

It's a it's a lifestyle. I think that the it's a whole thing. Yeah, sanity should just put on their front on front of their website

2:02.7

So lifestyle. Yeah

...

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.