|
|
|
|
|
by danielvf
3693 days ago
|
|
1. If you are developing for the ESP8266, your current choices are C, Lua, and Arduino. So you are pretty much using C by default. 2. The automotive industry has a standard for safety critical C code. It's called MISRA C. A few of the rules are stupid, but others will save you worlds of issues. You have to buy the PDF from the committee's website for about 15 bucks, but it's worth reading and mostly following. 3. If you are actually writing medical or flight control software, you cannot depend on a single proccesor or computer. Perfect software is not enough. Airliners have three separate computers, each containing three different processor architecture processors, each processor running code compiled on a different compiler, and all checking each others work. SpaceX runs at least five separate embedded linux computers for any critical systems. These communicate in such a way that they can tolerate even malicious actions by any two computers. Google "byzantine fault tolarance" |
|
The issue I have with it is that some people seem to be refusing using their brain when following rules. For exampe, MISRA static checkers compain if you do:
So I've seen people do: And it drives me insane that people see some rules but don't actually understand what they're for and just skirt around it in the stupidest way possible.