Hacker News new | ask | show | jobs
by rainsford 722 days ago
I suppose the order your introduce those examples in ultimately comes down to whether it's more important for the student to first understand what the computer is doing or how it is doing it.

Most people don't start out thinking like computers, so I think it's probably more important for a new student to understand how code describes a particular series of operations and then help them translate that into how a computer "thinks" about those operations.

1 comments

Most people don't start out thinking like computers

Everyone who has followed a sequential list of instructions would strongly disagree.

Which, FWIW, are almost never written using recursion: they are written with either imperative loops or the moral equivalent of a goto statement.