« first day (569 days earlier)      last day (1966 days later) » 

6:01 PM
I'm thinking about asking a question for a customized data structure that would motivate creating an Iterator in Java. HNQ potential?
 
6:25 PM
@BenI. You don't even need a data structure. An iterator can return values not stored (successive primes, for example). But you need to keep it in scope, of course. An edu question.
Or combine it with your induction idea. A recursive data generator implemented as an iterator.
 
 
2 hours later…
8:17 PM
@buffy How would that deal with a base case?
Also... what you just said sounds like the start of a great answer. HNQ potential, then?
Also, @GypsySpellweaver I still haven't forgotten about the convoluted code question. Perhaps my teaching style has changed, or perhaps I just have better students this year, but I haven't been seeing any of the sorts of convolutions I was talking about this year, so I still don't have a clear example.
 
8:36 PM
@BenI. Put it in the sand box so I can think about it for a bit.
 
8:58 PM
Done!
 
9:11 PM
0
A: The Question Sandbox

Ben I.Motivating Problems for Iterators In teaching AP Computer Science A, there are only a few interfaces that we encounter along the way: Comparable, List, and Iterator, and the last one can actually be dodged, since all that the kids need to be able to do is to understand a foreach loop from a proc...

 

« first day (569 days earlier)      last day (1966 days later) »