this post was submitted on 29 Aug 2024
903 points (97.8% liked)

Programmer Humor

32710 readers
415 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
[–] leo85811nardo 5 points 3 months ago (1 children)

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

[–] [email protected] 1 points 3 months ago* (last edited 3 months 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 2 points 3 months ago* (last edited 3 months 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