Continuing from my previous post, I wanted to write about something that I have found to be a bugbear – the idea that functions or methods should have a single exit point.
But first, another quick reminiscence of my days programming mainframes with PL/I. There were no internet connections to the machine, data came in on tapes. Someone who wanted to get their own nefarious data onto our machine would have had to intercept a driver, get the relevant tape, take it to a conveniently located mainframe resource, load the data off the tape, insert their own data into the records, put it back onto tape, drive it to our office with a driver with an appropriate security pass… and so on. And I didn’t even mention knowledge of record formats or file validity checks and so on!