Subroutines are one of those programming constructs that predate computers themselves; the Wikipedia dates their usage back to Ptolemy's time. They live by many different names -- functions, procedures, named-squiggly-brace-blocks, etc -- and exist for two primary reasons: to allow for code reusability (not the copy-n-paste type) and to break down and simplify long and complex code. Bas ter Brugge came across a series of functions that not only fail to accomplish those goals, but actually manage to be longer to type out than the code they contain ...
public void setOptBlnToFalse() { iOptBln = false; } public void setOptBlnToTrue() { iOptBln = true; } /* ED: ... */
[Advertisement]
BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!