r/rust • • 2d ago

My experience learning Rust ended up affecting my mental health, and I want to talk about it.

However, my experience ended up being extremely negative, and eventually led me to what I believe was burnout.

I became extremely frustrated with concepts like ownership and the borrow checker. I started comparing myself to other programmers and feeling like I had to understand everything as quickly as possible.

Eventually, I started experiencing burnout.

I began hitting my own belongings really hard whenever I felt frustrated (fortunately, nothing broke). I also started studying excessively, pushing myself far beyond my limits, even when I desperately wanted to rest or sleep.

I felt like I couldn't allow myself to stop studying, even when I was exhausted.

Eventually, programming stopped being something I enjoyed and became a source of stress and pressure.

Something that made the experience even harder was seeing how popular Rust was becoming and feeling like I HAD to learn it to avoid falling behind in systems programming.

I want to clarify that this isn't an attack on Rust or its community. I understand why people love the language, and I recognize its technical strengths.

But I genuinely don't enjoy learning it, and I'm considering focusing on C++ instead.

Has anyone else experienced burnout while learning a programming language? How did you deal with it?

I'd appreciate hearing your experiences. I also hope this serves as a reminder that it's okay to take breaks, respect your limits, and prioritize your well-being.

No programming language is worth sacrificing your mental health over.

0 Upvotes

25 comments sorted by

55

u/redisburning 2d ago

But I genuinely don't enjoy learning it, and I'm considering focusing on C++ instead.

I want to first state I don't mean this to detract from your overall statement, because it isn't like that, but I don't think Rust is the problem here.

If you truly believe in your heart, and you know yourself well enough, that Rust is uniquely causing you anguish, by all means bail. But more likely is that you will end up doing the same thing with any other language.

My honest recommendation to you is to set time limits. They make apps for that. There is no need to feel ashamed we all do what we have to do to get through the day.

6

u/ern0plus4 2d ago

Anyway, it will click after a while. Try to see the big picture: why the heck we need these tortures?

-16

u/DataPastor 2d ago

“I don’t think <…> is the problem here” + “If you truly believe in your heart”

=> Using religious language is justified in this case. Rust is a religion (Cargo Cult), so only a person can be wrong about it but never Rust. Amen.

6

u/redisburning 1d ago

Jesse, What the Fuck Are You Talking About?

22

u/creeper6530 2d ago edited 2d ago

I don't get the feeling that this is caused by Rust specifically. Burnout sucks, but it happens to everyone. You just pushed yourself too hard.

Something that made the experience even harder was seeing how popular Rust was becoming and feeling like I HAD to learn it to avoid falling behind in systems programming.

That's FOMO. Fear of missing out. It can save your ass sometimes but I'd say most of the time one's own brain overblows it out of proportion.

And modern "tech society" is full of hypetrains to lose sleep over, so a healthy dose of "fuck-it-ism" is due to keep one's sanity

11

u/gahooa 2d ago

If this is your experience with rust, C++ will not be better.

