> Although he should be doing his homework himself, this is a simple
> implementation trick. I would prefer he not be discouraged by
What, are you one of those bleeding hearts who is in the process of
destroying our educational system by doing everything that can be done
to protect our children's fragile egos? Boo hoo hoo....
> newsgroup trolls and focus his emphasis in learning on design. After
Design is part of writing software - knowing the details can affect
design. Going through the exercise of figuring out this problem
is more important - he'll get pleny of opportunities to learn design.
> all, what I am about to show him he could eventually find, but no
So, he could have learned how to find things instead? What is that
saying about giving a man a fish vs. teaching a man how to fish?
All you are teaching him is to go to Usenet for all his thinking.
> amount of documentation is going to get him to design good code.
This probably wasn't a design class. It looked like a classic hw problem
to me.
- Kurt