5 things I wish I knew before learning Rust

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2024

Комментарии • 185

  • @letsgetrusty
    @letsgetrusty  9 месяцев назад +9

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

  • @LeviNotik
    @LeviNotik 9 месяцев назад +176

    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  9 месяцев назад +13

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

    • @jay.rhoden
      @jay.rhoden 9 месяцев назад +4

      @@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 9 месяцев назад +5

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

    • @davebudah
      @davebudah 8 месяцев назад +3

      Well said.

    • @xXYourShadowDaniXx
      @xXYourShadowDaniXx 7 месяцев назад +5

      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).

  • @fcolecumberri
    @fcolecumberri 9 месяцев назад +444

    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 9 месяцев назад +7

      Hahaha, ironically 😄

    • @shipweck6253
      @shipweck6253 9 месяцев назад +11

      beautifully phrased

    • @JorgetePanete
      @JorgetePanete 9 месяцев назад +4

      its*

    • @fcolecumberri
      @fcolecumberri 9 месяцев назад +5

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

    • @Lord2225
      @Lord2225 9 месяцев назад

      What a wise words

  • @fluxx2875
    @fluxx2875 9 месяцев назад +78

    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 9 месяцев назад +12

      Of course, this process is known as oxidation 😂

    • @himanshutripathi7441
      @himanshutripathi7441 9 месяцев назад

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

    • @jongeduard
      @jongeduard 9 месяцев назад +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 9 месяцев назад +2

      Rust is C++ done right

  • @apffer
    @apffer 7 месяцев назад +13

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

  • @justsomeguy8385
    @justsomeguy8385 9 месяцев назад +17

    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.

  • @RemizZ
    @RemizZ 9 месяцев назад +26

    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 9 месяцев назад +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 7 месяцев назад

      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 7 месяцев назад

      @@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.

  • @Mempler
    @Mempler 9 месяцев назад +50

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

    • @linkernick5379
      @linkernick5379 9 месяцев назад +1

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

    • @plesleron
      @plesleron 3 месяца назад +2

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

  • @regiondeltas
    @regiondeltas 9 месяцев назад +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 9 месяцев назад +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.

    • @hydroxa4330
      @hydroxa4330 9 месяцев назад +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 9 месяцев назад

      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 9 месяцев назад

      @@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

    • @hydroxa4330
      @hydroxa4330 9 месяцев назад

      @@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.

  • @2Fast4Mellow
    @2Fast4Mellow 8 месяцев назад +3

    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...

  • @NotherPleb
    @NotherPleb 9 месяцев назад +10

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

  • @michaelhoffmann2891
    @michaelhoffmann2891 7 месяцев назад

    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.

  • @Pjiwm
    @Pjiwm 9 месяцев назад +37

    He got a fresh cut 😎

    • @eezyville1704
      @eezyville1704 9 месяцев назад +8

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

  • @RamielAnon
    @RamielAnon 7 месяцев назад +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 6 месяцев назад +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 6 месяцев назад

      @@laceycodetime thank you so much, means alot

  • @_rtdp_
    @_rtdp_ 9 месяцев назад +4

    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

  • @techbytefrontier
    @techbytefrontier 8 месяцев назад

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

  • @LiamDennehy
    @LiamDennehy 9 месяцев назад +4

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

  • @Shaheer-xs5os
    @Shaheer-xs5os 9 месяцев назад +3

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

  • @HermesSoilder
    @HermesSoilder 6 месяцев назад

    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 RUclips anyways, this is no different.

  • @luambo1
    @luambo1 9 месяцев назад +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.

  • @JeremyChone
    @JeremyChone 9 месяцев назад +2

    Great video, and thanks for the mention!

  • @what-about-bob
    @what-about-bob 7 месяцев назад +1

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

  • @collynchristopherbrenner3245
    @collynchristopherbrenner3245 7 дней назад

    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!

  • @jcbritobr
    @jcbritobr 9 месяцев назад +3

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

  • @thebsv
    @thebsv 8 месяцев назад

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

  • @Oswalt-hg4dy
    @Oswalt-hg4dy 5 месяцев назад

    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

  • @randomrfkov
    @randomrfkov Месяц назад

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

  • @jg7346
    @jg7346 9 месяцев назад +5

    Could you plz post all the resources links somewhere?

    • @letsgetrusty
      @letsgetrusty  9 месяцев назад

      Posted in the description!

  • @izagawd
    @izagawd 14 дней назад

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

  • @GerhardBothaWFF
    @GerhardBothaWFF 15 дней назад

    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

  • @johanngambolputty5351
    @johanngambolputty5351 9 месяцев назад +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)...

  • @Matthew-ir1ed
    @Matthew-ir1ed 18 дней назад

    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...

  • @ahmedamineyahyaoui3296
    @ahmedamineyahyaoui3296 6 месяцев назад

    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

  • @rsalmei
    @rsalmei 7 месяцев назад

    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 4 месяца назад

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

  • @dinaiswatching
    @dinaiswatching 9 месяцев назад +6

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

  • @jasperzanjani
    @jasperzanjani 3 месяца назад +2

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

  • @snatvb
    @snatvb 9 месяцев назад +5

    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

  • @itsallaboutprotein
    @itsallaboutprotein 5 месяцев назад

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

  • @pcfreak1992
    @pcfreak1992 9 месяцев назад +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 9 месяцев назад +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 9 месяцев назад

      ​@@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 Месяц назад +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

  • @GustavoPinho89
    @GustavoPinho89 9 месяцев назад +4

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

  • @dude2542
    @dude2542 9 месяцев назад

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

  • @brandonlewis2599
    @brandonlewis2599 6 месяцев назад

    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.

  • @jaroslavhuss7813
    @jaroslavhuss7813 9 месяцев назад

    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...

  • @sadunozer2241
    @sadunozer2241 9 месяцев назад

    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

  • @vaisakh_km
    @vaisakh_km 9 месяцев назад +2

    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 9 месяцев назад +1

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

    • @vaisakh_km
      @vaisakh_km 9 месяцев назад

      @@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 9 месяцев назад

      ​@@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 9 месяцев назад

      @@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 9 месяцев назад

      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

  • @clymbep3390
    @clymbep3390 8 месяцев назад

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

    • @macsquad5773
      @macsquad5773 8 месяцев назад +1

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

    • @clymbep3390
      @clymbep3390 8 месяцев назад

      @@macsquad5773 thanks :)

  • @PeteHope
    @PeteHope 19 часов назад

    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!

  • @antifa_communist
    @antifa_communist 9 месяцев назад

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

    • @letsgetrusty
      @letsgetrusty  9 месяцев назад +1

      Posted a list of resources in the description!

  • @vetrivendhan6122
    @vetrivendhan6122 9 месяцев назад

    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.

  • @JTCF
    @JTCF 9 месяцев назад +1

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

  • @sumitftr
    @sumitftr 9 месяцев назад +1

    that's a lot of resources man!!

  • @yapayzeka
    @yapayzeka 8 месяцев назад

    brooks builds is also a good channel for rust.

  • @bjugdbjk
    @bjugdbjk 9 месяцев назад

    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 ?

  • @Kaiyes_
    @Kaiyes_ 6 месяцев назад

    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

  • @4115steve
    @4115steve 9 месяцев назад

    great video, thanks for the help

  • @vrildox-to7ir
    @vrildox-to7ir 9 месяцев назад

    Should i learn cpp before the rust

    • @laceycodetime
      @laceycodetime 6 месяцев назад

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

  • @dominikskeries
    @dominikskeries 8 месяцев назад

    what adoption exactly?

  • @bhaskartmb
    @bhaskartmb 5 месяцев назад +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 Месяц назад

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

  • @smwnl9072
    @smwnl9072 9 месяцев назад

    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 9 месяцев назад +1

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

    • @climatechangedoesntbargain9140
      @climatechangedoesntbargain9140 9 месяцев назад

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

  • @simonzuluaga2081
    @simonzuluaga2081 9 месяцев назад

    The video we all needed

  • @Murphs_Law
    @Murphs_Law 9 месяцев назад +2

    Does bro have a Discord Server??

  • @BingoDan936
    @BingoDan936 3 месяца назад

    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.

  • @uzunumit
    @uzunumit 9 месяцев назад

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

  • @hikergamer6557
    @hikergamer6557 5 месяцев назад

    Thought this was about the game rust for a sec 🙏

  • @ryleitdept
    @ryleitdept 9 месяцев назад

    C++ numbawan! and evolving!

  • @techthief3278
    @techthief3278 9 месяцев назад

    Let's Get Rusty!!

  • @AniAdamPashut
    @AniAdamPashut 9 месяцев назад

    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

  • @portobellomushroom5764
    @portobellomushroom5764 2 месяца назад

    Rust is truly a software engineer's language

  • @Tresla
    @Tresla 8 месяцев назад +28

    Are you AI generated?

    • @Nemesis-db8fl
      @Nemesis-db8fl 6 месяцев назад +5

      Is that supposed to be a pickup line?

  • @euphoniumist
    @euphoniumist 9 месяцев назад

    So basically everything, right on hahaha

  • @anlumo1
    @anlumo1 9 месяцев назад

    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 9 месяцев назад

      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.

  • @NuflynMagister
    @NuflynMagister 9 месяцев назад +2

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

  • @honkhonkv2236
    @honkhonkv2236 7 месяцев назад

    Starting from 0 ready to suffer, wish me luck 😂

  • @Ishaan_Garud
    @Ishaan_Garud 6 месяцев назад

    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

  • @zxnnightstalker2289
    @zxnnightstalker2289 9 месяцев назад +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.

  • @datastop400
    @datastop400 9 месяцев назад +2

    Rust, the grown ups language…

  • @janisozols2055
    @janisozols2055 9 месяцев назад +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 9 месяцев назад +1

      Not all are as smart as you are.

    • @yaonoelachi801
      @yaonoelachi801 9 месяцев назад

      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.

  • @Singlton
    @Singlton 9 месяцев назад

    I know python, can I start rust?

  • @Garush
    @Garush 9 месяцев назад +3

    Bogdan gets hotter every vid

  • @yuurishibuya4797
    @yuurishibuya4797 5 месяцев назад

    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 20 дней назад

      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.

  • @sonicjoy2002
    @sonicjoy2002 6 месяцев назад

    So basically all covered in computer science

  • @kiyingipisgah4365
    @kiyingipisgah4365 9 месяцев назад +1

    ...remember to stay rusty🦀.

  • @christoffer6527
    @christoffer6527 6 дней назад

    He meant 500 things he wish he knew

  • @joseoncrack
    @joseoncrack 8 месяцев назад

    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.

  • @OSA413
    @OSA413 9 месяцев назад +2

    I would not recommend diving into C++ and learn Rust right away.

  • @mygamesm
    @mygamesm 9 месяцев назад +1

    wysi

  • @shapaco89
    @shapaco89 9 месяцев назад

    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 9 месяцев назад +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 9 месяцев назад

      @@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 9 месяцев назад

      @@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 9 месяцев назад +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

  • @realcyberpirate
    @realcyberpirate 9 месяцев назад

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

  • @vasylpavuk391
    @vasylpavuk391 9 месяцев назад +3

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

  • @pilotandy_com
    @pilotandy_com 9 месяцев назад +2

    In other words, to learn Rust, you must have 25 years experience in c :P

  • @aftalavera
    @aftalavera 9 месяцев назад

    So you don’t need Rust you need to go back to school!

  • @MrAbrazildo
    @MrAbrazildo 9 месяцев назад

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

    • @gregoryfenn1462
      @gregoryfenn1462 9 месяцев назад

      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 9 месяцев назад

      @@gregoryfenn1462I think you are going too far.

    • @J-Random-Luser
      @J-Random-Luser 9 месяцев назад

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

    • @headlibrarian1996
      @headlibrarian1996 4 месяца назад

      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.

  • @humedickie6002
    @humedickie6002 9 месяцев назад

    what a nice hairline. so jealous

  • @rasi_rawss
    @rasi_rawss 3 месяца назад

    I love Rust, mostly because merely mentioning it will reveal some devs who call it "woke" and inevitably expose themselves as more concerned with politics than reliable tech.

  • @Valiant600
    @Valiant600 9 месяцев назад +2

    6th is that there are no jobs available...

    • @jonathanbrown5645
      @jonathanbrown5645 9 месяцев назад

      There's a lot on indeed?

    • @zackarysemancik5491
      @zackarysemancik5491 9 месяцев назад

      @@jonathanbrown5645 I never see any... Which companies are hiring for Rust??

    • @aarholodian
      @aarholodian 9 месяцев назад

      If you think you know just Rust and won't more or less easily adapt to related languages like C++, then chances are you don't actually know Rust to an extent that you could get a job in it anyway

    • @antifa_communist
      @antifa_communist 9 месяцев назад

      ​@@zackarysemancik5491 Sp you're only learning it to get hired? Microsoft and Google are starting to use Rust more and more.

    • @Valiant600
      @Valiant600 9 месяцев назад

      ​@@jonathanbrown5645 unfortunately most jobs currently in the EU are dealing with crypto and web3. I guess that is something instead of nothing, but these are mostly dodgy startups. In Greece for instance there is no mention of Rust whatsoever. Moreover, most other companies they mentioning Rust either as in knowing a systems programming language in general or as a possible complimentary language to C++. Rust needs time.
      However, let me also add that the language is not easy to pick up. I am sure plenty of people are going to bash me as not investing a lot, being dumb etc. However, I used it in a professional environment in the networking space, for a mid size project and we had issues. We were fighting the borrow checker a lot, code could become unreadable if many traits were needed, async code was a hurdle. I guess a lot of people tend to see, or try to see for some unknown reason as if they own part of a language although this is also part of herd mentality, only the good sides of the language. True we did feel more safe when compiling and less UB. Cargo is amazing. But DX was lacking especially for mid to large projects and as I said the syntax in many cases is very difficult to read. Not to mention the macros or proc macros which by themselves are like a separate programming language.
      I am just saying that Rust is not the one systems programming language to rule them all and I feel that it is advertised as such not by the creators but the community. Will it stay? Obviously. There are a lot of pros which in some cases outweigh the cons. But it will take time and I do not think it will overtake C++. I guess that as a "special forces" language for critical systems were memory safety is paramount it is going to be used first. But for general DX and speed of development C++ might be a better choice although not the sanest.

  • @ssmith5048
    @ssmith5048 9 месяцев назад +3

    1. it is a cult. 2. it aims to solve a problem, but doesn`t , it simply forces the compiler to get in your way, but you might actually code around that and the compiler still thinks it has done its job. 3. compile time is dogshit slow. 4. it aims to solve a problem that really is not a problem. 5. it is still a cult.

    • @antifa_communist
      @antifa_communist 9 месяцев назад +8

      You clearly don't understand Rust. It prevents you from writing code that wouldn't work anyway. It definitely does solve the problem.

    • @mahangholizadeh
      @mahangholizadeh 9 месяцев назад +3

      Yeah like 98% of bugs ain't double free or null pointer access, the problem doesn't exist you know

    • @diadetediotedio6918
      @diadetediotedio6918 9 месяцев назад +1

      1. Surely is rust that is a cult and not the bunch of robots that appear in almost every single rust video to say it is a cult and shit on the language without presenting actual arguments, right?

    • @arkeynserhayn8370
      @arkeynserhayn8370 9 месяцев назад +1

      This thread proves their first point even more 😂

    • @TheSast
      @TheSast 9 месяцев назад +3

      ​@user-to2ow2yk8x actually a significant majority of bugs are issues such as nullptr dereferences.

  • @alexandercasas577
    @alexandercasas577 5 месяцев назад

    If you say that someone needs to know programming before use Rust, that fact makes Rust a trash.
    I don't think you need al of this to learn Rust, but I do think that you need learn Rust trash to be a Rust developer. Like lifetimes explicit annotations.