Follow

What would be the best way to learn C/C++ from a self taught perspective? I’ve been fascinated with learning about microcontrollers and the things they can do.

@Psyklone I did it by first reading K&R and doing the exercises and then wrote the tool I always wanted. An approach I'd wholeheartedly recommend. C++ I decided to skip in favor of Rust :)

@xand What exactly is K&R? I really like your approach and that’s probably what would be my best bet to fully grasp the concepts. I’ve been seeing people lean more towards Rust over C++ too and from I’ve read, they accomplish the same things.

@Psyklone oh, it's the classic book on c: goodreads.com/book/show/515601 probably best if you already have some programming experience, but i wouldn't recommend c at all without that

@xand the extent of my programming knowledge is a little bit of JavaScript and Python. I’d still consider myself a beginner but efficient enough to at least look at code and slightly understand what it’s doing and why. Thank you for the recommendation though, I’ll be sure to check it out!

@Psyklone Arduino dev environment is C++, although it's been simplified as far as build environment. Given your interest in microcontrollers, sounds like a good place to start.

@ambihelical Yea I saw it has its own language that’s a bit easier to grasp but you can use C++ as well. After doing some reading, I was thinking of just going with Rust instead but picking up both would make me more well rounded

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.