<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BenBerry</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BenBerry"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/BenBerry"/>
	<updated>2026-07-23T13:42:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/wholesome_discipline&amp;diff=11177</id>
		<title>CSC 216/s08/wholesome discipline</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/wholesome_discipline&amp;diff=11177"/>
		<updated>2008-04-15T18:22:33Z</updated>

		<summary type="html">&lt;p&gt;BenBerry: Summary of intentions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==A Primer on Eclipse==&lt;br /&gt;
&lt;br /&gt;
Eclipse is a massively powerful tool for writing code, designed by and for power users. What this means is that the guts of operation are very open, and easy, one-click functionality is rare.&lt;br /&gt;
&lt;br /&gt;
One of the consequences of this is the string of configuration screens to be navigated the first time a user boots up a fresh install of Eclipse. Asking tough and difficult questions, such as where the user's JDK (&amp;quot;My what?&amp;quot;) is. To help correct this, we are making a video detailing some of the more arcane aspects of using Eclipse. &lt;br /&gt;
&lt;br /&gt;
Not only will we be offering tips to help streamline installation and the initial configuration, but we will also show how to install a common plug-in, an extension of Eclipse built for that same power-using crowd.&lt;/div&gt;</summary>
		<author><name>BenBerry</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/be_cheerful&amp;diff=11054</id>
		<title>CSC 216/s08/be cheerful</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/be_cheerful&amp;diff=11054"/>
		<updated>2008-04-03T18:22:41Z</updated>

		<summary type="html">&lt;p&gt;BenBerry: Give me my table of contents back!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==That's what it's all about!==&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
