r/shittyprogramming • • Dec 05 '14

Recursion 101

Post image
316 Upvotes

73 comments sorted by

View all comments

3

u/shvelo Dec 05 '14

Double facepalm ensued.

BTW I'm guilty of doing something like that and wondering why it didn't work.

2

u/justabaguette Dec 05 '14 edited Dec 05 '14

Just out of curiousity, what was your thought process at the time? I'm still trying to understand how anyone with even just a semester's worth of programming expirience could think this makes sense.

3

u/shvelo Dec 05 '14

Not paying attention to names and keywords.
I was trying to set window in Javascript.

2

u/justabaguette Dec 05 '14

Ok at least thats a kind of a valid excuse. I'm fairly certain the student in question here knew he was calling the fuction he was writing and just expected it to work.