UPDATED GUIDE: Deciphering Strange Arduino Code
This is a guide about weird code. Not necessarily bad code, but weird.
It explains a few lesser-seen elements of C syntax. “The Arduino language” is really C++, which is basically C with added flavor crystals. C was developed back in the early 1970s and has become one of the most widely-used programming languages. With such a long and diverse history, you’re bound to find some odd creatures under the floorboards.
There are a couple of reasons this might be of interest:
To expand one’s own C (and C++, and thus Arduino) programming knowledge; maybe there’s valuable tips here to use.
To write code that’s friendlier to newcomers; maybe these are things to avoid. If it confused you, it may confuse others, and that’s not ideal for teaching!