I've had days where I almost tossed my laptop out the window, when I was pushing so hard and the last thing I did was `git reset --hard HEAD` because the whole premise was wrong. But it's not good to act on such urges, so I never lost my laptop that way (I did lose it in a checkpoint in an airport in Manila once only to have it retuned to me from Alaska, but that's another matter)

Patience is a virtue.

Personal advice: look back at times that you have allowed the frustration to boil over. Are you happy with those times or how it made you feel afterwards? When confronted with a similar situation, step away, take a deep breath, remember all things good, and don't let it get to you so much.

Have you considered woodworking? Personally, I like to balance my programming with excavating. But not everyone has an excavator...

Are you using an LLM to help explain it to you? If not, why not? I don't mean writing your code for you, but for example, asking about concepts with your specific code examples? It's an incredibly valuable resource to use for learning.

Rust will take care of you better than any other language, allow you to refactor your code endlessly, and massively reduce the number of mind-bending bugs you get in complicated systems.

9

u/Maui-The-Magificent 2d ago

It is important to give yourself time, and to fail.

We all learn things differently, some things that will be easy for you might have been hard for me, vice versa.
You can't enjoy learning things if success is the only metric you use to derive it.

7

u/Usual-Cricket-9817 2d ago

C++ is known to be quite challenging..

6

u/Puzzled-Extent7817 2d ago

C++ will be worse for you

6

u/jonnyman9 2d ago

I’d zoom out a bit more, this is not a Rust thing and is not a software development thing.

Life is hard. But if something is not hard, then it is probably not worth doing. Look inward and ask yourself who the type of person you want to be and how you deal with adversity. Hitting things when you’re frustrated honestly means you probably have more important things to work on than learning how the borrow checker works. Beyond the anger issues, learning to learn is in itself a tough skill to learn and I’d suggest starting there before tackling Rust. Best of luck in all your future endeavors and adventures.

5

u/seg_lol 2d ago

I felt like I couldn't allow myself to stop studying, even when I was exhausted.

This only harms you and your goals. You need to address this before you can learn something, otherwise learning is impossible.

4

u/DrShocker 2d ago

Yeah some languages click or don't click with different people. If you know a few other languages then picking up more typically becomes easier, but especially if it's your first language it's super helpful to have one you can see results you find interesting in it quickly.

I do think though if you're getting burned out or losing sleep, then it's worth evaluating your strategy. Sleep for example is critical to actually learning things. It might be possible to cram for an exam by skipping sleep, but for most people the tests they do that for aren't where they feel they have the strongest knowledge base in the future.

Anyway, my personal advice is actually to not focus on the language. For many languages that's an unachievable goal, especially languages like Rust or C++. No one masters every single aspect. I would choose a particular project you're interested in doing or being able to do, and work towards that. Set goals that are specific and measurable and incremental and try to achieve them over time.

From your post, there's not much to suggest what's within reach for you but just know that the project could be anything and in any language. Even if you end up following some tutorials to learn parts, you can expand on them. At work once we had to learn a language and did it by showing us how to make an analog clock. To make sure I understood it, I expanded the project to keep the second hand still and rotated the other hands and clockface around that. So, that's just an example where not every projeoct idea needs to be super serious.

4

u/alex_ch_2018 2d ago

As a side note: ownership, borrow checkers and lifetimes "click" better and quicker if you have real experience with hunting memory leaks / corruption in big C/C++ projects.

4

u/Zde-G 2d ago

Has anyone else experienced burnout while learning a programming language?

Of course. It's normal and has nothing to do with Rust, that's just how human psyche works.

How did you deal with it?

I wouldn't recommend drinking, even it's popular “solution”. Go hiking, or kiting or swimming… whatever you do when faced with a frustrating issue.

Honestly, I'm surprised that you managed to reach the state of “programming stopped being something I enjoyed and became a source of stress and pressure” without passing through that stage… if anything I suspect you are more talented than most because normally people pass through that stage before they ever reach the ability to program in any language. Often many times.

7

u/edfloreshz 2d ago

My experience was completely opposite, I spent a lot of time during the pandemic learning Rust, it took me months because I took it very slow, I read and reread parts of the book until I understood them completely, no pressure whatsoever, eventually I stated building things and things started to click.

I don’t think learning is your problem, the way you go about it is, learning is not supposed to make you feel that way.

2

u/pr06lefs 1d ago

If you want to be into systems programming, you are going to have to deal with complexity and difficulty. Part of that is being emotionally ready for setbacks and obstacles of all sorts.

  • bad documentation or none
  • community assumptions of knowledge that you may not have
  • unhelpful or even adversarial community members
  • non obvious problems with non obvious symptoms

And more.

What makes things even more difficult is imposing some artificial deadlines on yourself, thinking you should have mastered some skill already, that everyone else already knows everything and you don't, etc.

Learn to be methodical and dispassionate, try not to take difficulties as a personal indictment, and try to enjoy the process of investigation and learning even if it doesn't proceed as quickly as you'd like.

2

u/snaketacular 1d ago

I cannot stress enough how not getting enough sleep f*cks everything up, no matter what it is that you're doing.  It's like wearing crap-tinted glasses.  And it can lead to a vicious cycle because you feel like you have to make up for yesterday's lack of progress so you forego sleep ...

Forget rust.  Just break out of that cycle man.

2

u/InternationalFee3911 1d ago

Relaxing is not as hard as many people fear! Beyond hikes etc. that others suggested, controlled breathing is tremendous and fast. Let out a profound sigh! Then in through the nose until your lungs are really full (belly out.) Surprise yourself that another quick inhale is still possible. Hold it if you can, then exhale s-l-o-w-l-y and completely. Hold again, if you can and start over a few times.

5

u/ern0plus4 2d ago

Programmers must be humble and have solid ass.

Humble: I was 50+ when I met Rust, and after some strugling with borrow checker I've realised that I know nothing about programming, despite 35yoe.

Solid ass: watched a dozens of videos, started a pet project in Rust, read lot of code, endless talking with AI about smart pointers.

And I'm still a junior Rust dev. 

Also you have to be a really good programmer, who knows how the stuff works under the hood, and why this whole memory management thing is so important, and why Rust is a good answer, how other platforms solve the same problem, e.g. Java.

If you don't understand Rust (or Java's GC concept or how async works etc.), you should simply learn it. Probably, you'll don't use it or like it (my relationship with async is... difficult), but worth know it.

0

u/seg_lol 2d ago

There is so much wrong with async, I believe it was a hit on the Rust ecosystem that it accidentally survived.

Most things don't need async, os threads are fine for 99% of our use cases.

4

u/ern0plus4 2d ago

I got the point of async. It' s with us for long time.

On JS, there was callback hell, then Promise hell, then it got automatized via language elements.

What I don't like about it is that a simple .await hides too many stuff: a complete state machine and a thread pool.

What I like is that it "turns back" the "syntax": most programs are in idle by default, and doing some quick task when a message/signal arrives - the async somehow hides this, and the program looks if it was not reactive.

The worst part that most programmers have no glue how async works. (Okay, there are many other things they don't know, I've met a game programmer, who did not know about memory at all.)

As I said, my relation with async is difficult.

1

u/Zde-G 1d ago

On JS, there was callback hell, then Promise hell, then it got automatized via language elements.

Yes. And the whole thing happened because JS is heavily network-centric yet have no threads.

Rust does have thread, it's entirely different kettle of fish.