|
|
|
|
|
by someweirdperson
1267 days ago
|
|
> Some examples I've seen in code You are not reading it correctly. It is not code as everyone knows it. It's like an electrical circuit with variable names attached to each conductor, and the code propagates information like electricity would. There's tools dedicated to this, able to draw pictures of such code circuits (e.g. Simulink, Ascet). And such pictures can be automatically translated into c-code, that looks even worse than anything translated manually. In the end, of course the tests prove that the code works like the picture of the circuit shows, and therefore the car must work correctly! This avoids the need for anyone working on only the code to understand a car. In reality, things usually work in the end only because of how simple everything is and high number of iterations. |
|
I’m talking about human written code, meant to be read, maintained, debugged and tested by other humans.