4 ms·
Do you have some example? I can't really picture the series of constraints that you mentioned...
by blub 11y ago
Do you have some example? I can't really picture the series of constraints that you mentioned...
- lfowles 11y agoProbably manual RAII. That seems to be where most stable C codebases end up, with a simple object model.
- ArkyBeagle 11y agoRAII 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.