<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Here we go loopty loop</title><link>http://blogs.msdn.com/b/alfredth/archive/2011/01/27/here-we-go-loopty-loop.aspx</link><description>I’ve been wondering lately what it is about loops (in computer programs) that is so hard for students to get their heads around. A college professor was telling me (back a while ago but it stuck with me) that they had assigned a program to print out the</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Here we go loopty loop</title><link>http://blogs.msdn.com/b/alfredth/archive/2011/01/27/here-we-go-loopty-loop.aspx#10131677</link><pubDate>Sat, 19 Feb 2011 03:20:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10131677</guid><dc:creator>Gary Kacmarcik</dc:creator><description>&lt;p&gt;Back in Jr High School, I had to write some sentence 100 times as punishment for some terrible thing that I had done (no, I don&amp;#39;t remember what it was).&lt;/p&gt;
&lt;p&gt;I asked if I could do it on a computer and the teacher said that would be OK. Of course I wrote a program with a for-loop to do this -- I even had a few if-then-else&amp;#39;s to introduce typos to make it look more legit.&lt;/p&gt;
&lt;p&gt;Perhaps that is the assignment we should be giving all students when we want them to learn loops : Feign outrage at something the class does and punish them all by having them write some sentence 100 times. This punishment should coincide with them learning about loops.&lt;/p&gt;
&lt;p&gt;Actually, thinking about this more, it may need to be &amp;quot;a million times&amp;quot; to prevent them from simply cut-n-pasting. But allow the students to turn in either the sentences OR a program to generate them.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10131677" width="1" height="1"&gt;</description></item><item><title>re: Here we go loopty loop</title><link>http://blogs.msdn.com/b/alfredth/archive/2011/01/27/here-we-go-loopty-loop.aspx#10121506</link><pubDate>Fri, 28 Jan 2011 14:31:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10121506</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;Thank goodness you did not post the answer to the Twelve Days of Christmas - I use that as one of my programs on the first semester final. In the directions I tell the students to use loops( min of two) and not put just lots and lots of couts. And you know that I will still get about 6 or 7 a class that will hand write out all twelve versus. And for some reason this year a lot of my students want to use do/while loops to count? When I ask them why? most just say they forgot the for works better. - just stepped away to help a student in tutorials and guess what he used to count 20 times... do/while. As the old songs says - and the beat goes on.. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10121506" width="1" height="1"&gt;</description></item><item><title>re: Here we go loopty loop</title><link>http://blogs.msdn.com/b/alfredth/archive/2011/01/27/here-we-go-loopty-loop.aspx#10121325</link><pubDate>Fri, 28 Jan 2011 04:04:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10121325</guid><dc:creator>Alfred Thompson</dc:creator><description>&lt;p&gt;I think that arrays and loops are one of those things that tend to be an early indicator of if people are really going to &amp;quot;get&amp;quot; programming. We probably need to find better ways to help more people understand and us (grok if you will) loops and arrays so that they can progress on.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10121325" width="1" height="1"&gt;</description></item><item><title>re: Here we go loopty loop</title><link>http://blogs.msdn.com/b/alfredth/archive/2011/01/27/here-we-go-loopty-loop.aspx#10121285</link><pubDate>Fri, 28 Jan 2011 00:30:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10121285</guid><dc:creator>Dave Winer</dc:creator><description>&lt;p&gt;I don&amp;#39;t remember loops being hard, but I do remember having a hard time with addresses and dereferencing them. And pass-by-value and pass-by-reference. I remember when the light went on, it&amp;#39;s just like the address on the front of a house. But I&amp;#39;d always have to work through that when trying to understand code that used addresses. Now it&amp;#39;s of course second-nature. &amp;nbsp;But loops weren&amp;#39;t hard for me, or arrays. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10121285" width="1" height="1"&gt;</description></item></channel></rss>