Should You Learn C++? (Will Rust Kill C++?)

  Рет қаралды 16,982

Caleb Curry

Caleb Curry

Жыл бұрын

Start your software dev career - calcur.tech/dev-fundamentals Be notified of new C/C++ course: calcur.tech/c-cpp-newsletter
💯 FREE Courses (100+ hours) - calcur.tech/all-in-ones
⚛️ FREE React Course (20 hours) - calcur.tech/free-react-course
✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
✉️ Newsletter - calcur.tech/newsletter
📸 Instagram - / calebcurry
🐦 Twitter - / calebcurry
🔗 LinkedIn - / calebcurry
▶️ Subscribe - calcur.tech/subscribe
👨🏻‍🎓 Courses - www.codebreakthrough.com
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
↪ My Amazon Store - www.amazon.com/shop/calebcurry
🅿 Patreon - calcur.tech/patreon-calebcurry
🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
Ⓟ Paypal - paypal.me/calcur

Пікірлер: 166
@codebreakthrough
@codebreakthrough Жыл бұрын
Would you learn C++, Rust, or both? Be notified of new C/C++ course: calcur.tech/c-cpp-newsletter
@christianm4906
@christianm4906 4 ай бұрын
It's been about 12 years since we first heard of Rust, and despite the extensive marketing campaign it has received, it is still considered a niche programming language. Don't get me wrong, I'm not saying Rust is a bad programming language. In fact, it might be better than C/C++ in many aspects, but its approach forces developers to either write everything from scratch or deal with the pitfalls of the 'extern-function approach' for integration with the outside world. The industry has invariably proven that this approach is a failure from day one. A very good example of this is the Dart programming language. It was originally intended to replace JavaScript, and despite being better than JavaScript in many ways, it miserably failed to do so. Similarly, Rust is unlikely to succeed in replacing C or C++. Rust and C++ are fundamentally incompatible. I see more future in replacing C/C++ with other approaches such as CPP2 or Carbon if the first production-ready versions of those languages are released, which seems very likely to happen soon. Once that happens, there will be even less chance for Rust to replace C or C++. Also, note that C++ and TypeScript are very successful languages in terms of adoption because their approach doesn't require rewriting everything from scratch. You just change the extension from .js to .ts in your JavaScript programs and start seeing results in terms of migration right away. Similarly, with C++ and C; you compile a C program with a C++ compiler and start seeing results. That's why industries are reluctant to migrate to Rust. This approach is in opposition to code reusability, which is too important to give up.
@TheBuilder
@TheBuilder Жыл бұрын
generally you won't understand why rust does what it does unless you know C or C++
@guitarbuddha74
@guitarbuddha74 8 ай бұрын
One thing I'm learning after years of "trying many languages" is get depth in one language. It doesn't really matter too much what it is but I would use a general purpose language. Use it like a hammer where everything is a nail for a while. Even if it isn't meant to do backend try to make something in the frontend using it. Then try another language meant to do that particular and it will seem way easier. Then just keep refreshed on the language you have the most depth in.
@mr.erikchun5863
@mr.erikchun5863 Жыл бұрын
heard it so many times. programming languages are tools to get things done with a computer. learn what you need and adapt if anything changes
@josemaria_landa
@josemaria_landa Жыл бұрын
As a programming language enthusiast, that’s like telling a car enthusiast, cars are just tools to get from point A to point B… a lot of careful design, creativity, optimizations, etc go into creating a programming language… but I understand. Most people don’t really care about all that.
@MuhammadHosny0
@MuhammadHosny0 11 ай бұрын
@@josemaria_landa tf
@indiesigi7807
@indiesigi7807 5 ай бұрын
The low level languages are more like instruments that take a lot of practice and effort and knowledge to produce decent sounds with.
@samjiman
@samjiman Жыл бұрын
I mean theoretically even if everyone stopped writing software in C++ it's good to understand it if your port to another language. But realistically it's never going to die out.
@redsolaris1
@redsolaris1 Жыл бұрын
how would you compare c# to c++?
@jackchau0303
@jackchau0303 Жыл бұрын
Yea, thank you bro!!!
@hgbugalou
@hgbugalou 8 ай бұрын
Learning C++ makes learning other languages far easier.
@vladgruin
@vladgruin Жыл бұрын
Do you do any mining still?
@wariskabuli2735
@wariskabuli2735 Жыл бұрын
Right now I am college student and we use c++ for programming classes I like it.
@imveryhungry112
@imveryhungry112 4 ай бұрын
The rust compiler is written in c++ 😅
@hostgeneral
@hostgeneral 19 күн бұрын
NO. The early Rust compiler is written in OCaml, (and rewritten in Rust itself latter). 😅😅
@imveryhungry112
@imveryhungry112 19 күн бұрын
@hostgeneral nothing that does any real work is written in rust. There's a reason for that.
@konsehfelembomrex5839
@konsehfelembomrex5839 10 ай бұрын
Please which language is really good for Embedded Systems.?
@rreece90
@rreece90 Жыл бұрын
C++ is love; C++ is life 😊
@pinniporker
@pinniporker Жыл бұрын
thanks for the video on rust
@Grunttamer
@Grunttamer Жыл бұрын
Well rust was set to do this and then the rust foundation lost their minds.
@wjrasmussen666
@wjrasmussen666 Жыл бұрын
F the Rust foundation.
@ElinLiu0823
@ElinLiu0823 Жыл бұрын
Yeah,that's also the quesition i wanna ask.For me though,i am major in data since and AI,but i also love web development with Svelte(or vanilia) with FastAPI. So i'm wonder should i learn C++ and then goto CUDA?or learn Rust when C++ is done?
@JamesJones-zt2yx
@JamesJones-zt2yx Жыл бұрын
If you wait to learn Rust until you finish learning C++, you will _never_ start on Rust.
@theintjengineer
@theintjengineer Жыл бұрын
It's C++ for me all the way❤
@GmanGavin1
@GmanGavin1 4 ай бұрын
I want to do graphics programs and software plugins. Maya / After Effects just have SDK's in C++. A majority of OpenGL examples and tutorials are in C++.
@DevlogBill
@DevlogBill 11 ай бұрын
I am happy to hear you say maybe you could learn both C++ and Rust. this made me feel better about learning two programming languages at the same time. I've been learning Kotlin and C++ at the same time. But I program in Kotlin every day and C++ about 1 or 2 hours per day if I have the time. Kotlin is to find a job and C++ is for fun. But I already have over 1 year and 6 months of programming, so I think I have a good understanding of my fundamentals, I hope so. Thanks Caleb I enjoy your tutorials.
@siman211
@siman211 10 ай бұрын
What resources You use to learn c++?
@DevlogBill
@DevlogBill 10 ай бұрын
@@siman211 Mostly KZbin because I code once in a while with C++ not often. Because everyday I am focused on Kotlin with Android. But I should mention from my personal experience that Coursera programming courses are not that great. I noticed programming courses in Udemy tend to be better. Plus you wont have to worry bout monthly fees like coursera in Udemy once you purpose a course it is yours for life.
@ZombieLincoln666
@ZombieLincoln666 8 ай бұрын
“C++ is for fun” you’re a strange guy
@DevlogBill
@DevlogBill 8 ай бұрын
@@ZombieLincoln666 😂 😂 thank you I take that as a complement. Zombie I hope you are doing well on your learning path, I wish you all the best!
@siman211
@siman211 8 ай бұрын
@@DevlogBillI could not found a good c++ course on udemy the pace is two slow and the problems that they give me are badly explain how to do them
@random_things2023
@random_things2023 Жыл бұрын
3:07 that's why you have to learn c++ there's lotta reasons if you wanna get started at this line you have to learn c or c++ that's clear isn't ?
@alexandrustefanmiron7723
@alexandrustefanmiron7723 Жыл бұрын
As you can "write fortran" in c++ you can also "write rust" in it.
@meowrbius
@meowrbius Жыл бұрын
What I'm going to say is not according to job point of view. But if you are a geek who is really driven to understand programming, I believe this is the way to begin your journey: Learn C first. It might be hard and demotivating at first but stick to it. Once things start to make sense, it'll be very easy to move on to any other language. If you are a student and still got lot of time to grind, its better to learn C++ after C since its an easier transition from Procedural to OOPs because of the identical syntaxes those languages share. Just focus on OOPS when learning C++. You don't have to master any language. Learn it till you are able to make a good project out of it. After that move to Java. DSA is best understood with Java. After these, you can move onto some dynamic language like JavaScript or Python (depends on what job you want). Now slowly get into Assembly and understand how hardware stuff really is really implemented and working. Then you can easily pick the domain you would like to work with, grind it for some months, then apply for some jobs, and get it. NOTE: Focus on projects and domain and do practice exercises everyday. Don't fall into tutorial hell and perfectionism mindset.
@aperture0
@aperture0 Жыл бұрын
DSA with Java? Any particular reason? I was going to do it with CPP
@Hallo503
@Hallo503 Жыл бұрын
So basically just learn all the programming paradigms and popular programming languages, AND THEN go and learn domain specific frameworks? Why not just learn one or two languages and then start working right away?
@fackyoutube8452
@fackyoutube8452 Жыл бұрын
@@aperture0 because Java cleans up memory and you do not have to do memory management. Data structures are a lot harder when you’re using pointers like in C++ but pointers will definitely enhance your learning. So I would suggest get the basic data structure down(the concept) then get back to it with C since there is no garbage collector to babysit you. Jumping straight into data structure with c++ is not something I recommend it’s a steep learning curve.
@fackyoutube8452
@fackyoutube8452 Жыл бұрын
@@Hallo503 learn concepts then program. Trust me programming is the last step you want to do, the pseudo code and write outs are very good when you first start learning, you should understand how the compiler works before just throwing random code at the compiler. If you’re stuck on a problem you can look up the solution, but try to understand it.
@Hallo503
@Hallo503 Жыл бұрын
@@fackyoutube8452 If I want to program lets say java or javascript, I dont need to know how the compiler works. Knowing the syntax and semantics of the language is enough
@AnxKhn
@AnxKhn Жыл бұрын
Love from India.
@ZombieLincoln666
@ZombieLincoln666 8 ай бұрын
C++ is a large language. So it’s not true when you say that you can learn C++ with no downsides - that’s a ton of time you can spend on other things. And it’s also not true that it’s for embedded systems - C is, because it’s way smaller.
@bluedark7724
@bluedark7724 9 ай бұрын
However after studying rust language I don't think I'll look back. Rust goes for operating systems and bad metal all the way to websites and servers. Also I found a lot of Interactive material regarding learning rust. In the error checking while you're typing is amazing feature you don't have to compile..
@bluedark7724
@bluedark7724 9 ай бұрын
P.s. they just released the update to rust today apparently and now you can bind to c ibraries on the binary level. That's a lot of possibilities
7 ай бұрын
@@bluedark7724 Then again why only know one language? You just put limits on yourself.
@pierreollivier1
@pierreollivier1 6 ай бұрын
I think there is better options out there, zig for example, is way simpler than rust, has a better compilation speeds, can natively interops with C, has an amazing compiler, and tools (especially considering how young the language is) and the community and learning curve of zig or really great compared to rust.
@developerdeveloper67
@developerdeveloper67 Жыл бұрын
You were right when you talked about the C++ useful features in your earlier video: strings, vectors and that is it, actually you could add dictionaries or hash tables to the list. But that is pretty much it. That is why you may prefer to learn CPP over C. Rust on the other hand, there is just no reason to learn such a thing.
@Joey-um5iw
@Joey-um5iw 9 ай бұрын
People say rust is more safe compared to C++, however, apparently C++ has the same features of rust if used properly. I'm still intermediate to C++ so could you verify if this is true please.
7 ай бұрын
Most people online have no clue to what they are talking about. It's just easy to attack an established language like C++. C++ is like the biggest toolbox you have, so of-course if you don't know anything you are bound to shoot yourself in the foot a lot. If you know it, you would also know that it has really evolved, people refer to C++ as it looked like 10-20 years ago, it's simply not so anymore.
@programmingjobesch7291
@programmingjobesch7291 Жыл бұрын
0:02- premature optimization 😂
@only2megabytes139
@only2megabytes139 11 ай бұрын
Just learn assembly.
@user-sh6sr6pe3c
@user-sh6sr6pe3c 10 ай бұрын
It's C++ for me all the way. C++ is love; C++ is life .
@100deep1001
@100deep1001 7 ай бұрын
but why? reasoning over emotion ?
7 ай бұрын
@@100deep1001C++ enables anything, it is established. It has grown to become great, it is today much better than it was 10 years ago for example.
@Gkcrafting
@Gkcrafting 3 ай бұрын
Same for me ❤
@Gigasharik5
@Gigasharik5 3 ай бұрын
Brainwashed
@wolfgangrohringer820
@wolfgangrohringer820 Жыл бұрын
Thank you, I think this video is dead on overall. I'd say, learn both, at least to a degree. Pick a small project in your area of interest, try to implement it with both languages, and you'll quickly see what suits you more. As someone doing a lot of data analysis using Python , I was looking for something to build lightweight CLI tools with (...no 300 MB Python runtime attached to it...), and to extend Python for certain tasks where it was inconvenient to deploy or slow. I then wrote a small data format converter with an eye towards testing some libraries I expected to use a lot in Go, C++ and Rust. Before this experiment, I figured that Go would be probably fine for most of my needs, I was anxious about using C++, I regularly mocked one of my colleagues who started evangelizing about Rust back then and I thought its library ecosystem to be lacking for our use cases. I quickly found that actually Golang's library ecosystem is lacking for our use cases, that C++ is fine if you keep it simple, but ...that I'd rather fight the borrow checker for a few weeks than fight CMake for a lifetime (seriously, dependency management is the real enemy in C++ land...). Against my expectations, Rust was easily the most enjoyable experience (good libraries, using them just works, great tooling such as excellent language server or integrated testing, helpful compiler errors), and I started to default to it for smaller projects where I didn't want to use Python. On the other hand, I recently joined a project at work where the software was written in C++. I found that many basic things I learned using Rust transferred over to C++ just fine, and that trying to comprehend articles and videos bashing certain features of C++ is a valid method to learn about said features ;-) I now even started a small private project in C++, simply because it relies on a combination of two specific libraries for which there is no good Rust equivalent. One last thing: I mainly use Windows. I can't comment on games, but for me the C++ ecosystem was much nicer on Linux than on Windows. I came across several libraries that are trivial to build on Linux but painful on Windows for various reasons (lack of system package manger, dodgy CMake files, reliance of things not supported by MSVC, therefore switching around between MinGW and MSVC) and other general annoyances (bad C++ support - refactoring! - for VSCode without clangd, but clangd not finding header files, missing sanitizers under Windows...). So this might also factor into your enjoyment of either language. P.S.: I have used C for an embedded project a few years back, which helped a lot. I think learning C++ without having been exposed to C beforehand must be incredibly confusing.
@Joey-um5iw
@Joey-um5iw 9 ай бұрын
People say rust is more safe compared to C++, however, apparently C++ has the same features of rust if used properly. I'm still intermediate to C++ so could you verify if this is true please.
@rocketleague2136
@rocketleague2136 Жыл бұрын
Interesting that you've mentioned Flutter for mobile but not Java
@ThatGuyJamal
@ThatGuyJamal Жыл бұрын
Because Java is being fazed out by google and android so its not recommended to use anymore
@rocketleague2136
@rocketleague2136 Жыл бұрын
Its just beef between Oracle and Google. Java is still #1 for Android
@ThatGuyJamal
@ThatGuyJamal Жыл бұрын
@@rocketleague2136 but the future is kotlin and not java so as the ecosystem shifts java will slowly die. It will not be replaced yes, but its no longer the "main" way to develop on android which will hurt it somewhat. The ensentive is, "if you have a new app just use kotlin or flutter. Java is legacy."
@AndrewDCDrummond
@AndrewDCDrummond Жыл бұрын
It’s worth learning C, and I enjoyed learning C++ because of the great books I used, but C++ has many issues because Stroustrup leveraged the widely available C compiler and linker to bring the powerful concepts and modelling capabilities of OOP to as big an audience as possible quickly.
@grandmastergyorogyoro532
@grandmastergyorogyoro532 Жыл бұрын
Hi, Can you pls share with us the books on C++ you read, Curious to know. Thank you.
@aperture0
@aperture0 Жыл бұрын
​@@grandmastergyorogyoro532 check SO they've a list compiled on c++ books. It's a good list
@AndrewDCDrummond
@AndrewDCDrummond Жыл бұрын
@@grandmastergyorogyoro532 In no particular order: "The C++ Programming Language", "The Design and Evolution of C++" - Stroustrup, "Effective C++", "More Effective C++", "Effective STL", "Effective Modern C++" - Meyers, "Advanced C++" (the LSD book...), "Multi-Paradigm DESIGN for C++" - Coplien, "Ruminations on C++", "Accelerated C++" - Koenig & Moo, "Exceptional C++", "More Exceptional C++", "Exceptional C++ Style" - Sutter, "Modern C++ Design" - Alexandrescu. I would say that the Meyers books were just cookbooks but the Coplien, Koenig and Alexandrescu books were all exceptional. An early book which I learnt an awful lot from in terms of programming style was "Advanced C programming for Displays" by Marc Rochkind, which used a very modular style which was a good basis for I was later exposed to OOP and C++.
@grandmastergyorogyoro532
@grandmastergyorogyoro532 Жыл бұрын
@@AndrewDCDrummond Thank you very much Andrew, for providing the list of books. Am going to go through as many books as possible.! Thank you very much for your response! Its gonna help me alot to learn C++ !
@MISIU_7554
@MISIU_7554 Жыл бұрын
@@grandmastergyorogyoro532 I also recomend watching some decent youtube tutorials, like "The Cherno C++"
@vitalyl1327
@vitalyl1327 Жыл бұрын
Use cases for C++ and Rust overlap, but not entirely. The real question should be Rust vs., say, SPARK. And I'd argue that the latter is far more mature and capable.
@Caellyan
@Caellyan 4 ай бұрын
I've heard of spark maybe once and have never seen it used in the wild. It's also object oriented while Rust isn't.
@vitalyl1327
@vitalyl1327 4 ай бұрын
​@@Caellyan the main difference is that SPARK is verified. You cannot formally prove correctness of a Rust code.
@Caellyan
@Caellyan 4 ай бұрын
@@vitalyl1327 No, Rust has been formally proven with COQ a few years ago (core libs). Some libraries do so as well (e.g. ghost-cell).
@vitalyl1327
@vitalyl1327 4 ай бұрын
@@Caellyan yet, there are no built in tools for you to write your own certified code in Rust, while in SPARK it is out of the box.
@Caellyan
@Caellyan 4 ай бұрын
@@vitalyl1327 All contracts can be broken. In Rust the code is correct (no UB) if you don't use unsafe, and I'm sure SPARK safety can be circumvented somehow too (when needed/appropriate/neccessary).
@wint3rxxx
@wint3rxxx Жыл бұрын
40 sec late, love from Ghana 🇬🇭
@josephlagrange9531
@josephlagrange9531 Жыл бұрын
Loved Ghana on World Cup 2010!
@hendrykhoza4782
@hendrykhoza4782 Жыл бұрын
I need a series in Rust
@aaryangulia1829
@aaryangulia1829 7 ай бұрын
Quantitative Finance - C++ is the gold standard in the industry.
@Sventimir
@Sventimir 10 ай бұрын
I think Rust (or maybe some its descendant) will replace C++ eventually, but it's not going to happen anytime soon. There's too much legacy C++ code in existence that we have to maintain. That said, I believe Rust will win eventually, beacuse it's just simply better. Automatic memory management with no runtime cost is a huge advantage wherever both performance and safety are key. Rust is difficult (to which I can attest, as I'm trying to learn it right now), but C++ isn't easy either. Besides a number of similarily difficult languages are also becoming increasingly popular as applications we build become too complex to continue writing them with no help from compilers.Haskell or OCaml may not be as popular as JS or Java, but they're probably far more popular nowadays than anyone expected they would become, say a dacede ago. If this trend towards languages with good safety features will continue, I foresee a great future for Rust and rather grim one for C and C++.
@isodoubIet
@isodoubIet 9 ай бұрын
Rust is not "better" than C++. It's newer, has some better defaults in some cases, but it also has some giant glaring omissions that make it boilerplaty and annoying to work it. "Automatic memory management with no runtime cost is a huge advantage " Guess where Rust got that idea.
@Joey-um5iw
@Joey-um5iw 9 ай бұрын
​@@isodoubIetPeople say rust is more safe compared to C++, however, apparently C++ has the same features of rust if used properly. I'm still intermediate to C++ so could you verify if this is true please.
@ZombieLincoln666
@ZombieLincoln666 8 ай бұрын
C++ is always being updated. I hate when people speak about C++ and ignore the fact there are many new of versions of it - and that’s also a reason you might criticize it
@ryleitdept
@ryleitdept 6 ай бұрын
Unfortunately, that won't happened really,because our earth was already reaching its resources limitations and it's not life.safe anymore. We are already on the last phase of our existence. The human history will be rewritten once again probably on another new language. What do We know.
@pierreollivier1
@pierreollivier1 6 ай бұрын
@@isodoubIet Rust is better than C++, maybe not in the syntax or in the idioms, but just from the knowledge I have of the compiler (I wrote compilers a lot). Rust and any modern language for that matter, are starting with a clean slate and have way better compilers, and you may think that this is just not that important as at the end of the day Cpp is a really performant language ? well the problem is that having the compiler being really responsive (like real time level of responsiveness) is becoming more and more crucial, for the tooling around the language, tools like linter, static analyser, formatter, lsp want to access the AST and use those informations to help the developer to be more productive, unfortunately C++ because it has inherited a lot of the ugliness of C (i love C but you know it was made on machine that had less word of memory than there is letters in my comment, so it's understandably bad). Cpp has a worst compiler, worst reflection and informations from the compiler, it's not as fast as the competitors (zig for example as a really good compiler, as well as jai or odin). So in the long run despite any attempt from the ISO board, Cpp is inevitably going to die to be replaced by better languages. Because cpp can only evolve so much. I love Cpp this is still my go to language for almost all of my personal projects, but it's just facts that it wont stand a chance against the incoming languages.
@flaviooliveira731
@flaviooliveira731 2 ай бұрын
I believe that C±+ teach you about computer science, at the same time that you lear the language.
@muhammadyusoffjamaluddin
@muhammadyusoffjamaluddin Ай бұрын
Google Developers on Carbon project: Well guys, we have to push the RED BUTTON again and dig the grave for a new 'dead project' then....
@JooHongPark
@JooHongPark 7 ай бұрын
A programming language is just a tool. A skilled programmer is able to program in several programming languages or even a language that he never heared of. With reference and couple of books. If you are new, C++ is very good choice to start with. If you know C++, you can learn other languages very fast.
@pierreollivier1
@pierreollivier1 6 ай бұрын
I'd say C is probably a better language to start with, as it's way simpler, and moving to Cpp will feel really good with all of the convenience that Cpp offers
@rbluhm
@rbluhm 11 ай бұрын
Me: learn python for data science, C++ and rust for general & gaming and some Go for relax.
@jackchau0303
@jackchau0303 Жыл бұрын
The first language I learnt is C from your channel 😂, c++ then JavaScript.
@bamadoescode6242
@bamadoescode6242 Жыл бұрын
I think that c is very much worth learning, as it gives you a good understanding of what higher level languages are doing under the hood. C++ doesn't really add anything useful to c that isn't done better by rust tho, so I don't think it's really worth learning. You can also do a lot more with rust. Anything you can do with c/c++ you can also do with rust, *and* it has the higher level ergonomics that make it much more pleasant to use, especially for things like backend web dev. Sure, you *can* write your backend in c++, but in rust you can do it well. Edit: I will say that one thing c++ can do very well that rust can't do well is interfacing with c
@kevinmcfarlane2752
@kevinmcfarlane2752 10 ай бұрын
I don’t think it’s quite true that Rust can do everything that C/C++ can. It certainly cannot do everything only in safe Rust.
@ZombieLincoln666
@ZombieLincoln666 8 ай бұрын
C++ way has better support and libraries. I’m waiting for a good CUDA version for Rust..
@ollicron7397
@ollicron7397 5 ай бұрын
C++ is a ton better than C, we literally don't have to use malloc, we also don't have problems dealing with escape sequences.
@bamadoescode6242
@bamadoescode6242 5 ай бұрын
@@ollicron7397 right, but does rust. That's the point of the comment
@DataPastor
@DataPastor 8 ай бұрын
I think Rust is this decade’s Scala. It is an over complicated kitchen sink language, which is too much hassle to code in. The hype will fade away as better languages emerge, e.g. Zig, Mojo and probably even Carbon. Not to speak about the toxic culture of the Rust Foundation. I don’t think that Rust will significantly grow further.
@pierreollivier1
@pierreollivier1 6 ай бұрын
Totally agree, while Rust is certainly a great language, it's way too complex and the learning curve is just atrocious, like the amount of work you have to put in just to be an average Rust dev is horrendous, in the meantime you can learn zig in like a month and be really proficient with it in almost no time. Like seriously it took me about 3 month to write a lexer/parser for C in Rust, and porting that same program to zig took like two weeks at best.
@wjrasmussen666
@wjrasmussen666 Жыл бұрын
Your thumbnail for this video tells a story. Is that the story you want to tell?
@christianm4906
@christianm4906 4 ай бұрын
It's been about 12 years since we first heard of Rust, and despite the extensive marketing campaign it has received, it is still considered a niche programming language. Don't get me wrong, I'm not saying Rust is a bad programming language. In fact, it might be better than C/C++ in many aspects, but its approach forces developers to either write everything from scratch or deal with the pitfalls of the 'extern-function approach' for integration with the outside world. The industry has invariably proven that this approach is a failure from day one. A very good example of this is the Dart programming language. It was originally intended to replace JavaScript, and despite being better than JavaScript in many ways, it miserably failed to do so. Similarly, Rust is unlikely to succeed in replacing C or C++. Rust and C++ are fundamentally incompatible. I see more future in replacing C/C++ with other approaches such as CPP2 or Carbon if the first production-ready versions of those languages are released, which seems very likely to happen soon. Once that happens, there will be even less chance for Rust to replace C or C++. Also, note that C++ and TypeScript are very successful languages in terms of adoption because their approach doesn't require rewriting everything from scratch. You just change the extension from .js to .ts in your JavaScript programs and start seeing results in terms of migration right away. Similarly, with C++ and C; you compile a C program with a C++ compiler and start seeing results. That's why industries are reluctant to migrate to Rust. This approach is in opposition to code reusability, which is too important to give up.
@ollicron7397
@ollicron7397 5 ай бұрын
There's not that many jobs for Rust, it's not on high demand, they literally change the syntax all the time.
@tariqosman5811
@tariqosman5811 3 ай бұрын
You should learn C++ if you want be a good programmer.
@knofi7052
@knofi7052 Жыл бұрын
It's quite easy. Learn C++ if you want to learn a very complex language and many different programming concepts but learn C if you want to learn programming!😉
@dominikskeries
@dominikskeries 4 ай бұрын
why not skip all that and just learn ada 😊
@hmdz150
@hmdz150 Ай бұрын
You might hate C++ and try to learn many other languages for many years. But in the you realize C++ is the only language capable of doing what does; that is, providing high level abstraction (at zero cost) while being low level enough to allow large scale applications run as efficiently as possible. Ask Microsoft why never developed Windows and Office using their dream language, C#.
@RNDM-nd7tj
@RNDM-nd7tj Жыл бұрын
Rust will never replace c++ for the plain fact that's its not as fast. You can throw other arguments into the mix but the language that eventually kills c++ does not exist yet.
@mantality312
@mantality312 Жыл бұрын
No language will ever replace any language. But Rust is definitely faster than c++.
@theintjengineer
@theintjengineer Жыл бұрын
Rust will replace C++ the same way ChatGPT replaced my books🤡
@carborundum72
@carborundum72 Жыл бұрын
I mean Rust is fast enough to be used in the Linux kernel. I would say it offers comparable speed to C++ plus some added memory safety.
@MISIU_7554
@MISIU_7554 Жыл бұрын
@@mantality312normaly c++ has almost the same speed of rust, but in big projects c++ can be a lot faster then rust, because of the limitations made by the rust compiler, in c++ you can do a lot of fancy memory maniipulating code witch can vitaly increase performance
@AlFredo-sx2yy
@AlFredo-sx2yy Жыл бұрын
@@MISIU_7554 shhh dont talk about manual memory management in C, the unsafety and speed makes all the rustaceans lose their minds.
@4115steve
@4115steve 10 ай бұрын
I think I hear your washing machine
@CompressedSoup
@CompressedSoup Жыл бұрын
with that scuffed-ass syntax, rust is 100% not killing C++
@lovely-shrubbery8578
@lovely-shrubbery8578 Жыл бұрын
Rust got the scuffed syntax from cpp lmao
@slawasaporogez6581
@slawasaporogez6581 Жыл бұрын
The games mostly written in C++, because this language allows things to be made in 2.5d, 3d, instead of maximum of 2d in others. Also don't forget C# for Unity.
@kdt85
@kdt85 Жыл бұрын
Rightfully slow
@zvqle
@zvqle 6 ай бұрын
the way i see it, rust is just a small fad, like all the others. itll die out like ruby
@ryleitdept
@ryleitdept 7 ай бұрын
rust will.eventually going to be rusted and im sorry for that 😂
@r2com641
@r2com641 Жыл бұрын
C++ is the goat 🐐
@neelpatel4531
@neelpatel4531 9 ай бұрын
Quick tip: don’t put bloopers in the video, most of the people probably came here for the content so they don’t care about the bloopers it gets annoying ❤
@o_glethorpe
@o_glethorpe Жыл бұрын
I think that maybe rust will just kill itself.
@fabricehategekimana5350
@fabricehategekimana5350 Жыл бұрын
Yeah, the drama with the rust foundation is annoying. But recently rust was addopted into the linux kernel and will be used by amazone for it's servers. It gain slower in popularity but it will certainly become a big thing in the future
@soumyadeepray1272
@soumyadeepray1272 Жыл бұрын
Anyone who thinks whether they should learn C++, shouldn't become a programmer. Anyone who loves Maths, will absolutely love C++. Rust doesn't get to tie C++'s boots. Facts!
@josephlagrange9531
@josephlagrange9531 Жыл бұрын
What is your experience with Rust, dude?
@fabricehategekimana5350
@fabricehategekimana5350 Жыл бұрын
If you like math, you should try haskell and rust. They are both linked to type theory and category theory. If you're interested there are also proof assistants that help you to do mathematical proofs and checked and computed by a computer (like Coq for instance). There is an introductionnary paper about that: shemesh.larc.nasa.gov/fm/papers/ICASE1999-QNews.pdf I think type theory and functionnal programming are the best child of mathematics and computer science
@sagars861
@sagars861 Жыл бұрын
never learn c and c++ as beginner learn either python or java
@bucztechph
@bucztechph Жыл бұрын
Actually it's best to learn low-mid level languages before switching to high levels. It's going to make it more easier
@sagars861
@sagars861 Жыл бұрын
It makes things difficult going from pointers and functional programming to oop languages better only learn if your job require it
@bucztechph
@bucztechph Жыл бұрын
@@sagars861 ur right! I still can't work with pointers, especially pointer arithmetic and dynamic allocation. Im planning on switching another language
@AndrewDCDrummond
@AndrewDCDrummond Жыл бұрын
@@bucztechph maybe you should choose another career if you can’t get your head around pointers and dynamic allocation, you should understand these concepts so you can understand higher level concepts like references and garbage collection and the performance issues you might meet with the latter. Maybe try reading the Kernighan and Ritchie book for learning C - it’s a great book.
@theintjengineer
@theintjengineer Жыл бұрын
Somehow, whenever I hear someone saying to "never learn C or C++ as a first language", I stop listening to them. Like, automatically. It doesn't matter how expert in their ugly java script, python, or whatever😂 they are. It's just a major turn off.
@hiongun
@hiongun Жыл бұрын
Man, it's 21st century. Learning C/C++ is usefull only in histotrical view point or for understanding old codes. Please never write new codes in C/C++. Rust claimed to eradicate painfull debugging hell, and it seemed successfull. Alas however, it's hurting and painfull to code in the first place. You don't 'borrow' all the time when coding, boy. You have Zig instead, faster and safer than Rust, simpler than C, versatile than C++. I was looking for a better language, and Go language is seemed to be the language with simplicity focused. Rust is simply too picky. At first sight, Zig became immediately 'the' language. I bet, Zig would be dominating in the low level efficiency demanding area, over Rust/C++.
@AlFredo-sx2yy
@AlFredo-sx2yy Жыл бұрын
learning c and c++ is only useful to understand historical points of view??? what?? then are you suggesting the whole graphics programming, embedded and videogame industries along with the medical technologies industry should no longer exist, they should just stop producing code altogether? Its cool to try implementing new languages in a certain field, but there are most certainly fields where C and C++ are used and will forever keep getting used no matter how many years pass, not because they are super duper cool and influential languages, but because they allow low level access. This is like saying that learning assembly makes no sense because its a thing of the past... everything runs in machine code internally, and if you work in embedded you will have to deal with assembly and at the very most you will be able to afford using C, C++ or rust if there is a compiler for the architecture you're working for, but nothing that doesnt allow you to have full control over the system. Like, what world do you live in where Zig can fully replace every single language in existence and that C and C++ are only worth it for historical reasons? Just imagine trying to move all the already existing code bases to a new language. Even if that could be done as easily as pressing a button, why would you do such a thing? You have to think that sometimes there is nothing to be gained from making a change.
@josephlagrange9531
@josephlagrange9531 Жыл бұрын
@@AlFredo-sx2yy Al Fredo, what are you langs of choice these days?
@josephlagrange9531
@josephlagrange9531 Жыл бұрын
Whats your experience in C++, dude?
@miguelborges7913
@miguelborges7913 Жыл бұрын
Zig isn't safer than Rust. I like more Zig than Rust. However, Zig isn't safer than Rust.
@josephlagrange9531
@josephlagrange9531 Жыл бұрын
@@miguelborges7913 Whats wrong with Rust dude?
@mirshodoripov1035
@mirshodoripov1035 Жыл бұрын
C++ is not worth to learn
@bucztechph
@bucztechph Жыл бұрын
Ive been learning it for 6 months, it's fun but hard af.
@rreece90
@rreece90 Жыл бұрын
Once I got comfortable with it, I am happy I learned it. It gives you a much better understanding of how high level languages really make things work under the hood. I feel like I can quickly learn to code in any other language now. Also, C++ applications are super fast. It took over 10 years though... (Found a job as C++ dev within the first ~2 years) So if it's worth it is a very personal choice.
@theintjengineer
@theintjengineer Жыл бұрын
Not worth it? Huh, another one that couldn't make into the realm.
@josephlagrange9531
@josephlagrange9531 Жыл бұрын
@@rreece90 Any experience with Rust, dude. Your opinion for its design?
7 ай бұрын
Of-course it is. Only someone who is not a dev would say that.
@01MeuCanal
@01MeuCanal 11 ай бұрын
C++ will probably continue doing what its doing right now, and Mojo will probably kill Rust, Java and Python.
@kevinmcfarlane2752
@kevinmcfarlane2752 10 ай бұрын
None of them will be killed. At worst they’ll become more specialised. Mojo will likely dominate the AI space but in combination with Python. But it won’t replace typical systems programming uses for C/C++ and Rust or for gaming say.
@01MeuCanal
@01MeuCanal 10 ай бұрын
@@kevinmcfarlane2752 If Moje have the performance, why do you think it wont replace other languages?
Why i think C++ is better than rust
32:48
ThePrimeTime
Рет қаралды 261 М.
Learning C++? Avoid these Beginner Mistakes...
13:47
Caleb Curry
Рет қаралды 5 М.
ОДИН ДОМА #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Monster dropped gummy bear 👻🤣 #shorts
00:45
Yoeslan
Рет қаралды 13 МЛН
The World's Fastest Cleaners
00:35
MrBeast
Рет қаралды 141 МЛН
My "as few deps as possible" monorepo setup
4:03
Matt Pocock
Рет қаралды 7 М.
Should you learn C++ in 2023?
7:27
Stefan Mischook
Рет қаралды 45 М.
Why do developers hate Rust?
8:20
Let's Get Rusty
Рет қаралды 88 М.
Python Tutorial 30: Dictionaries And While Loops
6:25
Hank The Tank
Рет қаралды 4,1 М.
Антон Полухин - Незаменимый С++
53:03
C++ User Group
Рет қаралды 38 М.
Should Rust be your first programming language?
7:37
Let's Get Rusty
Рет қаралды 22 М.
unlock the lowest levels of coding
7:05
Low Level Learning
Рет қаралды 216 М.
Why Rust is bad, actually*
11:53
UWCS - University of Warwick Computing Society
Рет қаралды 41 М.
why are switch statements so HECKIN fast?
11:03
Low Level Learning
Рет қаралды 361 М.
Moving from C to Rust for embedded software development
10:06
The Rusty Bits
Рет қаралды 75 М.
Вы поможете украсть ваш iPhone
0:56
Romancev768
Рет қаралды 595 М.
Wow AirPods
0:17
ARGEN
Рет қаралды 532 М.
Пленка или защитное стекло: что лучше?
0:52
Слава 100пудово!
Рет қаралды 1,8 МЛН