10-20-2009, 09:11 AM
(10-18-2009, 03:34 AM)Psycho Wrote: There are a few reasons I simply discarded the do..while loop from the tutorial.
One of these reasons is because I see lots of newbies using do..while's and while's in all the wrong places.
The other reason is because any do..while loop can be implemented with an ordinary while loop.
I agree that they can be useful, because it's not convenient to resort to a while loop to emulate a do..while.
When you're a more advanced programmer, I'm almost positive you will have generated your own opinions on do..whiles.
I just don't want to confuse absolute beginners with whiles and do..whiles... since they get mixed up.
About the class bit; I explain classes in my second tutorial. It's not always necessary to explain every detail before using it.
Absolutely its not necessary, but that was the point I was trying to make. Its hard to teach (and learn) both at once.