YH's Blog

Will be updated soon.
Google
 

Monday, July 31, 2006

 

Ha.......

Found something really funny in the book.

-----
Don't use recursion for factorials or Fibonacci numbers.
------
from Code Complete 17.2

In this paragraph, one sentence is really GOOD.
if a programmer who worked for me used recursion to compute a factorials, I'd hire someone else.

How may times I have seen the text books used recursion approach to calculate factorials . And to some extent, it has almost become a classic recursive approach.

Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

July 2006   August 2006   September 2006   October 2006   August 2007   November 2007   March 2008   April 2008   May 2008   October 2008  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]