3 ms·
You have more than one return statement! Go change that. Yep, that's one of the 38 reasons for my original rejection. Violations of "single entry/single exit"
by edw519 18y ago
You have more than one return statement! Go change that.
Yep, that's one of the 38 reasons for my original rejection. Violations of "single entry/single exit" were not promoted into production. I argued and lost. Now I'm glad I did.
- sofal 18y agoJust curious: Are you now a true believer in the "single exit always" doctrine (as well as whatever the other 37 rules were) or are you just saying that the benefits of enforcing discipline on the developers' output outweighed the disadvantages of having cargo-culted and dogmatic code standards?
- edw519 18y agoI became a true believer once I got past my personal prejudices and actually made an attempt to understand "why" some rules were the way they were. I wasn't as smart as I thought. Still not. Enforcing discipline for the sake of enforcing discipline? See military.