3 ms·
RAII type things are part of it. The rest is simply making sure all the constraints are met. The fewer operational constraints, the better. For text I/O parsin
by ArkyBeagle 11y ago
RAII type things are part of it. The rest is simply making sure all the constraints are met. The fewer operational constraints, the better.
For text I/O parsing, just be semi formal about it at least. Check your indices, be careful of integer overflow and be judicious in the use of floating point. Use block I/O instead of the finer-grained things in stdio.h .
Have instrumentation built in that you can enable to capture test vectors ( if you have the resources ). Error counters can tell you a lot.
the mechanism of choice for managing complexity tends towards state machines and sometimes message passing.
That's a start.