this post was submitted on 31 Aug 2025
317 points (96.5% liked)

Programmer Humor

26109 readers
1423 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Finally I have a valid reason to learn about memory management. It was also hella weird when encountering it.

you are viewing a single comment's thread
view the rest of the comments
[–] cows_are_underrated@feddit.org 12 points 2 days ago (2 children)

The reason I got recommended to learn C first is so that you are getting used to handling memory by yourself. Then you switch to rust and since you are used to handling memory your rust code is usually better quality.

Another reason I want to learn C is because I regularly have to work with Arduinos.

[–] anton@lemmy.blahaj.zone 3 points 2 days ago (1 children)

I can't comment whether learning C first improves your rust, but it certainly makes you appreciate what the rust compiler does.
Also learning rust improved my C.

[–] Decq@lemmy.world 6 points 1 day ago

I think it's a fair strategy. If they know what happens if you do it wrong people suddenly complain less about rust's borrow checker. Whereas people who are only used to garbage collected language don't usually have the slightest clue why it works the way it does.

[–] vala@lemmy.dbzer0.com 2 points 2 days ago (1 children)

FWIW you can use C++ on Arduino.

[–] cows_are_underrated@feddit.org 3 points 1 day ago (1 children)

Yeah, but I kinda dont want to learn/use C++

[–] henfredemars@infosec.pub 1 points 1 day ago

I don’t blame you. I have to use a professionally sometimes and I am not a fan. It’s an absolute behemoth of the language filled with warts and cruft.

Sometimes it is the best choice for a project, but I prefer languages with simple, orthogonal concepts.