3 ms·
Robert Harper from CMU, eloquently expresses the same notion: "One of the classic pitfalls of teaching recursion is to try to explain it by referring to some m
by primodemus 16y ago
Robert Harper from CMU, eloquently expresses the same notion:
"One of the classic pitfalls of teaching recursion is to try to explain it by referring to some mysterious entity called a “stack” that is absolutely invisible in the program you write. There’s a long song and dance about “frames” and “procedure calls” and “pushing” and “popping” things on this “stack” of which the professor speaks, and no one understands a damn thing. It all sounds very complicated, and impressive in a way, but if there’s one thing people learn, it’s to stay the hell away from it! And in doing so, students are robbed of one of the most powerful and useful programming tools available to them, the key to writing clean, reliable code".
more: http://existentialtype.wordpress.com/2011/03/21/the-dog-that-didnt-bark/ http://existentialtype.wordpress.com/2011/03/21/the-dog-that...