&lt;br /&gt;
In this active learning exercise, you can teach the value of superclassing and writing &amp;quot;don't repeat yourself&amp;quot; code to prevent error. When a programmer writes the same code twice, to do the same job, this increases logistical overhead and introduces more chances for error. But if he writes the code once and tells the classes that use it to look at the same piece of code, this can be handily eliminated. This is where inheritance comes in.&lt;br /&gt;
&lt;br /&gt;
===How It's Done===&lt;br /&gt;
&lt;br /&gt;
To model writing the code twice, and writing it once, you'll need two volunteers and an inside man -- you could do this yourself or delegate it. Your insider will instruct each of the two volunteers in how to do the hokey pokey. You can do this however you like: by word of mouth, by written instructions, whatever. But the one thing that you have to make sure is that one of the sets of instructions is ''wrong''. You'll see why in a second.&lt;br /&gt;
&lt;br /&gt;
Now, have your two volunteers start dancing, strictly adhering to their instructions. Soon enough, they'll come out of sync, and you'll have your error. As you should reveal to the class at this time, this represents what happens when your two sections of code don't mesh perfectly, and the program breaks. &lt;br /&gt;
&lt;br /&gt;
To fix this, you can use a super class that they will both take their instructions from. In this case, a nice Google video of a [http://video.google.com/videoplay?docid=-4742763335053216439 strange man doing the hokey pokey]. (This video will also be of use if your volunteers are a little too nervous: it's hard to be more ridiculous than that guy.) Once they've both received the same set of instructions, they can dance the hokey pokey in unison 'til the cows come home.&lt;br /&gt;
&lt;br /&gt;
After a bit more dancing, bring it all together with a nice review of what each part of the exercise represents, and hopefully close with a laugh. If done right, this will leave a strong impression of the importance of not repeating code. &lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
* [http://courses.ncsu.edu/csc216/lec/001/homework/le Learning activity assignment]&lt;/div&gt;</summary>
		<author><name>BenBerry</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/be_cheerful&amp;diff=11053</id>
		<title>CSC 216/s08/be cheerful</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/be_cheerful&amp;diff=11053"/>
		<updated>2008-04-03T18:21:48Z</updated>

		<summary type="html">&lt;p&gt;BenBerry: Revision for second review. Hopefully clearer and better developed.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==That's what it's all about!==&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
&lt;br /&gt;
In this active learning exercise, you can teach the value of superclassing and writing &amp;quot;don't repeat yourself&amp;quot; code to prevent error. When a programmer writes the same code twice, to do the same job, this increases logistical overhead and introduces more chances for error. But if he writes the code once and tells the classes that use it to look at the same piece of code, this can be handily eliminated. This is where inheritance comes in.&lt;br /&gt;
&lt;br /&gt;
===How It's Done===&lt;br /&gt;
&lt;br /&gt;
To model writing the code twice, and writing it once, you'll need two volunteers and an inside man -- you could do this yourself or delegate it. Your insider will instruct each of the two volunteers in how to do the hokey pokey. You can do this however you like: by word of mouth, by written instructions, whatever. But the one thing that you have to make sure is that one of the sets of instructions is ''wrong''. You'll see why in a second.&lt;br /&gt;
&lt;br /&gt;
Now, have your two volunteers start dancing, strictly adhering to their instructions. Soon enough, they'll come out of sync, and you'll have your error. As you should reveal to the class at this time, this represents what happens when your two sections of code don't mesh perfectly, and the program breaks. &lt;br /&gt;
&lt;br /&gt;
To fix this, you can use a super class that they will both take their instructions from. In this case, a nice Google video of a [http://video.google.com/videoplay?docid=-4742763335053216439 strange man doing the hokey pokey]. (This video will also be of use if your volunteers are a little too nervous: it's hard to be more ridiculous than that guy.) Once they've both received the same set of instructions, they can dance the hokey pokey in unison 'til the cows come home.&lt;br /&gt;
&lt;br /&gt;
After a bit more dancing, bring it all together with a nice review of what each part of the exercise represents, and hopefully close with a laugh. If done right, this will leave a strong impression of the importance of not repeating code. &lt;br /&gt;
&lt;br /&gt;
===References===http://video.google.com/videoplay?docid=-4742763335053216439&lt;br /&gt;
* [http://courses.ncsu.edu/csc216/lec/001/homework/le Learning activity assignment]&lt;/div&gt;</summary>
		<author><name>BenBerry</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/be_cheerful&amp;diff=10616</id>
		<title>CSC 216/s08/be cheerful</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/be_cheerful&amp;diff=10616"/>
		<updated>2008-03-25T17:56:45Z</updated>

		<summary type="html">&lt;p&gt;BenBerry: /* The script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==That's what it's all about!==&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Teach the value of superclassing and writing DRY code to prevent error.&lt;br /&gt;
&lt;br /&gt;
===Participants===&lt;br /&gt;
&lt;br /&gt;
3 group members: 1 programmer and 2 classes the he writes, played by volunteers&lt;br /&gt;
&lt;br /&gt;
===Hokey Pokey Music/Video Candidates===&lt;br /&gt;
&lt;br /&gt;
* http://video.google.com/videoplay?docid=-4742763335053216439&lt;br /&gt;
* http://video.google.com/videoplay?docid=8805519462208735145&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
# The coder first creates two or more people classes that are supposed to do the Hokey Pokey, by telling them individually how to do the hokey pokey.  &lt;br /&gt;
#* Because he has a bad memory, he forgets to tell one to &amp;quot;turn himself about&amp;quot; and to do the incorrect 2nd action.&lt;br /&gt;
# The &amp;quot;classes&amp;quot; dance the first 2 segments (right foot, left foot) and get it wrong.&lt;br /&gt;
# The coder decides to use superclassing and inheritance so that all of his people share the same instructions, so he shows the video.&lt;br /&gt;
# They dance the next 2 segments (right arm, left arm) right!&lt;br /&gt;
# The best part is that now that the coder has a superclass, I can extend HokeyPokey to as many classes as I want! Like... the whole class! ;)&lt;br /&gt;
# Those willing can watch the video and do the hokey pokey with us. :D&lt;br /&gt;
# Reiterate how this example applies to real programming.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
* [http://courses.ncsu.edu/csc216/lec/001/homework/le Learning activity assignment]&lt;/div&gt;</summary>
		<author><name>BenBerry</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/be_cheerful&amp;diff=10614</id>
		<title>CSC 216/s08/be cheerful</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/be_cheerful&amp;diff=10614"/>
		<updated>2008-03-25T17:54:04Z</updated>

		<summary type="html">&lt;p&gt;BenBerry: Copy editing because I'm OCD&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==That's what it's all about!==&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Teach the value of superclassing and writing DRY code to prevent error.&lt;br /&gt;
&lt;br /&gt;
===Participants===&lt;br /&gt;
&lt;br /&gt;
3 group members: 1 programmer and 2 classes the he writes, played by volunteers&lt;br /&gt;
&lt;br /&gt;
===Hokey Pokey Music/Video Candidates===&lt;br /&gt;
&lt;br /&gt;
* http://video.google.com/videoplay?docid=-4742763335053216439&lt;br /&gt;
* http://video.google.com/videoplay?docid=8805519462208735145&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
# The coder first creates two or more people classes that are supposed to do the Hokey Pokey, by telling them individually how to do the hokey pokey.  &lt;br /&gt;
## Because he has a bad memory, he forgets to tell one to &amp;quot;turn himself about&amp;quot; and to do the incorrect 2nd action.&lt;br /&gt;
# The &amp;quot;classes&amp;quot; dance the first 2 segments (right foot, left foot) and get it wrong.&lt;br /&gt;
# The coder decides to use superclassing and inheritance so that all of his people share the same instructions, so he shows the video.&lt;br /&gt;
# They dance the next 2 segments (right arm, left arm) right!&lt;br /&gt;
# The best part is that now that the coder has a superclass, I can extend HokeyPokey to as many classes as I want! Like... the whole class! ;)&lt;br /&gt;
# Those willing can watch the video and do the hokey pokey with us. :D&lt;br /&gt;
# Reiterate how this example applies to real programming.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
* [http://courses.ncsu.edu/csc216/lec/001/homework/le Learning activity assignment]&lt;/div&gt;</summary>
		<author><name>BenBerry</name></author>
	</entry>
</feed>