Из книшки дядюшки Боба
Mar. 21st, 2015 09:34 pmFlag arguments are ugly. Passing a boolean into a function is a truly terrible practice. It immediately complicates the signature of the method, loudly proclaiming that this function does more than one thing. It does one thing if the flag is true and another if the flag is false!
Posted via m.livejournal.com.