4 ms·
What about implementing something that works for your environment and making it fail-fast so that any unexpected input will just abort+log the current operation
by t0astbread 6y ago
What about implementing something that works for your environment and making it fail-fast so that any unexpected input will just abort+log the current operation? You could then expand on that on-demand.
- Brian_K_White 6y agoThis assumes you can recognize unexpected input.
- t0astbread 6y agoI assume unexpected input results in either an error (or exception, whatever your language calls it), a crash or a user complaint. I also assume it's unlikely for an input parser to introduce a security issue into your app if it's written in a safe language and your app has proper validation set up (i.e. don't trust input as soon as it passes the parser).