Should You Learn Rust or Golang?

แชร์
ฝัง

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

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

    I learned Rust to become a better programmer. It filled in tons of knowledge gaps and helped me learn to write better code other languages.

    • @j.r.r.tolkien8724
      @j.r.r.tolkien8724 3 หลายเดือนก่อน +9

      You could've learned other languages directly instead. LOL.

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

      @@j.r.r.tolkien8724 it’s not about “learning languages”- syntax is easy to learn. Writing better code is about far more than syntax. If that doesn’t click, you haven’t written enough code or built/maintained enterprise code.

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

      ​@@j.r.r.tolkien8724 if he has learned Rust then other languages aren't gonna even be a problem 😂

    • @j.r.r.tolkien8724
      @j.r.r.tolkien8724 3 หลายเดือนก่อน +15

      I've been a developer for over 10 years. I guess there was a point where I used to think like that. But no. It doesn't work that way. Each language has its own approach and best practices. If you want a solid foundation learn algorithms. It won't matter what language you use from then. Also what is considered best practise in Rust won't even work in other languages.

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

      @@j.r.r.tolkien8724 that is what folks miss.

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

    Man this is a hot take lol. Golang 0-90 is great, 90-100 is slow, whereas rust 0-20 is really hard but 20-100 is not only rewarding but easy. When I see takes like these I always wonder how much experience these people actually have in rust.

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

      I have very little experience with rust

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

      you're right about 0-20 but there's another really hard peak on 70-100 (below that you can still do a lot) when going async/multi-threaded/low-level/unsafe and going for generics impl/traits (type masturbation) is something hard to master

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

      @@snoupix3332 Rust is a low level language. All of this stuff is important concepts to learn in low level programming, but tbh is much easier with rust. Understanding ownership and lifetimes (which is the true difficulty in 0-20) makes these far easier, which is why I say it's rewarding and easy. In fact even if you're working with unsafe, already understanding the "rust" way of doing things makes it far easier to get a grasp of than say in C. In stuff like that, I'd say you're pretty accurate in saying there's another sharp peak. But for rust? Nah, not so much.

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

      ​@@MelkeyDevso your talking bs?

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

      @@MelkeyDev so it seems kind of weird to state this stuff about rust if you yourself say you have little experience with it. Idk man, seems odd.

  • @BboyKeny
    @BboyKeny 23 วันที่ผ่านมา +9

    The most important thing is to learn what you want

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

    I think it's the opposite. Going from 0-60 in Rust is hard. Going from 60-100 is easy. People who learn Javascript have to keep learning the language every single day, edge case after edge case. It's easy to do simple things. It's hard to do complex things. In Rust, it's comparatively harder to do simple things, but comparatively easy to do complex things.

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

      Yes, the real problem is the skill issue

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

    I believe if you know python , you should learn Rust, not Go as it will rarely change the way you think when it comes to learning, for building go with Go

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

      Great take Thank you!

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

      I started with python and your comment will make me stuck to rust rather than go, thanks

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

    Rust is hard until you develop a solid understanding of ownership and lifetimes. When you have these concepts down, thinking in Rust is leaps and bounds easier _plus_ you're now using the borrow checker instead of _fighting_ it

    • @michawhite7613
      @michawhite7613 22 วันที่ผ่านมา

      I was able to use the borrow checker to write deadlock-free mutexes. It's great!

  • @user-kv4cc8mu7k
    @user-kv4cc8mu7k 2 หลายเดือนก่อน +6

    Keep in mind melky have never tried to learn rust so his assessment is not the best .
    Now you as student you had to learn subject that were hard , now looking back at them I think it's fair to assume that learning them was important and yielded great benefits for you .
    Like imagine if some middle schooler abandoned math or physics because they were too hard ,rediclous !
    Learning can be uncomfortable but persistence is how you grow as person and avoiding hard problems all the time is one way to stop yourself from expanding your knowledge and limit your potential.
    Rust isn't rocket science it's just a programming language as software engineer you failing to use a tool means you have work to do !

  • @Zitrone21
    @Zitrone21 7 วันที่ผ่านมา

    I love rust and I agree, but I also believe that you also start writing better code when a language forces you to understand when most of the things fails, know how and when to handle them, re-structure your idea to make it right and give a better product is a thing that I love from rust

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

    I feel like people think Rust is harder than it is. I learned Rust having exclusively written Python prior. The compiler held my hand and it was easy to pick up in order to write some file management scripts on an HPC cluster. I, someone with no experience in compiled languages at the time, found it pretty straightforward. Fast forward a bit, and I had to pick up C for work to write firmware; C didn't hold my hand nearly as much, but my experience with Rust made it a lot more straightforward. All programming languages can get messy, but I feel like Rust has a rep for being more difficult than it really is in practice. Of course, maybe I just got lucky.
    I haven't had the chance to check out Go yet, but I've been looking into it more lately; what's your favorite/least favorite part of it?

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

    Clearly this opinion does not come from someone that has gone through the 0 - 100 in Rust, but really believes to be gone through the 0 - 100 with go

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

      I have not programmed in Rust, you are correct

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

    The same thing happened to me when learning the JS frameworks React and Vue! Vue was easy to learn and be good at, and React be more difficult to improve after learning the basics! BUT, the amount of information I learned and the knowledge I gained learning React was so much more and I felt like I am always challenged to become a better developer. Plus it was so much closer to vanilla JS too

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

      same as me. I ran from react to vue coz react was harder to pick up. But after i eventually learned react the proper way and got comfortable with it, vue became sh*t to me.

  • @marthinus.x
    @marthinus.x หลายเดือนก่อน +13

    Python: 5 minutes to learn, a lifetime to master 💀

  • @chief-long-john
    @chief-long-john 2 หลายเดือนก่อน +4

    They operate in different spheres, imo rust should strictly be for low level programming and go for everything backend services.

    • @michawhite7613
      @michawhite7613 22 วันที่ผ่านมา

      Rust is my favorite language for backend. The explicit error handling means you'll never get a cryptic 500 error. And it's fast, so you don't have to scale your service as much. AWS gives you a discount for using it.

    • @chief-long-john
      @chief-long-john 22 วันที่ผ่านมา

      @@michawhite7613 it's just complicated to get started with rust, a lot of ideas you need to get familiar with. As well as getti g familiar with the compiler in Rust. If you know general backend concepts then you can get a very well made backend system up and running very quickly in Go

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

    Use Golang for the backend and infrastructure. Use Rust for CLI, game engine, or Low-level stuff

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

      Rust is my favorite language for backend web programming. The explicit error handling means you will almost never get a vague 500 error. The borrow checking makes race conditions less common. And I don't have to spend time or money to improve performance, since it's already 50 times faster than Python.

    • @user-cr1xc7bk6n
      @user-cr1xc7bk6n หลายเดือนก่อน

      @@michawhite7613 what kind of backend do you build in rust lol, i never see it being used in any job offer

    • @lucascamelo3079
      @lucascamelo3079 23 วันที่ผ่านมา

      Nah, I'll use Rust for both and if I need some really insane concurrency capability I'll go with Elixir.

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

    I quite recently started exploring Go and I really like it for it's simplicity. I think this is a real quality, especially because it is still strongly typed and compiled (this is good).
    However, for me hardly any language can compete with Rust. Also learning Rust added more value to me as new experience, since I professionally already develop in C# already, which is also a GC language and is a still much richer language than Go, even though Go does a certain things actually better.

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

    I love golang, it just makes me more productive than when I write js/ts.

  •  6 วันที่ผ่านมา

    I think you need a different approach to compare it. As a web-dev , solving web-dev-problems , both languages are pretty cool and you learn fast what you will need to know in both languages.

  • @brkctrl
    @brkctrl 7 วันที่ผ่านมา

    What exactly is 100 or 60 when it comes to programming?

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

    Isn't this a wrong question? People should first decide what's the thing they want to do. Design microcontrollers, hardware, write drivers for networking devices, work on a kernel, video games, do data analytics, write or design web sites or applications (business applications, trading banking etc) video games. Then start worrying about the tools. I personally don't think Rust is the best choice for someone who enjoys or wants do to web frontend or even full stack development. For a backend developer, maybe, depending on what kind of a backend for what kind of market, infra etc.

    • @j.r.r.tolkien8724
      @j.r.r.tolkien8724 3 หลายเดือนก่อน +1

      Well the assumption here is that the purpose for choosing either one of them is the same. Most likely web.

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

      Not everybody who "wants to learn coding" already knows if they want to write kernel drivers or CLI applications that help fellow developers because they... Might not know yet what a kernel and CLI applications are.
      That's why, for Real beginners this "that depends on what you want to do with it" is pretty pointless..

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

      @@maxfrischdev ok, so I just informed them about the fact that different tools are usually better suited for different jobs, and that there's a variety of very different programming jobs.

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

      @@maxfrischdev if you’re just learning to program altogether, most would agree rust isn’t the best first language for that purpose. But even that is a purpose where some tools fit better than others.

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

      It's true that some languages are better at some kinds of work. But Go is not better for any of those kinds of work.

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

    Step 1 - learn Go. Step 2 - learn Rust. It's literally how I went about learning programming and it's been very rewarding, can't recommend it enough!
    Go strikes the perfect balance between teaching how programming works and being simple and easy to use. Rust relies on those programming concepts mentioned above and gives you the tools to make fsat, safe and error-prone pgrograms more easily. Also both languages are loved by the community. It's a match made in heaven.

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

      This is the best comment!

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

    Why choose if you can have both

  • @waynelau3256
    @waynelau3256 25 วันที่ผ่านมา

    At what point is 60?
    I took rust as my second language from python and the learning curve was so steep. I didn't have formal CS education so learning about type safety, memory was so difficult. But now i really enjoy coding in rust, i am still not good with the pointers but it's so fast already

  • @sanjai1038
    @sanjai1038 20 วันที่ผ่านมา

    Agreed 100%

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

    I think primeagen made the exact same analogy

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

      LOL Really? is there a vid? maybe i unconsciously got it from him

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

      It was obviously a video, but I watch a ton of his stuff so can't specify. It's a good analogy.

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

      @@johnjlanejr Yeah - I think its a very accurate one

  • @dasshorty
    @dasshorty 26 วันที่ผ่านมา

    I try currently to learn go.

  • @tongpoo8985
    @tongpoo8985 20 วันที่ผ่านมา +1

    Might sound silly but Go is absolutely hideous imo and thats why I dont learn it.

    • @MelkeyDev
      @MelkeyDev  20 วันที่ผ่านมา

      What's wrong wth it?

  • @capad1218
    @capad1218 19 วันที่ผ่านมา +1

    Learn both 🗿

    • @MelkeyDev
      @MelkeyDev  19 วันที่ผ่านมา

      This is the way

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

    Let's do GO then. Thanks

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

    I use Rust at work and I disagree

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

    Why no one talk about Carbon the Google C++ killer?

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

    I learned rust as my first language and Im confused on where the difficulty came from? Return types? Traits? Dispatch? Lifetimes?

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

      Borrowing and ownership

    • @jcm2606
      @jcm2606 24 วันที่ผ่านมา

      It tends to be different things for different people, from what I've seen. Generally people struggle with ownership and borrowing when starting out, but some people also struggle with strict typing if they're coming from a flexibly, perhaps even dynamically typed language like JS or Python. Other people also struggle with memory and having to think about stack vs heap allocations if they're coming from a language that tries to hide that from you, again like JS or Python.

    • @headlibrarian1996
      @headlibrarian1996 22 วันที่ผ่านมา

      @@cccc2740 Why is that hard, especially if you’re a C++ programmer?

    • @Dreku22
      @Dreku22 วันที่ผ่านมา

      Aye bro lemme borrow that string! &str &’str &mut &more 😂

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

    Avoid unmanaged languages.

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

    It’s just called Go.

  • @Anonymous-dy2te
    @Anonymous-dy2te หลายเดือนก่อน

    I go with Rust.

  • @naczu
    @naczu 6 วันที่ผ่านมา

    I prefer rust.

  • @user-sm7gy7xv7d
    @user-sm7gy7xv7d หลายเดือนก่อน

    hello, blogger

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

    Sure but going from 100 to 1000 is much easier in Rust than Golang.

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

      yeah true true

    • @lucascamelo3079
      @lucascamelo3079 23 วันที่ผ่านมา +1

      And if we go from 1000 to 2000?

    • @MelkeyDev
      @MelkeyDev  22 วันที่ผ่านมา

      @@lucascamelo3079 moch speed

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

    Skill issue.

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

    I feel like going 0-100 is easier in Rust, but going from 100-200 is tremendously difficult. Rust has a TOOON of stuff you don't need that people claim as idiomatic that other languages just skirt around.

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

      Maybe i should try Rust

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

    One of my philosophy: don't waste time on a language that its creator has not worked for it anymore.

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

      If you're referring to Graydon Hoare, his idea for the language was much different from the community's. He wanted to make an Elixir clone, but the rest of the community decided to try replacing C++, which I think was the right decision.

    • @lucascamelo3079
      @lucascamelo3079 23 วันที่ผ่านมา

      ​@@michawhite7613Now it makes sense. Both are indeed similar when it comes to safe concurrency capabilities. Sometimes I find myself trying to chose between both for my personal projects.

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

    Go is underestimated as a language "for learning to become a better programmer". Go is full of great design ideas and decisions, and it's super interesting to study the language from this perspective.

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

      There's a great blog post called Abstracting Away Correctness, about a lot of bad design decisions in the language and standard library.

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

      @@michawhite7613 I love reading fasterthanlime but I don't like his view on Golang and I believe he tries to use Go as if it was some other language

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

    😂😂😂😂 Too hard 😭😂😂

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

      skill issue

  • @---cz7vs
    @---cz7vs 6 วันที่ผ่านมา

    0 content

    • @MelkeyDev
      @MelkeyDev  5 วันที่ผ่านมา

      5 content

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

    People don’t drop Rust because it’s “too hard” .. they ditch it when they get deeper into it and discover it’s “too wrong”, and it’s promises are mostly snake oil

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

      Which promises do you suppose are snake oil?

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

      Right, which is why so many big corpos are rewriting their memory critical systems in Rust, cuz of its snake oil promises. What a tool, screams so much "skill issue" with that comment.

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

      ​@raptorate2872 fr.. even the white house is now might switch to rust

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

    Neither.

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

      then what??

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

      ​Bro writing in assembly I guess @@MelkeyDev

    • @marthinus.x
      @marthinus.x หลายเดือนก่อน

      Vlang, Nim, Zed, Elixir, Mojo?