Skip to content
Prev 39214 / 63421 Next

Request: Suggestions for "good teaching" packages, esp. with C code

On 2/15/11 4:35 PM, "Gabor Grothendieck" <ggrothendieck at gmail.com> wrote:

            
I disagree, it can be extremely useful to exit early from a function.  It
can also make the code much more clear by not having 95% of the body in a
huge else{} block.
For someone else reading your code, they wouldn't know that you always do
this unless they're very familiar with your coding style.  Even then, it
needs to be manually checked by inspection because nobody sticks with the
"rule" 100% of the time, so it renders the benefit moot.

--
Ken Williams
Senior Research Scientist
Thomson Reuters
Phone: 651-848-7712
ken.williams at thomsonreuters.com
http://labs.thomsonreuters.com

Thread (20 messages)

Paul Johnson Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Hadley Wickham Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Jeff Ryan Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Gabor Grothendieck Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Sébastien Bihorel Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 David Scott Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Geoff Jentry Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Kevin Wright Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Geoff Jentry Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Jeff Ryan Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Gabor Grothendieck Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Ken.Williams at thomsonreuters.com Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 David Scott Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Gabor Grothendieck Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Duncan Murdoch Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Ted Request: Suggestions for "good teaching" packages, esp. with C code Feb 15 Martin Becker Request: Suggestions for "good teaching" packages, esp. with C code Feb 16 Duncan Murdoch Request: Suggestions for "good teaching" packages, esp. with C code Feb 16 Luke Tierney Request: Suggestions for "good teaching" packages, esp. with C code Feb 16 Martin Becker Request: Suggestions for "good teaching" packages, esp. with C code Feb 16