<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Chris's Blog</title>
	<atom:link href="http://tonog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tonog.wordpress.com</link>
	<description>My Ramblings in Ruby and English</description>
	<lastBuildDate>Thu, 09 Dec 2010 18:57:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tonog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Chris's Blog</title>
		<link>http://tonog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tonog.wordpress.com/osd.xml" title="Chris&#039;s Blog" />
	<atom:link rel='hub' href='http://tonog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>birthday program v2</title>
		<link>http://tonog.wordpress.com/2010/12/09/birthday-program-v2/</link>
		<comments>http://tonog.wordpress.com/2010/12/09/birthday-program-v2/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 18:57:02 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
		
		<guid isPermaLink="false">http://tonog.wordpress.com/?p=201</guid>
		<description><![CDATA[a second version of my original birthday program puts 'Hello, what year were you born in?' puts 'please put in a number. (e.g. 1985)' x = gets.chomp puts 'And month?' y = gets.chomp puts 'And day?' z = gets.chomp def birthdaySpanking(year, month, day) birthday = Time.mktime(year, month, day) currentYear = Time.now.strftime(&#34;%Y&#34;).to_i spanks = currentYear - [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=201&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>a second version of my <a href="http://tonog.wordpress.com/2009/07/28/birthday-program/">original birthday program</a></p>
<pre class="brush: ruby;">

puts 'Hello, what year were you born in?'
puts 'please put in a number. (e.g. 1985)'
x = gets.chomp
puts 'And month?'
y = gets.chomp
puts 'And day?'
z = gets.chomp

def birthdaySpanking(year, month, day)
  birthday = Time.mktime(year, month, day)
  currentYear = Time.now.strftime(&quot;%Y&quot;).to_i
  spanks = currentYear - birthday.year
  puts &quot;SPANK! \n&quot; * spanks
  puts &quot;you were spanked #{spanks} times for each year of your birthday&quot;
end

puts birthdaySpanking(x, y, z)

#print a &quot;spank&quot; for each year the responder was born.

#Then, print out the &quot;spank&quot;s.
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/201/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=201&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2010/12/09/birthday-program-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>A number guessing game</title>
		<link>http://tonog.wordpress.com/2010/04/27/a-number-guessing-game/</link>
		<comments>http://tonog.wordpress.com/2010/04/27/a-number-guessing-game/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 01:25:39 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
		
		<guid isPermaLink="false">http://tonog.wordpress.com/?p=194</guid>
		<description><![CDATA[x = gets.chomp.to_i while x != 5 if x &#62; 5 puts &#34;go lower.&#34; x = gets.chomp.to_i elsif x &#60; 5 puts &#34;go higher.&#34; x = gets.chomp.to_i elsif x == 5 end end puts &#34;you won.&#34; puts &#34;that's the end of the game.&#34;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=194&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">

x = gets.chomp.to_i

while x != 5
 if x &gt; 5
 puts &quot;go lower.&quot;
 x = gets.chomp.to_i
 elsif x &lt; 5
 puts &quot;go higher.&quot;
 x = gets.chomp.to_i
 elsif x == 5
 end
end

puts &quot;you won.&quot;
puts &quot;that's the end of the game.&quot;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=194&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2010/04/27/a-number-guessing-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>birthday program</title>
		<link>http://tonog.wordpress.com/2009/07/28/birthday-program/</link>
		<comments>http://tonog.wordpress.com/2009/07/28/birthday-program/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 19:09:45 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://tonog.wordpress.com/?p=186</guid>
		<description><![CDATA[puts 'Hello, what year were you born in?' year = gets.chomp puts 'And month?' month = gets.chomp puts 'And day?' day = gets.chomp birthday = Time.mktime(year, month, day) puts 'you were born on ' + birthday.to_s + '.' #print a &#34;spank&#34; for each year the responder was born. #First, need to figure out how many [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=186&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">

puts 'Hello, what year were you born in?'
year = gets.chomp
puts 'And month?'
month = gets.chomp
puts 'And day?'
day = gets.chomp

birthday = Time.mktime(year, month, day)

puts 'you were born on ' + birthday.to_s + '.'

#print a &quot;spank&quot; for each year the responder was born.

#First, need to figure out how many years they were born.

#Then, print out the &quot;spank&quot;s.
</pre>
<p>This program isn&#8217;t complete, but I thought I&#8217;d post it anyway. Will try to finish later tonight.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=186&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2009/07/28/birthday-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>if and while loops</title>
		<link>http://tonog.wordpress.com/2009/07/23/if-and-while-loops/</link>
		<comments>http://tonog.wordpress.com/2009/07/23/if-and-while-loops/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 17:09:42 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://tonog.wordpress.com/?p=179</guid>
		<description><![CDATA[command = '' name = gets.chomp if name == 'chris' while command != 'bye' puts 'Hello there!' command = gets.chomp end else while command != 'hello' puts 'What?' command = gets.chomp end end I was having a hard time figuring out what embedded while loops did under if end statements. The above program illustrates that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=179&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">

command = ''
name = gets.chomp
if name == 'chris'
  while command != 'bye'
  puts 'Hello there!'
  command = gets.chomp
  end
else
  while command != 'hello'
    puts 'What?'
    command = gets.chomp
  end
end
</pre>
<p>I was having a hard time figuring out what embedded while loops did under if end statements. The above program illustrates that if the gets equals the string chris, then the bye while loop will start. If it&#8217;s something else, then the hello while loop will start. I was confused by initially reading the code as &#8220;if name equals chris, while&#8230;&#8221;. When coding these types of statements, read them this way: &#8220;if x equals chris statement is true, run this while statement&#8221;. Keep the two as separate modules. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=179&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2009/07/23/if-and-while-loops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>working with until</title>
		<link>http://tonog.wordpress.com/2009/07/21/working-with-until/</link>
		<comments>http://tonog.wordpress.com/2009/07/21/working-with-until/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 17:29:24 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://tonog.wordpress.com/?p=176</guid>
		<description><![CDATA[puts 'Hello, What\'s your name?' name = gets.chomp until name == 'Chris' puts 'Hello, ' + name + '.' puts 'I\'m looking for someone special. The man named Chris. ' \ 'What\'s your name again?' name = gets.chomp if name == 'Chris' puts 'You are the one.' end end puts 'Please help us, ' + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=176&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">

puts 'Hello, What\'s your name?'
name = gets.chomp
until name == 'Chris'
  puts 'Hello, ' + name + '.'
  puts 'I\'m looking for someone special. The man named Chris. ' \
     'What\'s your name again?'
  name = gets.chomp
  if name == 'Chris'
    puts 'You are the one.'
  end
end
puts 'Please help us, ' + name + '. Can you help us solve this problem? '
response = gets.chomp
if response =='yes'
  puts 'What\'s the meaning of Hello World?'
  response2 = gets.chomp
  if response2 == 'The beginning of programming.'
    puts 'Thanks!'
  else
    puts 'that doesn\'t help us.'
  end
end
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=176&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2009/07/21/working-with-until/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>My half-baked deaf grandma program</title>
		<link>http://tonog.wordpress.com/2009/07/17/my-half-baked-deaf-grandma-program/</link>
		<comments>http://tonog.wordpress.com/2009/07/17/my-half-baked-deaf-grandma-program/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 12:32:00 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://tonog.wordpress.com/?p=168</guid>
		<description><![CDATA[#A Deaf Grandma Program puts 'Hello boy, how are ye?' #Introduction sentence. Grandma says hi. response = gets.chomp #My response to the grandma. while response != 'BYE' puts 'No, not since ' + (rand(20) + 1930).to_s + '.' #She's deaf, remember? response = gets.chomp end puts 'Alright sonny, see you later.' #aww, how sweet.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=168&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">

#A Deaf Grandma Program
puts 'Hello boy, how are ye?' #Introduction sentence. Grandma says hi.
response = gets.chomp #My response to the grandma.
while response != 'BYE'
puts 'No, not since ' + (rand(20) + 1930).to_s + '.' #She's deaf, remember?
response = gets.chomp
end
puts 'Alright sonny, see you later.' #aww, how sweet.
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=168&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2009/07/17/my-half-baked-deaf-grandma-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>A friendly gamer program.</title>
		<link>http://tonog.wordpress.com/2009/07/16/a-friendly-gamer-program/</link>
		<comments>http://tonog.wordpress.com/2009/07/16/a-friendly-gamer-program/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 03:20:38 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://tonog.wordpress.com/?p=161</guid>
		<description><![CDATA[puts 'Let\'s play video games. You down?' response = gets.chomp if response == 'Yes' puts 'Ok cool. Hey I didn\'t get your name...' name = gets.chomp puts 'Hey, ' + name + ' nice to meet you.' else puts 'Shucks!' puts 'Pretty Please?' response2 = gets.chomp if response2 == 'OK' puts 'I knew it! Let\'s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=161&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">
puts 'Let\'s play video games. You down?'
response = gets.chomp
if response == 'Yes'
  puts 'Ok cool. Hey I didn\'t get your name...'
  name = gets.chomp
  puts 'Hey, ' + name + ' nice to meet you.'
else
  puts 'Shucks!'
  puts 'Pretty Please?'
  response2 = gets.chomp
  if response2 == 'OK'
    puts 'I knew it! Let\'s play!'
  else
    puts 'Ok, Ok, I\'ll leave you alone.'
  end
end
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=161&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2009/07/16/a-friendly-gamer-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>fruit class</title>
		<link>http://tonog.wordpress.com/2009/06/15/fruit-class/</link>
		<comments>http://tonog.wordpress.com/2009/06/15/fruit-class/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 17:19:20 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://tonog.wordpress.com/?p=151</guid>
		<description><![CDATA[Today I thought I&#8217;d write a class based on fruit. The fruit class will contain several different fruits, which will throw different reactions when you eat (call) a particular fruit (method). class Fruit def banana puts &#34;this tastes banana-y&#34; end def blueberry puts &#34;I could make pancakes with this...&#34; end def watermelon puts &#34;This is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=151&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I thought I&#8217;d write a class based on fruit. The fruit class will contain several different fruits, which will throw different reactions when<br />
you eat (call) a particular fruit (method).</p>
<pre class="brush: ruby;">
 class Fruit
  def banana
  puts &quot;this tastes banana-y&quot;
 end

 def blueberry
  puts &quot;I could make pancakes with this...&quot;
 end

 def watermelon
  puts &quot;This is good for summer cook outs!&quot;
 end
end

eat = Fruit.new
eat.banana
eat.blueberry
eat.watermelon
</pre>
<p>What do you guys think of this code?</p>
<p>EDIT:</p>
<p>I thought about it some more, and I could pass a variable in each of the methods like so:</p>
<pre class="brush: ruby;">

class Fruit
 def eat(x)
  puts &quot;I ate #{x} today.&quot;
 end
end

whatidid = Fruit.new
whatidid.eat(&quot;bananas&quot;)
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=151&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2009/06/15/fruit-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>Still here.</title>
		<link>http://tonog.wordpress.com/2009/06/11/still-here/</link>
		<comments>http://tonog.wordpress.com/2009/06/11/still-here/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 18:41:42 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://tonog.wordpress.com/?p=148</guid>
		<description><![CDATA[Hi, I&#8217;m still alive. I know I haven&#8217;t been putting enough code online as I should, I&#8217;m also learning this little framework called Ruby on Rails in order to make my learning more practical and real word rather than making &#8220;hello world&#8221; programs. I&#8217;ll get back to Ruby learning soon, and may post some Rails [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=148&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi, I&#8217;m still alive. I know I haven&#8217;t been putting enough code online as I should, I&#8217;m also learning this little framework called Ruby on Rails in order to make my learning more practical and real word rather than making &#8220;hello world&#8221; programs. I&#8217;ll get back to Ruby learning soon, and may post some Rails code stuff as well.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=148&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2009/06/11/still-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
		<item>
		<title>a method</title>
		<link>http://tonog.wordpress.com/2009/04/15/a-method/</link>
		<comments>http://tonog.wordpress.com/2009/04/15/a-method/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 17:07:59 +0000</pubDate>
		<dc:creator>tonog</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://tonog.wordpress.com/?p=143</guid>
		<description><![CDATA[def iHateYou (familymember) result = &#34;I hate you, #{familymember}!&#34; return result end puts iHateYou(&#34;mom&#34;) puts iHateYou(&#34;dad&#34;) puts iHateYou(&#34;Chris&#34;) puts &#34;you're so uncool!&#34; This is an angry teenager method spitting out her hate for her family for being uncool.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=143&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">

def iHateYou (familymember)
 result = &quot;I hate you, #{familymember}!&quot;
 return result
end

puts iHateYou(&quot;mom&quot;)
puts iHateYou(&quot;dad&quot;)
puts iHateYou(&quot;Chris&quot;)

puts &quot;you're so uncool!&quot;
</pre>
<p>This is an angry teenager method spitting out her hate for her family for being uncool.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonog.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonog.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonog.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonog.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonog.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonog.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonog.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonog.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonog.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonog.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonog.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonog.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonog.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonog.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonog.wordpress.com&amp;blog=45594&amp;post=143&amp;subd=tonog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonog.wordpress.com/2009/04/15/a-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tonog</media:title>
		</media:content>
	</item>
	</channel>
</rss>
