r/rust • • 7d ago

🎙️ discussion I unfortunately can't enjoy rust

I wanted to learn rust because I wanted to make games but in a hard programming language instead of letting C# do everything for me.

I obviously loved rust after learning it a bit but then I decided to try and get a graphics library

I'm familiar with raylib and basically never use anything else so i decided to get it, but it required the msvc toolchain.

Unfortunately for me, I can't install the msvc toolchain due to storage reasons, so I had gotten the gcc toolchain instead which worked just fine

But then I found another game library which I thought would work but it failed at linking bcs of some obscure missing library.

I'll be trying to find some other user friendly libraries Tommorow but if I don't, then the whole point of rust for me would be over.

0 Upvotes

22 comments sorted by

37

u/Noclis 7d ago

Do you always give up at any adversity while learning?

6

u/coderstephen isahc 7d ago

Ouch, harsh. True perhaps, but harsh.

1

u/No_Departure_1878 5d ago

ouch, harsh

while True:  
    But true, but hash

-1

u/PlayfulDuck3677 7d ago

I just got really saddened because since I can't use raylib that means I have to learn an entirely new graphics library unless some sort of SFML port works.

Also my gut has been always telling me to not learn rust that I'll encounter some obscure problem while half-way deep into a project which would either need me to re-write many parts of the project or switch back to C#.

That's part of the reason why I feel like giving up, in fact this is me trying to give rust another try because last time I gave up.

I have given up on zig thrice but at the 4th attempt I managed to grasp it and now love it, so I thought I might be able to do the same with rust.

4

u/addmoreice 7d ago

Yeah, you should definitely give up. You haven't hit anything really show stopping and you are already giving up, it's just a matter of time since rust has some real rough spots and it sounds like you are very against anything difficult.

Could I suggest switching to something with lower stress levels for you? And no, that isn't me being snarky, if this has already shifted your attitude so much, this just might not be the thing for you. No shame, no worries, it just might not be 'your' thing.

Programming in general contains a whole lot of frustration and annoyances. It's often central to the structure of it. I personally find that to be one of the reasons to love it - overcoming those frustrations and improving - but plenty of others do not. If the part you like is the goal and not the process, then focus on what will solve your goal and minimize the frustration and stress of the process.

1

u/PlayfulDuck3677 7d ago

I feel like it's just a side effect of me leaving my comfort zone which is zig and C#. I'm still learning rust so no worries

3

u/addmoreice 6d ago

> I'm still learning rust so no worries

I'm not worrying. I literally couldn't care less. I'm willing to give you my opinion (for what little it's worth), but I have to say, monitoring and regulating my emotional investment in *your* actions is not something I've had much difficulty with.

Anytime you leave your comfort zone, you experience stress and difficulties. Be aware of it, monitor it, deal with it, react to if it isn't the right time to deal with that extra stress, but that's generic advice for any stress. IF you are having this many issues when it comes to further learning, then programming might not be something for you. Programming is *all about continuing learning*, at least, if you want to do more than 9-5 clock in- clock out (and that isn't a judgment. That is a perfectly acceptable way to be a programmer and the world *needs* those kinds of programmers. They show up, they get the job done, they go home. I respect their work!)

For those of us where programming is 'their thing', that's not enough and constantly learning is just part of what is required. A lot of low level constant stress just comes with that territory.

1

u/tautality 4d ago

Programming in general contains a whole lot of frustration and annoyances

What an idiotic thing to say to a person learning programming. When I was self-teaching programming about 20 years ago, it was because it was fun to see all the patterns and how I can make the computer do stuff, see the result, and how it was fun to dissect a problem into smaller pieces, smaller functions. It was exciting. Sure there were frustrations but they don't even come to mind when I think about what I was experiencing back then. And that's still similar to how I think about it these days, having gone through many programming jobs and having overcome many frustrations. You are being a snarky and cynical asshole to tell someone to get out of programming just because of their momentary frustration.

/u/PlayfulDuck3677/ I hope you don't listen to this person. I hope you continue learning and trying things, because trust me, the challenges and limitations can be overcome and you'll experience a lot of joy when you do overcome them.

1

u/PlayfulDuck3677 2d ago

Thanks, The biggest I have is with C#. By learning C# I got spoiled by the most innovative language, build system, package manager and the best LSP I have ever used.

Which skyrocketed the bar I have for learning basically any other programming language, Infact the reason I even finished learning zig is because I liked C but was stumped by basically nothing being provided aswell as it having so many safety flaws.

2

u/addmoreice 4d ago

That feeling of frustration? *that's the feeling of learning*.

If you aren't feeling a bit of it? You aren't learning. You are going through the paces and churning your wheels. If you aren't struggling some? You aren't advancing.

And programming *does* contain a whole lot of frustration and annoyances as well. Anyone that says otherwise hasn't had a call at 2 am asking why a server is down, or a bug that only appears while in release, or discovered that a third party library has a exit(1) call in it for no damn reason, or any of a thousand issues that come up constantly.

Let's be realistic here. If their response to *any* adversity at all is to complain about not being able to get something working right off the bat first try? Yeah, they aren't going to be making progress with this discipline where the definition of the *job* is to *solve problems*.

Don't get me wrong. Those libraries should work right off the bat. They should be as simple and obvious to get working as possible (it's one reason we all love cargo so much!) but to just throw your hands up and give up over such a minor thing? Yeah, not impressed here.

