3 ms·
> Anything that has one right answer is going to smell like a made-up classroom assignment. It should be alright in a classroom setting. I remember one particu
by noxToken 9y ago
> Anything that has one right answer is going to smell like a made-up classroom assignment.
It should be alright in a classroom setting. I remember one particular piece of an assignment that I received a 0 on many years ago.
We were doing String manipulation, and the iterative pieces of the assignment culminated in us building a simplistic cipher. The part I did not receive credit for was recursively reversing the String. I just called the reverse method. Same result, so no harm no foul right? Wrong.
The point wasn't to reverse the String so that the cipher could be created. It was to incorporate programming basics such as recursion into an assignment. It was a shoe-horned method to get us to use recursion, but it got the point across.