Untitled.Bat |
Developer, dad & dangerously dopey.....Also awesome at alliteration and assonance . Visit my main website @ http://www.xerxesb.com if you're tech-inclined |
F1: Too Many Arguments - Functions should have small number of arguments. No argument is best, followed by one, two and three. More than 3 should be avoided with prejudice and is very questionable
F2: Output Arguments - Output args are counterintuitive. Readers expect arguments to be inputs not outputs.
F3: Flag Arguments - Boolean arguments loudly declare that the function does more than one thing. They are confusing and should be eliminated
F4: Dead Function - Methods that are never called should be discarded. Keeping dead code is wasteful.
Clean Code: Chapter 17