Re:Using a Time-Of-Flight LIDAR Sensor
by LeifCarrotson on Friday December 09, 2016 @01:11AM
(#13137024)
> The table oriented code makes it clear to the reader that no such subtle edge cases exist,
As an occasional embedded systems programmer, initialization code without subtle edge cases only exists in artificial examples like this one.
Interestingly, I'd argue this is actually a great argument for brittleness in this case. The table oriented code makes it clear to the reader that no such subtle edge cases exist, improving the readability of the code.
Although a local macro or better error handling system would also make such things a bit clearer too.