← Home ← Back to /g/

Thread 106920823

25 posts 6 images /g/
Anonymous No.106920823 [Report] >>106920834 >>106920845 >>106921004 >>106921172 >>106921224 >>106921367 >>106921444 >>106923332 >>106923364 >>106923614 >>106923710 >>106923721 >>106925532 >>106926776
Is It Easier To Learn Rust If You Learn C++ First?
I want to learn rust. Should I learn C/C++ first before diving into Rust?
Anonymous No.106920834 [Report]
>>106920823 (OP)
Just learn Go or C. C++ and Rust are hot garbage
Anonymous No.106920845 [Report]
>>106920823 (OP)
>C/C++
These are separate languages.
Anonymous No.106921004 [Report] >>106921749
>>106920823 (OP)
Wake up, faggots
Wale up and smell the ashes.
Anonymous No.106921172 [Report] >>106921209 >>106921224
>>106920823 (OP)
I would recommend Go for "current year". I found C++ stifling and outdated, with inbuilt tools centered around making silly 90s tier applications like desktop clocks that nobody cares about. I really enjoyed the language but when it came to "okay now I'll make something" a blank void washes over you. "Just make de-bloated versions of existing programs!" is the general advice of what to make with C++, so you're making redundant tools that will suck compared to the real deal because you aren't going to maintain them as a full time job. Likely you will make something, it's stable, it does what you need, and just sits there unchanged for years as a result until you need a new feature.

I learned how much of a relic C++ is when I discovered that your options for actually having a cool windowed application people can use are limited to Qt or GTK. I thought there'd be insane amounts of GUI tools and there aren't, because it's ancient. I think back in the day there was VisualBasic or something. Otherwise people had to code their own windows etc, which they did because they were working in large teams of people where someone would be focused solely on producing that.

Rust is a good and modern language which is also packaged with things that actually matter for anything you will actually want to do. Not just making alarm clocks or weather app slop, but moreso interacting with the web, filesystems, etc. I would recommend Rust also, but for a solo dev, Go has an almost INSTANT build time, so if something goes wrong you can litter Printf throughout the failed function and find within seconds exactly what is wrong. Faster than AI or tracing through each function etc. and easier to come back to after a long time away.
Anonymous No.106921209 [Report]
>>106921172
Disregard(ish), this thread wasn't about what I thought it was.

Learning ANY language makes learning another one easier. I learned C++ first, arguably this is why? But I doubt it. There's just a lot of similarity between coding in general. At the end of the day it's all if, else, if, else, return.
Anonymous No.106921224 [Report] >>106921359
>>106921172
Go is a terrible language that Rob Pike literally said is for retards:

> The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.

>>106920823 (OP)
Rust is overrated but you should learn it and form your own conclusion instead of letting /g/ spoonfeed you. Rust will be easier to understand if you learn move semantics in C++, because its the same concept in Rust.
Anonymous No.106921335 [Report]
No reason to go learn c++ to learn rust. If you want to learn rust then learn rust. The ideas behind most things in either language can be transferred well enough.
It is a boon to know c++ first simply because there are overlapping concepts, but if you don't know any of those concepts then why learn it in a language you don't plan to learn?
Anonymous No.106921359 [Report]
>>106921224
Of course he would, his "special interest" is programming. Go is dull and clinical by design, it won't excite someone who is interested in code for the sake of code. It's utilitarian and exists to facilitate the production and maintenance of useful software. It's for people who are excited about software and their inventions being realized where the code is a means to that end.

What it does is produce high quality software that is very easy to make, leave for a year, then open a year later and make edits to. Anyone can join your project as a maintainer because if you largely follow idiomatic practices, it is easy and fast to understand.

