this post was submitted on 08 Feb 2026
7 points (100.0% liked)

Learn Programming

2076 readers
12 users here now

Posting Etiquette

  1. Ask the main part of your question in the title. This should be concise but informative.

  2. Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.

  3. Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.

  4. Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
 

I feel this post had pretty good answers in the replies, and figured it's a post people learning programming might want to see.

all 4 comments
sorted by: hot top controversial new old
[–] nous@programming.dev 5 points 15 hours ago

Someone once told me somewhere, that if I am trying to learn rust, I should learn C first, so that I know how to shoot myself in the foot, learning to avoid doing so

This is stupid advice. If you want to learn rust then learn rust.

So thats what I did (somewhat) for the past 6 months. I wrote some stuff in C

In that time you are no closer to learning rust. If you started with rust you would know it by now. Rust is not harder to learn then C. If anything C is harder to learn as it's compiler doesn't guide you at all.

You don't need to learn C to appreciate the borrow checker. I find beginners just accept whatever they are first taught. It is only really those that come from C the put up a bigger fight when learning rust.

And 6 months in a language without a borrow checker is not really long enough to learn the reasons why a borrow checker is useful. Not without a good guide that focuses on that. Which most c books don't. The best way to learn it is with rust that actually tells you when you mess up.

[–] trevor@lemmy.blahaj.zone 5 points 16 hours ago* (last edited 16 hours ago) (1 children)

The fact that people treat Rust like it's very difficult is odd to me. I write Rust because C was too hard. Lol.

I tried to learn C, but once the learning materials got into double pointers and void pointers, I stopped being able to follow it. So I went back to Rust and after about a month of practice, I no longer struggle with the borrow checking rules (usually the hardest thing for people new to Rust) and it just keeps getting easier over time.

If you know C, you're probably more than well prepared for Rust.

[–] 6nk06@sh.itjust.works 4 points 17 hours ago

if I am trying to learn rust, I should learn C first

Bullshit. I learned C++ instead of C and I don't regret it. One step further and you should learn assembly, or the electronics powering the computer. Learn whatever you want.