<?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:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Man With Code &#187; documentation</title>
	<atom:link href="http://manwithcode.com/tag/documentation/feed/" rel="self" type="application/rss+xml" />
	<link>http://manwithcode.com</link>
	<description>Teaching You, One Tutorial at a Time</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:57:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Programming With Ruby Episode 12, Documentation</title>
		<link>http://manwithcode.com/183/programming-with-ruby-episode-12-documentation/</link>
		<comments>http://manwithcode.com/183/programming-with-ruby-episode-12-documentation/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 06:07:45 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Ruby Programming]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[rdoc]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=183</guid>
		<description><![CDATA[Covered In This Episode: Comments RDoc Transcript: Hello Everybody and welcome to Programming With Ruby Episode 12, Documentation. I&#8217;m Tyler and this video is brought to you by manwithcode.com. In this episode I will be talking about documenting your code, more specifically with comments, and using the tool rdoc. This should be a short show, [...]]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/BEdmtC03who&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BEdmtC03who&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><strong>Covered In This Episode:</strong></p>
<ul>
<li>Comments</li>
<li>RDoc</li>
</ul>
<p><strong>Transcript:<br />
</strong></p>
<p>Hello Everybody and welcome to Programming With Ruby Episode 12,<br />
Documentation. I&#8217;m Tyler and this video is brought to you by<br />
manwithcode.com.</p>
<p>In this episode I will be talking about documenting your code, more<br />
specifically with comments, and using the tool rdoc.</p>
<p>This should be a short show, so lets get started!</p>
<p><strong>Comments</strong></p>
<p>You&#8217;ve seen comments throughout these video tutorials. They were the<br />
lines with the hash mark that are ignored by Ruby.</p>
<p>Comments are generally used to explain code to other developers<br />
(including yourself). Ruby already makes code very easy to understand<br />
in the first place. You can also help this by naming your methods and<br />
variables sensibly. But there are times when this is not enough.</p>
<p>Sometimes you end up doing something very complicated, such as a long<br />
regular expression, some SQL magic, or any other possibly difficult to<br />
understand piece of code. Those can be times when comments are needed.</p>
<p>Comments are also needed for when you are making code for other<br />
developers to use. When they are using your code and not developing it<br />
along with you, they can care less about finding how it works. They<br />
just want a comment that can tell them what your class/method/piece of<br />
code/whatever does, and how to make it do it.</p>
<p>Tools like rdoc can help you make your code&#8217;s documentation even<br />
better, and that is what we are going to talk about next.</p>
<p><strong>Rdoc</strong></p>
<p>Rdoc should be installed already from when you installed ruby. If not<br />
you can install it via rubygems or your platforms package manager.</p>
<p>Rdoc is a tool that generates very nice looking documentation for your<br />
projects.</p>
<p>First just run the command rdoc in a directory with code files in it.</p>
<p>rdoc will create a folder named &#8220;doc&#8221; and your documentation will be<br />
that folder. If you go into doc and open up index.html in your<br />
browser, you will see the generated documentation.</p>
<p>You will probably notice that rdoc didn&#8217;t pick up any of the comments<br />
inside your code, only those right above the definitions of classes,<br />
methods, or modules.</p>
<p>You may also notice that the descriptions might not be formatted very<br />
well. You can spice it up by using rdoc markup found at:</p>
<p>http://rdoc.rubyforge.org/RDoc.html</p>
<p>I&#8217;m not going to go too much farther into rdoc, as it is not an<br />
essential tool for development. It can be, however, very useful. So<br />
please take some time to learn more about it!</p>
<p>This brings us to the end of the show.</p>
<p>Please don&#8217;t forget to donate!</p>
<p>If you have any questions, comments, or suggestions you can leave them<br />
in the comment box below or email me at tyler@manwithcode.com</p>
<p>Thank you very much for watching, goodbye!</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/183/programming-with-ruby-episode-12-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[Ruby Programming]]></series:name>
	</item>
	</channel>
</rss>

