Part of the Rust Crash Course: https://www.youtube.com/playlist?list=PL6yRaaP0WPkWRsXJgdnw9lj1vchAaKwfS

Welcome to the Rust Crash Course

In this course, we will be learning Rust from scratch. This course is very fast paced and designed for programmers who already have some experience with another programming language such as Dart or JavaScript or Swift. We will talk about variables, constants, ownership, functions, structures, enumerations, collections such as tuples, vectors, hash-maps and iterators, optionals, error handling, lifetime specifiers, traits, pointers, generics, packages, crates, modules and paths, asynchronous programming and we will also create 2 sample applications using Rust to put all these concepts to use!

In this chapter we will learn about constants and variables and different data types!

Timestamps:
00:00 - Variables
00:12 - What are variables?
00:41 - Define your own "name" variable
01:24 - Variables use snake_case naming convention
02:50 - Lines of code end with semicolon
03:21 - Print the name to the console
04:44 - Rust detects data types automatically
05:37 - Change the value of "name" in a separate line
07:19 - Mutability
07:30 - Create a mutable variable
08:48 - Assign a new value to it
08:57 - You can change the variable data but not its type
10:02 - Data Types
10:47 - Integer types
11:31 - You can be explicit about data types
12:06 - Data types at the end of values
12:36 - Rust can almost always detect data types
13:08 - Integer literals can be expressive
14:29 - Floating point values
15:37 - Operators
17:56 - Variable shadowing
18:38 - Here is an example of shadowing
19:45 - You can shadow with blocks as well
20:39 - Constants
21:10 - Constants should equate to a constant
21:21 - Constants are upper-cased and typed
22:36 - Constants should always have an initial value
22:58 - Variables can be assigned a constant
23:42 - Tuples
24:40 - Store personal data as tuple
25:14 - Read personal data as a tuple
27:24 - Components in tuples
28:03 - We can iterate over tuples
28:16 - You've learned the basics of variables now


If you want to support my work, please consider joining my YouTube channel by pressing the Join button!

Twitter: https://twitter.com/vandadnp
LinkedIn: https://linkedin.com/in/vandadnp

Let's get started!