Re: Iteration for Factorials
- From: "Hendrik van Rooyen" <mail@xxxxxxxxxxxxxxx>
- Date: Tue, 23 Oct 2007 08:53:01 +0200
"Marco Mariani" <marc....arta.com> wrote:
I don't see how my answer is in any way worse than those based on
lambda. Maybe I'm just envious because when I was his age I couldn't
google for answers. He should at least be able to do that, shouldn't he?
But wait. That would mean understanding what a factorial is. That would
require a second search, or a textbook, or an understanding of
arithmetics before programming with or without recursion. Should we
blame the teachers?
Yes. And burn their cars to get their attention!
Asking someone to write a factorial algorithm before he knows WTF a
factorial "is", is either insane, or the ultimate demonstration of deliberate
lack of cooperation and coordination between departments.
I feel kind of strongly about this ever since, as a student, the physics people
expected me to use mathematics that I had not been taught yet...
;-)
I shall try to refrain from commenting on the concept of introducing
recursion into a first course in CS - I am too much tainted by my ability
to mentally "see" the stack growth in a small processor to be qualified
to comment.
- Hendrik
.
- Follow-Ups:
- Re: Iteration for Factorials
- From: cokofreedom
- Re: Iteration for Factorials
- References:
- Iteration for Factorials
- From: Py-Fun
- Re: Iteration for Factorials
- From: Diez B. Roggisch
- Re: Iteration for Factorials
- From: Py-Fun
- Re: Iteration for Factorials
- From: Marco Mariani
- Re: Iteration for Factorials
- From: Py-Fun
- Re: Iteration for Factorials
- From: Ant
- Re: Iteration for Factorials
- From: Marco Mariani
- Re: Iteration for Factorials
- From: Tim Golden
- Re: Iteration for Factorials
- From: Marco Mariani
- Iteration for Factorials
- Prev by Date: Re: ignoring chinese characters parsing xml file
- Next by Date: Re: ignoring chinese characters parsing xml file
- Previous by thread: Re: Iteration for Factorials
- Next by thread: Re: Iteration for Factorials
- Index(es):