5 things I wish I knew before learning Rust

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • Ready to dive into Rust programming? Don't start without watching this video! In today's guide, I share 5 crucial insights I wish I had before embarking on my Rust journey. Whether you're a beginner or seasoned developer, these tips will save you time and frustration.
    Free Rust cheat sheet: letsgetrusty.c...
    Resources:
    Harvard CS lectures: • CS50x 2023 - Lecture 0...
    Memory management in Rust: • Stack, Heap, and Stati...
    The Cherno: / @thecherno
    Rust Book Playlist: • ULTIMATE Rust Lang Tut...
    Rust By Example: doc.rust-lang....
    Rustlings: github.com/rus...
    Idiomatic Rust: github.com/mre...
    Crust of Rust Playlist: • Crust of Rust: Lifetim...
    Rust for Rustaceans: nostarch.com/r...
    Writing an OS in Rust: os.phil-opp.com/
    Embedded Rust Book: docs.rust-embe...
    Rust and WebAssembly: rustwasm.githu...
    Jeremy Chone Axum course: • Rust Axum Full Course ...
    Zero-to-Prod in Rust: www.zero2prod....
    My free Rust course: letsgetrusty.c...

ความคิดเห็น • 207

  • @letsgetrusty
    @letsgetrusty  ปีที่แล้ว +10

    📝Get your *FREE Rust cheat sheet* :
    letsgetrusty.com/cheatsheet

  • @LeviNotik
    @LeviNotik ปีที่แล้ว +208

    Yes, all of the concepts you mentioned here are obviously relevant and useful for learning Rust. Certainly knowing about the memory model, the stack vs the heap, etc. However, and I mention this mostly as a note to newcomers who may be discouraged by the sheer number of things mentioned here from learning Rust, that I think it's a mistake to refer to all of this as things you wished you knew "before learning Rust." You can learn many of these things along the way and sharpen your understanding as you go. I wouldn't view everything mentioned here as some hard prerequisite. Often times, when we learn new things, we have a hindsight bias problem where, after having learned all the things, we look back and say "gee I wish I had known these things before diving into or learning X"...but maybe it was totally fine to have learned these things by way of learning X. Sometimes it is actually preferable since learning X provides the context and motivation. Just my 2c

    • @letsgetrusty
      @letsgetrusty  ปีที่แล้ว +15

      Agreed! I learned much of this along the way :)

    • @jay.rhoden
      @jay.rhoden ปีที่แล้ว +5

      @@letsgetrusty Your right, but to be fair the title of this video is things he wished he'd learnt, not things he should have learnt.

    • @shadon_official2510
      @shadon_official2510 ปีที่แล้ว +5

      I was just about to type this. Just learn as you go, and you will be just fine!

    • @davebudah
      @davebudah 11 หลายเดือนก่อน +3

      Well said.

    • @xXYourShadowDaniXx
      @xXYourShadowDaniXx 10 หลายเดือนก่อน +7

      I honestly think starting with a simple app that can be expanded is the best way to learn hands on. This is why web developers create todo's so often, but I think its even more interesting to do for languages with file access like rust, you can start with a terminal todo that is just: list add remove toggle . Then when you feel like you are happy with that expand it, save the list to a file so you can load it on start. Allow the user to save multiple lists and files, and have a default that loads on start. Add colors, add timestamps and due dates and completion dates etc etc. This is how I have been learning Rust this last month and I feel like the hardest thing has been just making sure I'm returning the right data Result vs Option vs String vs str and understanding the Borrow checker in edge areas like when you aren't putting str's in variables (something you do in scripting languages often, in place raw data manipulation, needs a tiny bit more understanding in Rust IME).

  • @justsomeguy8385
    @justsomeguy8385 ปีที่แล้ว +31

    I don't think you mentioned it, but I started with the "Programming Rust" book. It's incredibly well-written, and explains Rust concepts in relation to C, so it explains why the concept is an issue in C and is fixed in Rust. This gives you a great understanding of why things are the way they are in Rust without needing to struggle through learning C to appreciate it.

  • @fcolecumberri
    @fcolecumberri ปีที่แล้ว +495

    The best way to love Rust is to know C++ deep enough to love it and wish it's death at the same time.

    • @linkernick5379
      @linkernick5379 ปีที่แล้ว +7

      Hahaha, ironically 😄

    • @shipweck6253
      @shipweck6253 ปีที่แล้ว +12

      beautifully phrased

    • @JorgetePanete
      @JorgetePanete ปีที่แล้ว +5

      its*

    • @fcolecumberri
      @fcolecumberri ปีที่แล้ว +6

      @@JorgetePanete se me fue, el ingles no es mi idioma nativo.

    • @Lord2225
      @Lord2225 ปีที่แล้ว +1

      What a wise words

  • @apffer
    @apffer 10 หลายเดือนก่อน +15

    Jeremy Chone is the best Rust resource in TH-cam for backend dev, after you get the foundation knowledge right from the Rust Book and Rust by Example.

  • @Mempler
    @Mempler ปีที่แล้ว +61

    I went from C++ to Rust and suddenly, C++ made so much more sense.
    Its insane how Rust rewires your brain.

    • @linkernick5379
      @linkernick5379 ปีที่แล้ว +1

      Yeah, its insane how Rust devs with rewritten brain hate UB and memory errors.😅

    • @plesleron
      @plesleron 6 หลายเดือนก่อน +4

      @@linkernick5379 Is this... bait? Who in their right mind wants UB and memory errors in their program?

  • @fluxx2875
    @fluxx2875 ปีที่แล้ว +80

    C++ was my favourite language for a very long time. I got introduced to Rust through a project at work. After a few pages of the Rust Book, I immediately noticed that I really like Rust and that for me it is C++, just improved with all the things that annoy me about C++. I really hope that we will see more and more Rust in the future and that the language will continue to develop. I don't have much experience with Rust yet, but it has already replaced C++ as my favorite language 😅

    • @bwljustus8077
      @bwljustus8077 ปีที่แล้ว +12

      Of course, this process is known as oxidation 😂

    • @himanshutripathi7441
      @himanshutripathi7441 ปีที่แล้ว

      Have some experience with the language, then the story might be different.

    • @jongeduard
      @jongeduard ปีที่แล้ว +5

      For me Rust totally made sense the first day I touched it. After about 20 years of touching many other languages, most things in Rust landed quickly for me.
      And of course things can be frustrating sometimes and getting things done goes slower, but it's absolutely true that the result is great software.
      I don't work with Rust professionally yet and jobs even quite difficult to find too as it seems. But that does not matter so much to me.
      I work mostly in C# which is also a really great language for now. But I have always explored and used far more, including C and C++, and I have actively decided to take Rust very seriously, because I believe in it's future, too important to ignore. That was the main point even before learning it and I am feel no regret.

    • @ME0WMERE
      @ME0WMERE ปีที่แล้ว +2

      Rust is C++ done right

  • @2Fast4Mellow
    @2Fast4Mellow 11 หลายเดือนก่อน +6

    The funny thing is about learning Rust is how you start to appreciate languages like C# even more that do a lot of these concepts for you.
    We still code mostly in C#, but the low level stuff (mostly drivers and interfacing with weird hardware) we use Rust...

  • @RemizZ
    @RemizZ ปีที่แล้ว +29

    Having only ever written PHP and JS, I definitely feel the mountain of concepts and terminology I've never heard of or had to worry about. It's still fun to just dive in and try things just because the compiler error messages are so insanely good. I will probably never be a "proper" programmer (missing far too much math knowledge sadly), but for what I want to do with it, I'll manage.

    • @jackhales6179
      @jackhales6179 ปีที่แล้ว +11

      No need to fret about missing math knowledge. Learn math in your soul when it's necessary, not through simply memorizing concepts. Good luck!

    • @Wiikend
      @Wiikend 10 หลายเดือนก่อน

      I'm working full time as a PHP developer, and I don't need more math skills than basic arithmetics in my day to day (addition, multiplication, etc). If you want to work with AI or other highly advanced stuff, you need that knowledge, but you don't need to be a mathematician to be a successful developer. :)

    • @RemizZ
      @RemizZ 10 หลายเดือนก่อน

      @@Wiikend The things you do with PHP aren't what I meant with "proper". You don't need math for CRUD APIs, but you need it for everything else.

  • @regiondeltas
    @regiondeltas ปีที่แล้ว +16

    I'm not a developer by trade, though I do write code professionally in my DevOps/Sysadmin'y work - mostly the MS stack on C#/PowerShell etc. A few years ago I sat down and learnt C to a reasonable standard, it was a tough process but in learning Rust I've really appreciated the grounding it's given me. So much of what people hate about Rust just hasn't bothered me, because it conceptually makes sense. I don't find myself wrestling with the dreaded borrow checker (mostly..) and so on. But, I think had I gone from C# with all its cuddly help and GC I would have absolutely hated Rust. I'm now writing lots of embedded code in Rust and just loving the journey

    • @H.Hardrada
      @H.Hardrada ปีที่แล้ว +4

      I was a Python developer for most of my career. Going from that to Rust was tough. I really had to work my brain out of thinking about coding problems from the interpreted language perspective.

    • @hydroxu
      @hydroxu ปีที่แล้ว +5

      I made that journey you mentioned from C# to Rust, and yeah it was just as tough as you'd imagine. I have formal education in Computer Science, but it took me a while to translate that knowledge into something I could use in Rust, whereas in C# you don't really need to think about those concepts all that much since the compiler thinks about it for you.
      That being said, I'd never go back if I could. Rust is a fantastic language, and despite it being stricter and requiring more thought, it feels like a comfier, safer and stronger foundation than I've had before

    • @georgehelyar
      @georgehelyar ปีที่แล้ว

      I went from C# to rust and it was not hard, but it probably depends on other experience and what you've done in each language.
      I'm a 20 year dev and I've used a lot of languages, and a lot of it is transferable.
      A lot of C# devs that I interview barely know C# and can't even do multithreading, because all they have ever done is CRUD web services.

    • @regiondeltas
      @regiondeltas ปีที่แล้ว

      @@georgehelyar Oh absolutely, it wasn't a knock at C# or C# devs! We definitely have a cohort of devs who have no idea that there is an under the hood, let alone what's happening there. I'd wager there's a LOT of web devs who couldn't even begin to explain what an array really is, and the difference betweeen it and a list for example

    • @hydroxu
      @hydroxu ปีที่แล้ว

      @@georgehelyar That makes sense. I'd done C# for about 9 years by the time I started learning Rust. Most of my time I spent writing WPF apps and lots of front-endy stuff (still do, just blazor now), so my skills weren't particularly transferable. Though the skills I picked up in hobby projects that didn't involve so much front end stuff did end up transferring.
      Actually, thinking about it, most of the transferable skills I had were after learning core language features, such as multithreading, FFI and the like. Most of my trouble came from lifetimes, borrowing and misunderstanding traits as the same thing as interfaces.

  • @NotherPleb
    @NotherPleb ปีที่แล้ว +10

    Shout out to The Cherno! Helped me to learn intermediate/advanced C++.

  • @RamielAnon
    @RamielAnon 10 หลายเดือนก่อน +1

    My days. I'm so fvcked. Started learning this lang 3 days ago with nothing but little bash and python knowledge cause I have a program I really wanna write and now I wanna kms. Now I gotta learn all of this. Amazing video man! :)

    • @laceycodetime
      @laceycodetime 9 หลายเดือนก่อน +2

      It's worth it also you don't need to know any of this stuff it will just deepen your understanding. Do what you want with the language and learn the things you need along the way

    • @RamielAnon
      @RamielAnon 9 หลายเดือนก่อน

      @@laceycodetime thank you so much, means alot

  • @michaelhoffmann2891
    @michaelhoffmann2891 10 หลายเดือนก่อน

    Good insight. As someone who got his start in the dark ages of C, talk of memory management, pointers, etc, holds no fear, if anything leaves me slightly smug. Glad I learned them when I still needed them, even though I then got shifted into the "glory" of managed languages - and got lazy. Java, C#, Python, Go...
    But you put your finger on major issues: finding the use case and dealing with the drop in productivity. At work, you may have the former, but the Powers That Be may not allow you the latter. Learning it in your own time, you will have the latter, but you need that spark of an idea for a long-term personal project. I've been working on an iOS app in my spare time for years. It's become more of a learning platform to teach me new concepts rather than "Im going to build the new killer app". Rust support in iOS is still somewhat new, but maybe converting my code to Rust is the way to go.

  • @PeteHope
    @PeteHope 3 หลายเดือนก่อน +14

    I don't normally crap on people's videos. I appreciate the time and effort put in, especially the high production value. But I have a real problem with this video in particular. You're presenting these 5 things as though they're a barrier to entry. They really are not. Why? Because the 'official' way to learn Rust - The Rust Book - covers every one of these concepts and it does so in an incredibly easy to understand way, using analogies, as well as directly addressing how Rust works with the concepts and why they're important. Chapter 4 of The Rust Book has possibly the best breakdown of the stack and the heap that I've ever seen, and then goes on to show you exactly what you need to know. This video, and many of the comments below it, are seriously off-putting to newcomers. Don't be put off! Just follow The Rust Book, make notes, do the exercises, and you'll be well on your way!

    • @StEvUgnIn
      @StEvUgnIn หลายเดือนก่อน +2

      He is selling a course

  • @_rtdp_
    @_rtdp_ ปีที่แล้ว +7

    How to Learn Rust:
    Step 1. Learn C++
    Step 2. Learn to solve SIGSEGV faults and memory leaks and become frustrated
    Step 3. Learn Rust

    • @madbanana22
      @madbanana22 2 หลายเดือนก่อน

      Step 4. Get frustrated from the stupid ownership system and go back to C++

  • @TheeSirRandom
    @TheeSirRandom 2 หลายเดือนก่อน

    I first started with C, then somehow found myself up with Dlang, and then tripped and fell down the Rust Rabbit Hole, and I love it.

  • @JeremyChone
    @JeremyChone ปีที่แล้ว +3

    Great video, and thanks for the mention!

  • @techbytefrontier
    @techbytefrontier 11 หลายเดือนก่อน

    As a person who took the first classes in programming using C i can say, Rust is awesome. I'm really enjoying, bright future.

  • @HermesSoilder
    @HermesSoilder 9 หลายเดือนก่อน

    This is why I love rust, I dropped out of school half way in and some cs concepts are fuzzy for me. (Binary, Sogned/unsigned ints, buffers, etc) have come up a lot in the beginning of me learning I g rust and I honestly love it. It’s like going back to school without have to pay for it or dread learning.
    I made it thru college off TH-cam anyways, this is no different.

  • @Pjiwm
    @Pjiwm ปีที่แล้ว +36

    He got a fresh cut 😎

    • @eezyville1704
      @eezyville1704 ปีที่แล้ว +8

      My man is crispy and smooth at the same time. 😎

  • @LiamDennehy
    @LiamDennehy ปีที่แล้ว +4

    Two of the best learning resources for Rust are Let's Get Rusty, and No Boilerplate.

  • @ErickCardozo-v8p
    @ErickCardozo-v8p 16 วันที่ผ่านมา

    I'm completely newbie to Rust and one thing that bricks my mind is Result; because if an Ok Result signifies a successful operation, why is the actual result an Optional value? It could be simply None.
    Now, seriously talking, I know it's probably a bunch of shit and there's something so obvious that I'm missing, because I'm dumb 🙂
    Anyways, have a great day 👍🏻

  • @luambo1
    @luambo1 ปีที่แล้ว +2

    what do you think of the "copying while trying to understand" method of learning?
    people often say that it's good to always fully understand and build things on your own, but I've come to a conclusion that withou a repertoire, we simply can't build things.

  • @Shaheer-xs5os
    @Shaheer-xs5os ปีที่แล้ว +3

    I love Rust... It's my favorite language now, kicking down Typescript...

  • @ralvarezb78
    @ralvarezb78 2 หลายเดือนก่อน

    I came from the assembler world then doing pascal c, c++ and played with various microprocessor architecture, then I started to learn rust so found these prerequisites mandatory

  • @collynchristopherbrenner3245
    @collynchristopherbrenner3245 3 หลายเดือนก่อน

    Wow, what a great refernce guide for those wanting to learn Rust! I'm going to look into those concepts that I know less about now!

  • @randomrfkov
    @randomrfkov 4 หลายเดือนก่อน

    Somehow, ownership pattern can come up in JavaScript when copying objects. So you have to deep copy objects.

  • @johanngambolputty5351
    @johanngambolputty5351 ปีที่แล้ว +3

    I mean, I knew a bit of C and C++, but I mostly used python before rust (which to me is the best of both)...

  • @what-about-bob
    @what-about-bob 10 หลายเดือนก่อน +1

    Security by Design (SbD) is a real thing in Cyber Security. Looks like Rust works along with it.

  • @Matthew-ir1ed
    @Matthew-ir1ed 3 หลายเดือนก่อน +1

    I want to learn rust, but I'm having a hard time getting over the first hurdles, like importing packages without getting version incompatibility errors...

    • @BrandyWiseNL
      @BrandyWiseNL 2 หลายเดือนก่อน

      Use AI to help you with the errors. Keep going.😊

  • @jcbritobr
    @jcbritobr ปีที่แล้ว +3

    Rust is high-level language like c++. It has lots of abstractions

  • @thebsv
    @thebsv 11 หลายเดือนก่อน

    Excellent advice, what are some good resources to learn multithreading, parallelism and concurrency concepts?

  • @GerhardBothaWFF
    @GerhardBothaWFF 3 หลายเดือนก่อน

    You need to start small. That is easier said than done. PC’s etc are very involved and a programmer quickly becomes entangled in many issues. I think newcomers must play with small embedded boards like stm32 based boards. You can engage with concepts more directly without a huge operating system etc to cope with

  • @Oswalt-hg4dy
    @Oswalt-hg4dy 8 หลายเดือนก่อน

    I came here for Rust and ended up with philosophical thoughts... (5:41)
    Pdt. Cool video, I think Rust has a great projection in future

  • @dude2542
    @dude2542 ปีที่แล้ว

    First video of these I wish I knew videos that was actually super useful. Also are you using the eye contact AI program?

  • @ahmedamineyahyaoui3296
    @ahmedamineyahyaoui3296 9 หลายเดือนก่อน

    I was a c++ developer, then I switched to Js/ React but I feel like I am done with React and Js problems. I am thinking about Rust but I will need good resources for learning

  • @izagawd
    @izagawd 3 หลายเดือนก่อน

    they teach stack and heap in cs? had to google that myself

  • @rsalmei
    @rsalmei 10 หลายเดือนก่อน

    Great video, but I don't agree in 5:58, where you say we have to "think about runtime performance, and about how things are laid out in memory". I think we almost never need to think about runtime performance, everything is just screaming fast most of the time! And why would one think memory layouts? Most 100% Rust software will never need to think about that, only when using FFI to interface with other languages, and perhaps when implementing a Vec or similar, i.e., allocating and initializing memory on demand. All in all, in most cases Rust is awesome to use as a high-level language, you don't need to think that much about performance or memory!

  • @wanglewis757
    @wanglewis757 7 หลายเดือนก่อน

    May I ask how long it took you to learn through this journey?

  • @jasperzanjani
    @jasperzanjani 6 หลายเดือนก่อน +3

    "before learning Rust, I recommend reading these 7 Rust books"

  • @jg7346
    @jg7346 ปีที่แล้ว +4

    Could you plz post all the resources links somewhere?

    • @letsgetrusty
      @letsgetrusty  ปีที่แล้ว

      Posted in the description!

  • @brandonlewis2599
    @brandonlewis2599 9 หลายเดือนก่อน

    It might be hard to appreciate Rust until you've at least spent some time with C or C++. You can get pretty far with either. But it's the maintenance headaches on anything over 20 klocs of C or C++ with multiple dependencies that are the clear motivations for Rust's design.

  • @itsallaboutprotein
    @itsallaboutprotein 8 หลายเดือนก่อน

    do you have any tips to prevent my base from getting raided?

  • @pcfreak1992
    @pcfreak1992 ปีที่แล้ว +3

    I wish just half of all the people blogging about Rust would know these basics. I see so many rants about some Rust feature just because they don’t understand some CS basics.

    • @steveoc64
      @steveoc64 ปีที่แล้ว +2

      A list of unique features that Rust invented :
      - compiling to machine code
      - the concept of having a stack
      - the first and only language that guarantees no bugs
      - automatic allocation and reallocation
      - multi threading
      - traits
      - memory safe array indexing
      - match semantics
      - errors as values
      - optional types
      - the first language ever that allows developers to rewrite existing apps into a new language
      - the compiler providing error messages telling you what bits of code won’t compile
      - adding debug symbols to the executable, for debugging
      - compile to wasm as a target
      - uses the cpu, so it’s faster than JavaScript or python
      - successful integration of politics into the tech stack
      - is the only language that “younger programmers” can understand apparently, so has to be the only alternative to C in Linux kernel
      These are all actual examples of BS claims that real people have spouted off about, when discussing Rust

    • @cyrilemeka6987
      @cyrilemeka6987 ปีที่แล้ว

      ​@@steveoc64 some rust programmers have turned religious, effectively spreading their ignorance wherever they go. But I do think it's a nice language which I am going to learn for research purposes.

    • @RenderingUser
      @RenderingUser 4 หลายเดือนก่อน +1

      ​​@@steveoc64I have no idea where you've been to hear 90% of what you said. And I've seen the most religious rustaceans. You mostly made up bs

  • @StudyNookByVrishab
    @StudyNookByVrishab 2 หลายเดือนก่อน

    hello guys i am starting to study rust from doc and streaming my learning process is there any advice for me let say this is my 1st language

  • @sadunozer2241
    @sadunozer2241 ปีที่แล้ว

    The benefits of AI for me has been outstanding. I don’t think it’s final or true all the time, but parsing a file, traversing directories etc can be done in seconds with the help of AI

  • @dominikskeries
    @dominikskeries 11 หลายเดือนก่อน

    what adoption exactly?

  • @dinaiswatching
    @dinaiswatching ปีที่แล้ว +5

    Thanks again, Bogdan, as always, great stuff. Could you please link the resources links in the description? I'm interest in those Harvard lessons

  • @clymbep3390
    @clymbep3390 11 หลายเดือนก่อน

    so, would you recomend learn c/c++ before rust?

    • @macsquad5773
      @macsquad5773 11 หลายเดือนก่อน +1

      In my opinion, learn rust first and capitalize on your interest while it lasts.

    • @clymbep3390
      @clymbep3390 11 หลายเดือนก่อน

      @@macsquad5773 thanks :)

  • @jaroslavhuss7813
    @jaroslavhuss7813 ปีที่แล้ว

    Ah... I will get rock-solid hate, but honestly... do I need Rust? I was trying to learn it and I have to say, I do actually like it... but hell. I am jumping every single day between backend, frontend and mobile. So... I always end up with my friend TypeScript. Backend = Nestjs, Frontend = React, Mobile = React native. I know BE and FE can be done by Leptos. But mobile? Nah, not even close...

  • @snatvb
    @snatvb ปีที่แล้ว +4

    The first thing i would like to know is that docker deploy is extremely difficult. i never got over it :( i lost a lot of time, trying to deploy the project took longer than development and failed. I don't develop on rust anymore :( I can't correctly hadle work with prisma

  • @christoffer6527
    @christoffer6527 3 หลายเดือนก่อน +3

    He meant 500 things he wish he knew

  • @antifa_communist
    @antifa_communist ปีที่แล้ว

    Could you provide resources to help out with some of these things?

    • @letsgetrusty
      @letsgetrusty  ปีที่แล้ว +1

      Posted a list of resources in the description!

  • @vetrivendhan6122
    @vetrivendhan6122 ปีที่แล้ว

    When I have 3 years of experience in JS, I struggled a lot. It took me another 3 years to think in Architect level in React and React native. Now I am ready to take the new challenge in Rust.

  • @GustavoPinho89
    @GustavoPinho89 ปีที่แล้ว +3

    Bro, Discovery Channel is looking for a new narrator 😂😂😂 alternatively, you could make scammy content. You'd be Dan Lok on steroids 😂😂😂😂😂

  • @BingoDan936
    @BingoDan936 6 หลายเดือนก่อน

    5 Things Before Rust:
    1: Avoid Rust
    2. When someone mentions Rust, laugh uncontrollably
    3. Recommend Python instead
    4. Iterate 'Learning Rust Takes Time to Learn, minimum 2 years.' in a Lisp Loop.
    5. Promote ASM, a difficult language to learn but is easier than Rust.

  • @simonzuluaga2081
    @simonzuluaga2081 ปีที่แล้ว

    The video we all needed

  • @vrildox-to7ir
    @vrildox-to7ir ปีที่แล้ว

    Should i learn cpp before the rust

    • @laceycodetime
      @laceycodetime 9 หลายเดือนก่อน

      Up to you but imo I think you will learn faster if you just start with rust

  • @4115steve
    @4115steve ปีที่แล้ว

    great video, thanks for the help

  • @vaisakh_km
    @vaisakh_km ปีที่แล้ว +1

    i have fundamentals of c and c++, but i have been out of touch for so long, and working as webdev...
    so should i start with those or dive straight to rust? i have been learning little bit of rust... but not getting full motivation to dedicate

    • @lvsd
      @lvsd ปีที่แล้ว +1

      Jumping strait to rust is generally ok if you know the pain points of c and c++

    • @vaisakh_km
      @vaisakh_km ปีที่แล้ว

      @@lvsd i know problems like memory management, issues with string due to null termination, absolute disasters of shared libs because of not having a first party package management solution,
      but i only have really basic understanding and only done few cli apps... so don't know how things like smart pointers works....

    • @antoniong4380
      @antoniong4380 ปีที่แล้ว

      ​@@vaisakh_km i saw some exaamples of CLI in Rust, and It looks really simple due to the "builder pattern" a library used. A pain for me when I was learning C, was that there was no "Method", which is sort of a more constrained and syntax sugared for functions. Emulating the desugared form of methods from Rust in C was a pain. But at least gave me confidence that the code would work due to having functions doing specific responsibilities while I was doing my C Homeworks

    • @lvsd
      @lvsd ปีที่แล้ว

      @@vaisakh_km Smart pointers are really not that hard; they are easy to get into, and you will surely stumble into them when trying things like multithreading. I recommend looking into Box and Rc/Arc. You will notice that they are really simple. Smart pointers like Cow, Cell, etc., are not often used when writing normal production code, so you don't really need to know every one from the beginning.

    • @climatechangedoesntbargain9140
      @climatechangedoesntbargain9140 ปีที่แล้ว

      Honestly it's fine. You can learn smart pointers as well in Rust. Theyre pretty much the same conceptually. Learn C++ if you want to know how painful things can be@@vaisakh_km

  • @bjugdbjk
    @bjugdbjk ปีที่แล้ว

    Finally, r u using RUST fulltime in ur 9 to 5 job ?
    Bcz, Y still lot of less Rust based full time roles in 2024 ?

  • @bhaskartmb
    @bhaskartmb 8 หลายเดือนก่อน +1

    Yo, I wanna learn Rust, but I only know C, not C++. Everyone in the comments is talking about C++, and it's making me a bit nervous.

    • @idcashflow
      @idcashflow 4 หลายเดือนก่อน

      Why? My background is c too, now I'm on rust, rust is good but need to modify our understanding in the past :p

  • @Kaiyes_
    @Kaiyes_ 9 หลายเดือนก่อน

    100s of people are taking rust as their first language. Also many are coming to rust from js. Don't scare them away !
    Here is a list of 100 things you need to learn before learning rust

  • @smwnl9072
    @smwnl9072 ปีที่แล้ว

    For me, picking up rust isn't as intuitive or as easy like JS.
    With JS I can tryout and evaluate statements in the browser.
    Rust is also resource $expensive.
    A simple application costs quite a lot in terms of disk space (windows machine, vs-ccode).
    The file system also feels clunky. To expose type and functions you need a separate file with a specific naming
    like a header file in C. I might be wrong as I'm still not proficient in it.
    It's not as easy as the import/export nomenclature in languages like JS, C#, java, traditional C like languages.
    I still can't wrap my head around macros. They look like functions to me.
    In terms or readability, I cant seem to get used to snake (or caterpillar) casing.
    I think acronym naming doesn't help as well. E.g. 'fn', 'mut'.
    If I have time, I would try to learn more and try out more of rust.
    Then perhaps I would have better insights on the language.

    • @Marisueksu
      @Marisueksu ปีที่แล้ว +1

      resource expensive? compared to javascript and python???????

    • @climatechangedoesntbargain9140
      @climatechangedoesntbargain9140 ปีที่แล้ว

      He probably compares a rust executable and a js file@@Marisueksu

  • @techthief3278
    @techthief3278 ปีที่แล้ว

    Let's Get Rusty!!

  • @JTCF
    @JTCF ปีที่แล้ว +1

    "Strict static typing"...
    May I interest you in the rabbit hole of trait objects?... [insane laugh]

  • @sumitftr
    @sumitftr ปีที่แล้ว +1

    that's a lot of resources man!!

  • @AniAdamPashut
    @AniAdamPashut ปีที่แล้ว

    Bruh i feel like the “slow production” is kinda false. Rust taught me the “if it compiles it works” idiom which makes stuff super easy

  • @Murphs_Law
    @Murphs_Law ปีที่แล้ว +1

    Does bro have a Discord Server??

  • @uzunumit
    @uzunumit ปีที่แล้ว

    6. There are string types more than 10. Most of your development time goes thinking of how to convert one another.

  • @Singlton
    @Singlton ปีที่แล้ว

    I know python, can I start rust?

  • @spaceroyalty4158
    @spaceroyalty4158 21 วันที่ผ่านมา

    I like your funny words magic man

  • @portobellomushroom5764
    @portobellomushroom5764 5 หลายเดือนก่อน

    Rust is truly a software engineer's language

  • @ryleitdept
    @ryleitdept ปีที่แล้ว

    C++ numbawan! and evolving!

  • @hikergamer6557
    @hikergamer6557 8 หลายเดือนก่อน

    Thought this was about the game rust for a sec 🙏

  • @yapayzeka
    @yapayzeka 11 หลายเดือนก่อน

    brooks builds is also a good channel for rust.

  • @NuflynMagister
    @NuflynMagister ปีที่แล้ว +2

    Дякую, Богдане)

  • @yuurishibuya4797
    @yuurishibuya4797 8 หลายเดือนก่อน

    The statement where u call Null pointer as a Billion $ mistake and saying uses Result type shows how shallow your knowledge is around basic computer architecture.
    Functions in C, C++ return something. You can choose to return a struct of {value, error_t }.

    • @FujinBlaze
      @FujinBlaze 3 หลายเดือนก่อน

      The statement where he calls Null pointer a Billion $ mistake is actually a reference to Tony Hoare (The "creator" of the null pointer) saying "I call it my billion-dollar mistake.", in an interview when asked about them.

  • @euphoniumist
    @euphoniumist ปีที่แล้ว

    So basically everything, right on hahaha

  • @AyomideAdeniran-vd8dg
    @AyomideAdeniran-vd8dg หลายเดือนก่อน

    Letgetrusty

  • @Ishaan_Garud
    @Ishaan_Garud 9 หลายเดือนก่อน

    I don't know why people think rust is hard
    I moved from python (I did python for 8 years) to rust in a few weeks

  • @RedX-k2k
    @RedX-k2k 23 วันที่ผ่านมา

    "Rust isn't difficult, Rust is unfamiliar"
    -IDK

  • @HyJyncks
    @HyJyncks 15 วันที่ผ่านมา

    This video: "understand a completely different language and understand how it works then learn rust"
    This language really is only taught as if you have 10 years experience in computer science

  • @honkhonkv2236
    @honkhonkv2236 10 หลายเดือนก่อน

    Starting from 0 ready to suffer, wish me luck 😂

  • @Tresla
    @Tresla 11 หลายเดือนก่อน +72

    Are you AI generated?

    • @Nemesis-db8fl
      @Nemesis-db8fl 9 หลายเดือนก่อน +16

      Is that supposed to be a pickup line?

    • @nht_vng8669
      @nht_vng8669 2 หลายเดือนก่อน +4

      I have same feeling 😮

    • @Tresla
      @Tresla หลายเดือนก่อน +1

      @@RossK-ov5sd Are you ok?

    • @foresthobo1166
      @foresthobo1166 หลายเดือนก่อน

      Yeah, me too

    • @Simple_OG
      @Simple_OG 10 วันที่ผ่านมา

      ​@@TreslaYou ok dude ?

  • @janisozols2055
    @janisozols2055 ปีที่แล้ว +10

    This is all nonsense.
    I began by creating practical projects with considerable help from Copilot and GPT-4. I consistently inquired about the best practices for various tasks and sought explanations for concepts I didn't understand. I even developed working prototypes for parts of my project before fully grasping Rust's borrowing and other concepts. Within a month, I had gained extensive knowledge about runtimes, futures, borrowing, channels, and actors, all with the assistance of AI. The best aspect of Rust is that it compels you to write correct programs. Consequently, the AI's learning base is mostly composed of correct programs, resulting in more accurate suggestions from AI than for other languages.

    • @hexavik
      @hexavik ปีที่แล้ว +1

      Not all are as smart as you are.

    • @yaonoelachi801
      @yaonoelachi801 ปีที่แล้ว

      I used the same path as you. I won’t recommend learning c++ before because c++ itself is a beast which takes a lifetime to master. Go strait to rust with a good project in mind. Learn the concepts you do not understand along the way.

  • @ДмитрийПаровозов-ф3к
    @ДмитрийПаровозов-ф3к 15 วันที่ผ่านมา

    Dude, it turns out you'd like to learn all the programming before using rust.

  • @anlumo1
    @anlumo1 ปีที่แล้ว

    Good explanation why Rust is very bad as a first language. You have to know at least three other languages before starting to get anywhere!
    I think knowing JavaScript, C++ and Haskell helped me a lot. It still wasn't easy, because the borrow checker is unique to Rust.

    • @jongeduard
      @jongeduard ปีที่แล้ว

      Although I really think it's totally helpful to know enough other languages, it's not an absolute requirement.
      There is also a possible learning trajectory when starting with Rust, and then learn all things on the flow, even though it will probably go much slower.
      It's even possible for someone to start with it, then move to other languages because Rust was so difficult, and then to ultimately come back to it and pick it up further.

  • @shapaco89
    @shapaco89 ปีที่แล้ว

    So I have to learn programing in C and C++ if I want to program in Rust? Isn't there any other way to understand Rust? I could just read about those concept and try to understand them without spending hundreds of hours programming in a language I don't want to program in. Is it really so hard?

    • @bluesillybeard
      @bluesillybeard ปีที่แล้ว +1

      It really is that hard. Rust is intended for developers who already know most of the concepts it uses.
      That being said, go ahead and give it a try anyway. If you want to learn Rust, just go ahead and give it a shot - worst that could happen is you don't get it and end up switching to something else.

    • @shapaco89
      @shapaco89 ปีที่แล้ว

      @@bluesillybeard I am currently working on my first website and going through html and css (I know, I know, baby steps...) and I was also thinking why not finish it with wasm and rust. Everywhere I hear and read javascript is terrible, so I'm thinking why even bother with it and go straight with the good stuff.

    • @bluesillybeard
      @bluesillybeard ปีที่แล้ว

      @@shapaco89 last I tried Rust+wasm was like 2 or 3 years ago, and there wasn't a lot about it. I imagine these days though, there are tons of tutorials on how to set that up.
      Funnily enough, I myself am working on my first website! It's all just static pages though.

    • @climatechangedoesntbargain9140
      @climatechangedoesntbargain9140 ปีที่แล้ว +1

      imo, yes you could.
      I have seen many videos of this channel, but this one just very missleading.
      You could learn Rust without any C++ knowledge, most likely you'd even be better off doing that

  • @MrAbrazildo
    @MrAbrazildo ปีที่แล้ว

    1:49, I disagree. If someone is afraid of nullptr, he should write some tool to verify that automatically.

    • @gregoryfenn1462
      @gregoryfenn1462 ปีที่แล้ว +1

      To verify what?
      The problem with null pointers is that you are just setting some data to 0, even if that data is an address of other data. But sometimes this is actually what you want, 0 not null. E.g. if i have an app with a base virtual address of 0 where its main function lives then I want to branch to a pointer with value 0, but some languages assume that 0 means null so it raises an error incorrectly.

    • @MrAbrazildo
      @MrAbrazildo ปีที่แล้ว

      @@gregoryfenn1462I think you are going too far.

    • @J-Random-Luser
      @J-Random-Luser ปีที่แล้ว +1

      Yeah, they did, it’s called enumerations and pattern matching.

    • @headlibrarian1996
      @headlibrarian1996 7 หลายเดือนก่อน

      I don’t know why Rust devs keep harping on null pointers in C++. C++ memory allocators do not return null pointers, they throw an exception on allocation failure. C++ smart pointers also don’t have null pointers unless default constructed. If you use std::make_unique/shared you always have fully constructed objects in your smart pointers. Null pointers are really a C thing not C++, it’s easy to write in C++ without ever making null pointer checks.

  • @zxnnightstalker2289
    @zxnnightstalker2289 ปีที่แล้ว +9

    Watching your video is like asking to ChatGPT. Alot of boilerplate with alot of bullet points. 90% of which we already heard of over and over again.

  • @Garush
    @Garush ปีที่แล้ว +4

    Bogdan gets hotter every vid

  • @mygamesm
    @mygamesm ปีที่แล้ว +1

    wysi

  • @datastop400
    @datastop400 ปีที่แล้ว +1

    Rust, the grown ups language…

  • @sonicjoy2002
    @sonicjoy2002 9 หลายเดือนก่อน

    So basically all covered in computer science

  • @vasylpavuk391
    @vasylpavuk391 ปีที่แล้ว +3

    Вітання з України. Гарний контент. Так тримати

  • @joseoncrack
    @joseoncrack 11 หลายเดือนก่อน

    Not yet. You'll finally get it when you stop promoting Rust. At that point, you'll probably need some counseling to get over it, but you'll be ok.

  • @kiyingipisgah4365
    @kiyingipisgah4365 ปีที่แล้ว +1

    ...remember to stay rusty🦀.

  • @humedickie6002
    @humedickie6002 ปีที่แล้ว +1

    what a nice hairline. so jealous

  • @realcyberpirate
    @realcyberpirate ปีที่แล้ว

    Hard disagree!
    You can learn most if not all of those as you go