meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

Code Styles: Readable Rules and Petty Preferences

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 7 December 2022

⏱️ 69 minutes

🧾️ Download transcript

Summary

In this episode of Syntax, Wes and Scott talk about their preferred coding styles and preferences they use, and why. Linode - Sponsor 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. 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. Freshbooks - Sponsor Get a 30 day free trial of Freshbooks at freshbooks.com/syntax Show Notes 00:11 Welcome 02:35 Function definition 06:43 File path aliases 09:36 Implicit vs Explicit Return 13:49 Array.reduce() VS literally anything else 17:37 Loop vs array method 22:55 Sponsor: Linode 23:37 Updating vs creating a new var 30:36 Iterable to Array 34:46 Sponsor: LogRocket 36:16 Destructuring vs Object.property 39:22 Destructuring Arrays vs Reference by index 41:40 Number(string) vs +string 43:35 Incrementing 45:06 Multiple ifs 47:48 Multiple ifs vs switch vs Ternary 51:05 Promises / Error Catching 53:50 if(falsy) block VS return false; 55:51 Sponsor: Freshbooks 56:26 Spaces vs tabs 58:39 Trailing commas 00:40 Semicolons 02:49 SIIIIICK ××× PIIIICKS ××× ××× SIIIIICK ××× PIIIICKS ××× Scott: Video Archives Podcast Wes: Ubiquiti Wifi Shameless Plugs Scott: LevelUp Tutorials Wes: Wes Bos Tutorials 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

You're listening to syntax, the podcast with the tastiest web development treats out there.

0:06.1

Strap yourself in and get ready.

0:08.0

Here is Scott Tillinski and West Boss.

0:10.8

Welcome to syntax, the podcast with the tastiest web development treats out there.

0:14.7

Today we've got a good one for you.

0:17.5

We kind of put two shows together.

0:19.1

We had this idea of a first a petty preferences show, which is just things, tabs and spaces and what not.

0:26.2

And we'll talk about all of that.

0:28.0

But then there's also like a lot of stuff, which is like, I actually prefer function definitions over an arrow function in a variable.

0:35.7

And there's some real reasoning behind that.

0:37.8

So Scott and I are going to go through a list of probably 20 different things.

0:41.4

And we're going to say what we prefer, and as well as like why we prefer that, which is generally,

0:49.4

you try to side with more readable code over being a hot shot.

0:53.8

So we are sponsored by three awesome companies today, Linode, Cloud Computing, Developers, Trust, Log, Rocket, Javascript, Session, Replay, and FreshBooks, Cloud Accounting.

1:03.7

We'll talk about all that part with you through the episode.

1:06.4

How you doing today, Scott?

1:07.7

I'm doing good.

1:08.8

Just hanging out, launching our site this week.

1:14.4

So I'm just in berserker mode here, just, you know, we have a friend of mine doing Q&A for us.

1:22.8

Is it Q&A or QA?

1:25.3

Q&A. Quality.

1:26.6

Oh, you know, no, QA.

...

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.