Welcome!

Welcome to the shack

Sunday, October 21, 2012

Loop upon loop

After spending a hectic week learning about loops, I surprisingly feel confident with them. Of course, I'm not at a fluent level or anything, but to me loops just make a lot of sense. Now, the one thing that does confuse me however are the different types of loops such as while, do while, for, etc. (I don't know if there are any more than that. I would guess so.) Whenever I am confronted with a challenge, I automatically revert to a regular while loop. I've never had to use any of the other kinds, although doing so might have been easier in some situations. At this point, the while loop looks like the jack-of-all-trades, while the for loop is just an easy shortcut to execute a sequence. I'm still working on the for loop lab, so perhaps this will help me understand once I finish.

- zk : out

No comments:

Post a Comment