Testing in Rust

  Рет қаралды 50,910

Let's Get Rusty

Let's Get Rusty

Күн бұрын

Пікірлер: 36
@letsgetrusty
@letsgetrusty 3 жыл бұрын
📝 Get your *FREE Rust cheat sheet* : www.letsgetrusty.com/cheatsheet
@exoticcoder5365
@exoticcoder5365 3 жыл бұрын
Signed up ! Good work !
@sparky173j
@sparky173j Жыл бұрын
I learned about a few new things by reading this cheat sheet. Thanks for putting it together and sharing it
@jonasschade
@jonasschade 3 жыл бұрын
Thanks a lot for your videos! :D You are doing a particularly good job explaining everything well enough without going into unnecessary details. As someone who already knows a couple of different programming languages, your videos really helped me to understand the things which differ in Rust. The quality of your videos is good, and they are well enough structured to easily skip chapters / parts which are already familiar.
@letsgetrusty
@letsgetrusty 3 жыл бұрын
Glad you like them!
@_ender
@_ender 3 жыл бұрын
Thank you. I really appreciate these videos. Rust is awesome and i am glad that you are helping explain the rust book.
@Gruby7C1h
@Gruby7C1h 2 жыл бұрын
One thing that might bite you: expect works as contains instead of equal! So panic!("not too much"); matches: #[should_panic(expected = "too much")]
@meka4996
@meka4996 3 жыл бұрын
Your videos are so good that they actually make me want to learn Rust!
@inx1819
@inx1819 3 жыл бұрын
I'm surprised you don't get more views and subscribers. I subbed, I hope you blow up one day!
@camilo1u2b
@camilo1u2b 2 жыл бұрын
not many people learning rust for now I guess
@jayleejw1801
@jayleejw1801 2 ай бұрын
reading the Rust Book can be boring and sometimes confusing. But seeing this guy making examples makes learning Rust so easy :D
@kitgary
@kitgary 3 жыл бұрын
This is the best Rust series on KZbin! You deserve more views and subscriptions! Good job!
@GolangDojo
@GolangDojo 3 жыл бұрын
Love that into boi
@HenriqueAraujo174
@HenriqueAraujo174 Жыл бұрын
You make Rust looks easy, thanks for your videos
@pedrobmorales
@pedrobmorales Жыл бұрын
Thank you! These videos are super informative and have helped me immensely in understanding Rust. Could you make a video covering mocking traits and structs? I've been trying to mock stuff like reqwest::Client or lapin::Connection but I have a hard time because these are in external crates. I've been writing code that takes references to the above, but I wonder if it's possible to create a &reqwest::Client which would be a mock object.
@StellarWeb008
@StellarWeb008 5 ай бұрын
Sir would you please consider making a video on "measuring" tests, that would be very helpful
@exoticcoder5365
@exoticcoder5365 3 жыл бұрын
Great Series !
@Nanagos
@Nanagos 2 жыл бұрын
Now I just need something that will test my testing code 😅
@minastaros
@minastaros 11 ай бұрын
Thank you very much for these videos, it's a pleasure to learn that way! However, one objection concerning the test cases themselves: you should always check the boundary cases, since even the best borrow checker does not prevent you from one of the most often made error: off by one. What if your test checks that 200 is correctly filtered out, but does not discover that 100 may be filtered out as well (because else if in new() were >= by mistake)? Also, your test case checks -2 , but are you sure about 0? And is 1 in?
@TopGearScooter
@TopGearScooter 2 жыл бұрын
How did you get those inline parameters in your editor?
@andresmontoya7852
@andresmontoya7852 3 жыл бұрын
Thanks! What are the extensions you use for vscode? For rust
@abdulniyas1657
@abdulniyas1657 3 жыл бұрын
I think its rust-analyzer
@letsgetrusty
@letsgetrusty 3 жыл бұрын
yup, rust-analyzer
@sahilverma4077
@sahilverma4077 3 жыл бұрын
can you please add a list of frameworks and resources to learn those frameworks in the cheatsheet
@letsgetrusty
@letsgetrusty 3 жыл бұрын
Hmm not sure if it makes sense to add them to a cheatsheet but I'll consider it. I'm going to make a video about this as well.
@sahilverma4077
@sahilverma4077 3 жыл бұрын
@@letsgetrusty oh, a video will be better, attach linkes to the resources in the description please
@eduardofernandezdiaz5264
@eduardofernandezdiaz5264 Жыл бұрын
How do you mock IO calls during testing
@redemption5294
@redemption5294 3 жыл бұрын
Can we develop full GUI desktop applications using rust?
@letsgetrusty
@letsgetrusty 3 жыл бұрын
The infrastructure for creating GUI apps is still in the early stages of being built out. For more info check out www.areweguiyet.com/
@GAGONMYCOREY
@GAGONMYCOREY 3 жыл бұрын
Also if you are making a bigboy app you can do rust-wasm + electron. This way it can look good and be powerful still 😎
@arya_bakh
@arya_bakh 2 жыл бұрын
gtk supports rust bindings and it has a great guide
@abdullahmertozdemir9437
@abdullahmertozdemir9437 Жыл бұрын
he actually made full stack rust video recently, in case you are not aware (a year later)
@user-by2tg1xt7u
@user-by2tg1xt7u 9 ай бұрын
First thing I was struck with: No Negation assert. One of the most useful activities in ANY programming language can be coding boolean functions to handle decisions on states that likely 1) occur more than once, 2) are potentially buggy because of the complexity of conditional constructs, 3) represent something that is easy to encapsulate and unittest, making them a very good candidate for doing so. Yet, and Rust isn't the only language I've run into this with, documentation on negation or even presence of negation assertions is missing or stupidly absent. Sure I can do assert!(!something), but that's about as bug prone as you can get. Come on you guys. No negate!(something) macro???? Really? I just spent another half hour looking after I looked a half hour last night when I was tired. If it is there, fine, but why not clearly in the docs??? If not, PLEASE!!!!
@gusslx
@gusslx 6 ай бұрын
Why would assert!(!something) would be bug prone?
@real50cent
@real50cent Жыл бұрын
Bogdan-goth-post-punker-version
@johnbaxter7582
@johnbaxter7582 Жыл бұрын
has anyone ever told you that you look like dustycloud?
Testing in Rust - Part 2
14:10
Let's Get Rusty
Рет қаралды 25 М.
Closures in Rust
19:53
Let's Get Rusty
Рет қаралды 77 М.
Фейковый воришка 😂
00:51
КАРЕНА МАКАРЕНА
Рет қаралды 7 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 15 МЛН
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 96 М.
Where is Rust being used?
11:46
Let's Get Rusty
Рет қаралды 75 М.
8 deadly mistakes beginner Rust developers make
14:14
Let's Get Rusty
Рет қаралды 167 М.
Mocking Rust 🤪 and Testing 🧪
11:58
Code to the Moon
Рет қаралды 38 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 223 М.
Rust Data Modelling Without Classes
11:25
No Boilerplate
Рет қаралды 172 М.
The Rust Standard Library is SO Confusing...Until Now!
11:45
Travis Media
Рет қаралды 28 М.
Rust's Witchcraft
9:18
No Boilerplate
Рет қаралды 180 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 170 М.
5 things I wish I knew before learning Rust
7:28
Let's Get Rusty
Рет қаралды 115 М.
Фейковый воришка 😂
00:51
КАРЕНА МАКАРЕНА
Рет қаралды 7 МЛН