News for hackers. Stuff that matters.
Re:Please do not attempt to simplify this code by lgunsch on Saturday December 29, 2018 @01:02AM (#18782174)
If every condition is important to the business, as is implied in this case, it would be very valuable to have tests to cover them.
Re:Please do not attempt to simplify this code by lmm on Saturday December 29, 2018 @04:14AM (#18782772)
The business wants to know all conditions are handled appropriately, to a certain level of confidence. Tests are one way of achieving this but by no means the only way.