meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

Rust for JS Devs — Part 2

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 23 August 2023

⏱️ 56 minutes

🧾️ Download transcript

Summary

In this episode of Syntax, Wes and Scott jump into part 2 of their look at Rust for JavaScript developers, including variables in Rust, type systems in Rust, signed and unsigned integers, and more. Show Notes 00:10 Welcome 00:43 Audio issue bugs 03:17 Building decks 06:06 Variables in Rust Syntax 647: Rust for JavaScript Developers - Node vs Rust Concepts let x = 5; // x is immutable let mut x = 5; // x is mutable const MAX_POINTS: u32 = 100_000; // must be defined at compile time 10:42 Type System in Rust 15:52 Types in Rust 19:06 Why does Rust have signed and unsigned integers? 23:35 Slicing strings with &str 27:35 enum 27:55 struct 28:19 Vec 29:33 HashMap and HashSet 33:00 Converting Signed to Unsigned Numbers let unsigned_value: u8 = 200; let signed_value: i8 = unsigned_value as i8; 36:12 What’s up with &str? 43:31 Rust error messages 45:28 What is a Struct? struct User { username: String, email: String, sign_in_count: u64, active: bool, } // You can create an instance of a struct like this: let user1 = User { email: String::from("someone@example.com"), username: String::from("someusername123"), active: true, sign_in_count: 1, }; impl User { fn login(&mut self) { self.login_count += 1; } } 49:17 SIIIIICK ××× PIIIICKS ××× ××× SIIIIICK ××× PIIIICKS ××× Scott: Thermacell Patio Shield Wes: Magnet Phone Mount Shameless Plugs Scott: Sentry 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 Wes Bos on Bluesky Scott on Bluesky Syntax on Bluesky

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

0:05.6

there.

0:06.6

Strap yourself in and get ready.

0:08.1

Here is Scott Tolesky and West Boss.

0:10.8

Welcome to Syntax, the podcast with the tastiest development treats we've got part to to one

0:17.2

of the most well-received podcasts we've done in quite a while.

0:20.6

That is Rust for JS Devs.

0:22.6

People really liked Scott kind of went through some of the very basics of Rust and explain

0:29.2

what they are in relation to a JavaScript developer who knows what those things are.

0:34.6

Now what we're going to do is to dive into part two, which is a little bit more of the

0:39.3

types and integers and different types of numbers, strings, the ASKy word.

0:45.2

You name it.

0:46.2

Hello, Scott.

0:47.2

How are you doing today?

0:48.2

Oh, I'm doing okay, man.

0:49.6

We've been having so many audio difficulties.

0:53.9

This is for all you wet.

0:55.5

We have.

0:56.5

We have.

0:57.5

Sorry.

0:58.8

I have been having so many audio issues and it's for all you web heads out there.

1:04.2

This is like a really interesting bug in actually West, just like moments ago, I found somebody

...

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.