I made my own version of Sonarr for YouTube, Rumble channels etc. it is pretty feature rich. I did not need to change it in a year. Then I wanted to edit it to add several channel URLs to a single channel, and add custom output folder rules per channel, or for metadata matches etc. this was accomplished within a few hours. I compiled it and now I won't have to touch it again for ages again.
Anonymous No.106921367 [Report]
>>106920823 (OP)
there is no such a thing as C/C++. you should learn that first.
as for your question, C++ fucks your brain, and it fucks it with mostly useless nonsense. however, learning C before Rust is very very very strongly recommended.
Anonymous No.106921444 [Report]
>>106920823 (OP)
>this or that
just make your own language. i'd suggest avoiding actual words that might offend and just use sequences of spaces and control characters to denote functions and operations. it's all about caring
Anonymous No.106921749 [Report]
>>106921004
garbage collection is gay.
Anonymous No.106921754 [Report] >>106921798 >>106923414 >>106923810
C++ is basically like having access to the entire mechanics toolbox of specialist tools and everything else. You have 10 different wrenches of the same size that do the same thing. You're free to pick up the compression tester and shove it up your asshole, all yours!

Rust is taking that toolbox, stripping it down and then having a big fat ugly bdsm daddy who will let you pick any tool for the job initially, but you'll quickly learn that if you don't do things his way he's going to fuck you in the ass. Eventually you learn how to do it like how Daddy likes. This is why trannies like it. You give up control and freedom and trannies love that.

So, c++ gives you multiple tools to fuck yourself in the ass while rust gives you a daddy to fuck you in the ass.
Anonymous No.106921798 [Report]
>>106921754
are you russian?
Anonymous No.106923332 [Report]
>>106920823 (OP)
Rust is a forced marketing shill language, there are no jobs for it and the only people using it are being paid by Microsoft to sabotage open source.
Anonymous No.106923364 [Report]
>>106920823 (OP)
No. Learn Rust directly. You're not going to learn Rust faster because you know C or C++.
Anonymous No.106923414 [Report] >>106923470
>>106921754
I strongly prefer C++ and I also prefer daddies fucking me in the ass.
Anonymous No.106923470 [Report]
>>106923414
Nobody said it's mutually exclusive. Either way you're getting your ass fucked.
Anonymous No.106923614 [Report]
>>106920823 (OP)
They're both programming. There is one skill that C++ teaches you, but Rust doesn't require that skill. That skill is interfacing with an API that expects the caller to enforce its invariants.
Rust doesn't expect anything of you. Everything that you do is legal.
C++ does expect things from you. Don't read from uninitialised storage. Don't violate standard library parameter constraints. Don't use iterators after they have been invalidated. Don't create two references to the same storage location with incompatible types. Don't potentially execute a code path that does not cause forward progress. Don't let one thread store to a variable and another access it, unless both operations are atomic, or one access happen before the other (except in signal handlers where special behaviour applies). If you violate the protocol, you get your leg blown off.
[spoiler]Unless it's unsafe Rust, of course. Unsafe Rust does expect you to enforce its invariants. But if you learn unsafe Rust, you WILL get death threats on Reddit.[/spoiler]
Anonymous No.106923710 [Report]
>>106920823 (OP)
It might be useful to learn C before using Rust. There is no reason to learn C++.
Both languages use C as a base, but they differ in how they expand it. C++ inspired by Java went OOP route and Rust inspired by Ocaml went FP route.
Rust is a difficult language that has very steep learning curve. Having previous C and/or FP knowledge might ease the process, but it's also not unimaginable to start from Rust if you are smart enough. There surely is many resources to support you on your way.
Anonymous No.106923721 [Report]
>>106920823 (OP)
No, just learn Rust first. Learning anything else first will probably teach you bad habits for Rust which is why you see people complain about its difficulty.
Anonymous No.106923810 [Report] >>106924045
>>106921754
>cnile
>sexual fetish analogy
Every single time.
Anonymous No.106924045 [Report]
>>106923810
>Oh yes daddy cargo sama, I've been a BAD girl and wrote unsafe code, next time I'll do it daddy's way, please don't punish me hehe
Anonymous No.106925532 [Report]
>>106920823 (OP)
it is always easier to learn any language after learning another, whether you should depends on what you need the language for. This also applies to human language.
Anonymous No.106926776 [Report]
>>106920823 (OP)
Just start with Rust if that's what you want to learn. If it isn't it isn't.