this post was submitted on 29 Aug 2024
905 points (97.7% liked)

Programmer Humor

32042 readers
1375 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] AnnaFrankfurter@lemmy.ml -2 points 2 weeks ago (3 children)
[–] leo85811nardo@lemmy.world 5 points 2 weeks ago (2 children)

What's wrong with embedded C? Would you rather write assembly?

[–] AnnaFrankfurter@lemmy.ml 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Hey assembly is good in the sense you are only dealing with one language but in embedded C you get bad parts of both C and assembly. You have to follow weird C99 or even C89 syntax and on top of that for each micro controllers you have to sift through several hundred pages of data sheet. Each one needing separate registers to be setup in a particular way for every single operation and so much more stupid ass shit.

[–] leo85811nardo@lemmy.world 2 points 2 weeks ago* (last edited 2 weeks ago)

All of the quirks you said are true, yet they still established the "okay" ecosystem of hobby-grade microcontrollers like Arduino, IoT devices, and other small scale robotics systems. None of them would have happened without the "okay" abstraction C/C++ provides as opposed to assembler