Rust Primitives (basic data)

preview_player
Показать описание
A brief video discussing primitive data types in Rust.

This Rust programming language tutorial series is aimed at easing your training step by step. Rust is a systems level language aimed at speed and safety and can be run cross-platform, including embedded systems and even the browser with WebAssembly (WASM)! I use the VS Code development environment to help you learn the core topics. Please join me on this journey with this fantastic new programming language.

Topics include coding basics, hello world, primitives, cargo, toml, rustup, arrays, borrowing, shadowing, string vs str, tuples, enumerations (enums), println and so much more...all free on youtube!
Рекомендации по теме
Комментарии
Автор

Correction: char is 4 bytes, not 4 bits

vimcode
Автор

This is a great series. I love how you explain things in depth.

craigjohnson
Автор

Doug, I would like to say that your videos are top shelf. Easy to follow, informative, and we'll formatted. Thank you for your hard work.

scottb
Автор

Thanks for clicking 'Like' and Subscribing!

dougmilford
Автор

You are the best programming tutor on youtube! Very clear explanations! Thank you!

m-vendor
Автор

Small error in the Summary slide at the end, it should say Chars are 4 bytes (instead of 4 bits).
Great content however!

MichielVlootman
Автор

Doug, we miss you and your Rust videos! ❤️

sergesolkatt
Автор

It's a joy watching and listening to you explain Rust concepts; you make them look so easy. This is a great series. Thank you!

kobbypentangeli
Автор

Excellent tutorial videos on Rust. Thank you for making these available.

dwaynebrock
Автор

Doug, Thank you for the video series. Should n't the char be 4 bytes in size (not bits) at 14:03?

muppalaneninitin
Автор

it does actually throw a compile error on the arithmatic overflow now, you most probably already know this by now, but some people watching might not :)

stormsabre
Автор

This should be on the front when you search for rust for beginners <3

frederiklaursen
Автор

loved the videos in this series. Well explained and very beginner friendly. And you sound a lot like another youtube teacher i watch, derek banas.

cristicode
Автор

Hi,
Thank you for this useful course

HosseinOjvar
Автор

The out-of-bounds exception is now caught by the new compiler (1.59.0 as of 3/1/2022)

tomsoraoka
Автор

I’ve done so many courses, even taught some on other subjects, but no one explains things as well as you do. Please - where can I buy a course form you?

Shaunmcdonogh-shaunsurfing
Автор

Is a immutable variable a variable ? :)

Sina-xwxp
Автор

Thanks for the video. Running --release actually doesn't allow overflow for me. Compiler says on by default`

alexkalopsia
Автор

5:40 - "not sure what is worse a program that can crash unexpectedly or one that silently produces bad data"

Rust is implicitly injecting a set of runtime assert statements around each integer operation (with nonzero runtime cost).

These represent the two different philosophies of error management: ""fail fast" and "fail gracefully". Fail Fast when there is a developer around to fix it. Fail Gracefully in Production as crashing is a poor end-user experience and partial functionality is often much better than no functionality.

Lack-of-overflow is thus a language feature enforced via "design by contract". If the issue is important enough, then write unit tests explicitly to test overflow bounds and see if these assertions are triggered.

CountJamesMcGuigan
Автор

At the time of writing this comment. I can't try an overflow without a warning from the compiler maybe its just me or this is an update from Rust developers. But I like this better.

dmitrylompa