Hacker News new | ask | show | jobs
by crimsonalucard 4034 days ago
>My main point being that none of these things (programming patterns and strategies) are intuitive until you have some background.

That's my point. I'm saying in addition to this, loops are by far one of the easier patterns and strategies to become familiar with.

think about it. By knowing what a function is... recursion can be taught as a logical next step without introducing any additional language primitives. Yet most computer science classes will still teach looping syntax before even touching upon recursion. Why? Because looping is way easier to grasp then recursion, theoretical elegance be damned.

2 comments

I'm saying that most people are biased towards loops and mutation because they learned them first. It's like riding a skateboard vs riding a bike. They're equally challenging if you know neither.
I think most CS courses teach imperative style first because it was developed first and there are more practitioners and teaching materials.