<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4477476064622457005</id><updated>2011-04-21T17:29:48.278-07:00</updated><title type='text'>My Dive into Ruby</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://griffsdiveintoruby.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4477476064622457005/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://griffsdiveintoruby.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>hemi426</name><uri>http://www.blogger.com/profile/01612606922949633866</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4477476064622457005.post-6015156045376212952</id><published>2008-12-22T20:13:00.000-08:00</published><updated>2008-12-22T20:33:27.904-08:00</updated><title type='text'>Block-tastic</title><content type='html'>I am in the process of reading "The Little Book of Ruby" by Huw Collingbourne. I have found some very cool tricks that you can do in ruby, such as:&lt;br /&gt;&lt;br /&gt;def sample&lt;br /&gt;   return 1, "new" &lt;- return multiple data types&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;This also lends itself to arrays with multiple data types. Such as:&lt;br /&gt;&lt;br /&gt;a = [1,sample,"hello"] &lt;- which is [1,[1,"new"],"hello"] as I just learned&lt;br /&gt;&lt;br /&gt;The each loop is very nice, similar to the foreach loop in c#.&lt;br /&gt;Instead of:&lt;br /&gt;&lt;br /&gt;foreach(int x in intlist)&lt;br /&gt;{&lt;br /&gt;   Console.Writeline(x);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;it is:&lt;br /&gt;&lt;br /&gt;intlist.each do&lt;br /&gt;  |x|&lt;br /&gt;   Puts(x)&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;Another cool thing is the alternate syntax for delimiting blocks ie.&lt;br /&gt;&lt;br /&gt;Given the each list above, the following is acceptable:&lt;br /&gt;&lt;br /&gt;intlist.each{&lt;br /&gt;   |x|&lt;br /&gt;   Puts(x)&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;but remember to include either do or { on the same line as the each method, or (as i found out) it will throw an error.&lt;br /&gt;&lt;br /&gt;Very cool stuff.&lt;br /&gt;More observations to follow... Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4477476064622457005-6015156045376212952?l=griffsdiveintoruby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://griffsdiveintoruby.blogspot.com/feeds/6015156045376212952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://griffsdiveintoruby.blogspot.com/2008/12/block-tastic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4477476064622457005/posts/default/6015156045376212952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4477476064622457005/posts/default/6015156045376212952'/><link rel='alternate' type='text/html' href='http://griffsdiveintoruby.blogspot.com/2008/12/block-tastic.html' title='Block-tastic'/><author><name>hemi426</name><uri>http://www.blogger.com/profile/01612606922949633866</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4477476064622457005.post-8036967200243805631</id><published>2008-12-22T19:12:00.000-08:00</published><updated>2008-12-22T19:27:58.217-08:00</updated><title type='text'>Getting my hands wet</title><content type='html'>Hello all.&lt;br /&gt;I am diving into Ruby and documenting my steps along the way. So far so good, getting caught up with online tutorials and finding out what makes Ruby tick (so to speak).&lt;br /&gt;&lt;br /&gt;A little bit about me:&lt;br /&gt;My name is Stephen. I am currently residing in Lexington, Ky with my wife, Kelli and two dogs: Harley and Gracie. I work at Lexmark as a software engineer, designing test tools for the solutions department. My programming background is diverse, including C++, Java, C#, Python, PHP, and Javascript. I am learning Ruby partially due to curiosity and the Rails web application development.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4477476064622457005-8036967200243805631?l=griffsdiveintoruby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://griffsdiveintoruby.blogspot.com/feeds/8036967200243805631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://griffsdiveintoruby.blogspot.com/2008/12/getting-my-hands-wet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4477476064622457005/posts/default/8036967200243805631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4477476064622457005/posts/default/8036967200243805631'/><link rel='alternate' type='text/html' href='http://griffsdiveintoruby.blogspot.com/2008/12/getting-my-hands-wet.html' title='Getting my hands wet'/><author><name>hemi426</name><uri>http://www.blogger.com/profile/01612606922949633866</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
