News for hackers. Stuff that matters.
Re:Please do not attempt to simplify this code by lmm on Friday December 28, 2018 @05:12AM (#18775953)
Why? That's both more work and more error-prone than just using a language that will ensure it.
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.