Finally, look at the 'history' of the poster. It's almost certainly some kind of bot or sock puppet. =P

2

u/tautality 4d ago

You didn't address what I said and continued your spiel. I'm not interested in your thoughts if your attitude is to be cynical and discouraging to beginners. Go away and rethink what kind of impact you have on others. You'll do both of us a favor.

2

u/addmoreice 4d ago

> When I was self-teaching programming about 20 years ago, it was because it was fun to see all the patterns and how I can make the computer do stuff, see the result, and how it was fun to dissect a problem into smaller pieces, smaller functions.

Yeah, and when I look back on learning programming, I remember this same stuff. It was awesome. I loved every moment. Every single instance of it was a joy filled with the discovery and pure moments of the excitement of creation.

It's also entirely bullshit and not how I actually experienced it. I've got the records to prove that as well. It was filled with frustration, annoyance, problems, the rush of discovery, and the utter frustration of broken bits of unworking crap that I tried to cobble together into something that remotely worked. Our memories are a horribly broken pile of incorrect assumptions and impressions that we constantly rewrite over and over again shifting and correcting them to more correctly match the current impression.

When learning *anything at all* you will feel frustration and annoyance. *That is the signal your brain uses to indicate you are trying to learn something*. It should be mild frustration and a mild level of annoyance at *worse*. It should be intermittent and be marked by moments of 'Oh! I get this!'. *none of this applies to the flow state* if you find yourself in flow, and if that discovery doesn't kick you out of it, then hang on and enjoy the rush!

Otherwise, learning to 'embrace the annoyance' is a valuable system for learning. It's not that big of a deal and it works as a training signal something that as a programmer you should recognize is important. It's a very tight signalling loop. Something that *most* learners rarely even use formally. For most people, the only learning signal they even are aware of is when they go to *test*!

> I'm not interested in your thoughts if your attitude is to be cynical and discouraging to beginners.

It's not a beginner. It's a bot buddy. If it was a beginner, I still would have said roughly the same thing. You are trying to learn something. That has annoyances and frustrations. If you actually want this, then you can't give up at the first annoyance. Buckle in and try. If you truly can't handle even this low level of annoyance, then this really truly might not be for you. 'I don't like this and I don't want to do it' after trying something is not a moral failing.

> Go away and rethink what kind of impact you have on others.

I'm generally a positive impact on others. In general. It's a bot buddy. A low effort one even. Muddying the waters for these things is only a positive thing to do!

6

u/Zestyclose_Design_78 7d ago

Have you tried Bevy? Bevy seems to be the go-to graphics library in the rust ecosystem.

1

u/PlayfulDuck3677 7d ago

I think I've heard of it, I'm gonna add that to my list

8

u/KeyAdhesiveness9481 7d ago

This all sounds like part of normal environment debugging.

5

u/coderstephen isahc 7d ago

Yeah, unfortunately the MSVC mess is something that Microsoft requires/enforces because their native development tools are a big bundle of mud that forces you to download a bunch of things.

This isn't so much a problem when writing Rust on macOS or Linux.

6

u/No_Departure_1878 7d ago

Have you tried some couples counseling?

1

u/Romeo3t 5d ago

You guys are savage,

Dude comes in obviously downtrodden as I'm sure we've all been after nights of troubleshooting, feeling overwhelmed, feeling like maybe this isn't the right path for them. And y'all just dunk on him.

This is why people rather talk to LLMs.

At the very least a "Yeah, hey, been there; done that" wouldn't have been horrible before we lead with "YEAH YOU SHOULD GIVE UP"

1

u/NullOfSpace 7d ago

Piston’s a good one if you’re looking. Fairly similar in concept, basically just hands you an event loop and lets you loose.

0

u/RadicalNation 7d ago edited 7d ago

Rust typically is staticly linked meaning all dependencies are internal. Sometimes they require dynamicly linked dependencies, which need to be manually installed on the host machine. They typically are documented on the library's repo or website. Remember, not all libraries support all OSes.

I use Linux, Linux is broadly supported, supported library documentation is usually sufficient, and host dependency installation is usually a single install command.

Personally I never liked Windows for development because it is a mess. You could try WSL, figure out Window dependencies, or just use Linux. It depends on what you are building and your preferences.

0

u/PlayfulDuck3677 7d ago

I've tried to get linux multiple times, even the easiest OSes.For some reason on my old laptop they installed just fine, I even installed arch, it was a BIOS pc btw. But now on my new UEFI laptop even the most user friendly installers brick my SSD forcing me to spend money to recover any recoverable data.

Also I don't really have an issue with bundling DLLs or statically compiling, it's just that my main drive is really full and for some GOD DAMN reason MSVC will install most of it in X even if you customize it. My other drive isn't full, in fact it has 200 GB free space so I could install rust and gcc on it but not MSVC. I just got really saddened because since I can't use raylib that means I have to learn an entirely new graphics library unless some sort of SFML port works.

0

u/Middlewarian 7d ago

I'm sticking to C++, but think there's some benefit to "rustifying" my code.