Skip to content

Commit

Permalink
Merged Pancho's revision to the ruby post
Browse files Browse the repository at this point in the history
  • Loading branch information
David Padilla committed Aug 20, 2010
2 parents 2fa9419 + b0c31ec commit d0cb27a
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: What I would've loved to know when I first met Ruby
title: What I would've loved I had known when I first met Ruby
author: Emmanuel Delgado
email: emmanuel.delgado@crowdint.com
avatar: a302e7dd208f335dc67761a6db911561
Expand All @@ -11,15 +11,15 @@ Motivation
----------

Everytime I'm learning a new language, the first thing I try to learn is how this new language
implements OOP, and now its Ruby's turn. Before joining Crowd Interactive I had been playing with Java for some
years, but when I first heard about Ruby being a fully OOP language I got really excited, but then
when I got hands-on on some existing Ruby code thing got confusing.
implements OOP, and now it's Ruby's turn. Before joining Crowd Interactive I had been playing with Java for some
years; then I first heard about Ruby being a fully OOP language I got really excited, and
when I got hands-on some existing Ruby code, things got confusing.

I would've liked to know all of this before looking at any Ruby code:

First things first: Ruby Objects
-------------------------------
Things that we have to know:
Things that we must know:

* And object is formed by: State + Behavior = Object
* Everything in Ruby is an object, even nil which is *NilClass*, false *FalseClass*, true *TrueClass* and modules
Expand All @@ -45,8 +45,8 @@ ruby-1.8.7-p299 > B.class.superclass
=> Object
{% endhighlight %}

* Do you remember those called static classes in languages other than Ruby? They're objects too,
and when I say objects I really mean it. Consider following stored in test.rb file:
* Do you remember those so-called 'static classes' in languages other than Ruby? They're objects too,
and when I say objects, I really mean it. Consider the following code stored in test.rb file:

{% highlight ruby %}
class A
Expand Down Expand Up @@ -214,7 +214,7 @@ user@user-desktop:~$ ruby test.rb
"Welcome"
{% endhighlight %}

That's it I hope this gives you some good overview and if you are ready for the whole package I
That's it. I hope this gives you some good overview and if you are ready for the whole package I
suggest you start with:

* Some good metaprogramming screencasts [Pragmatic Programmers screencasts](http://pragprog.com/screencasts/v-dtrubyom/the-ruby-object-model-and-metaprogramming)
Expand Down
2 changes: 1 addition & 1 deletion _site/2010/07/11/git-initial-configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h1>Related Posts</h1>

<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ <h1>Related Posts</h1>

<li><span><b>06 Aug 2010</b></span> &raquo; <a href="/2010/08/06/our-git-workflow.html">Our git workflow</a></li>

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

<li><span><b>17 Aug 2010</b></span> &raquo; <a href="/2010/08/17/use-a-project-specific-ruby-version-rvm.html">Use a project specific Ruby version with RVM</a></li>

Expand Down
2 changes: 1 addition & 1 deletion _site/2010/07/28/getting-started-with-rvm.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h1>Related Posts</h1>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

<li><span><b>06 Aug 2010</b></span> &raquo; <a href="/2010/08/06/our-git-workflow.html">Our git workflow</a></li>

Expand Down
2 changes: 1 addition & 1 deletion _site/2010/08/02/instant-blog-using-jekyll-and-heroku.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h1>Related Posts</h1>

<li><span><b>11 Jul 2010</b></span> &raquo; <a href="/2010/07/11/git-initial-configuration.html">First Things First... Our initial git configuration</a></li>

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

<li><span><b>06 Aug 2010</b></span> &raquo; <a href="/2010/08/06/our-git-workflow.html">Our git workflow</a></li>

Expand Down
2 changes: 1 addition & 1 deletion _site/2010/08/06/our-git-workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h1>Related Posts</h1>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h1>Related Posts</h1>

<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

Expand Down
4 changes: 2 additions & 2 deletions _site/2010/08/17/use-a-project-specific-ruby-version-rvm.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h2>Final thoughts</h2>
<div class="previous span-8"><a href="/2010/08/13/fix-incompatibility-with-attachment-fu-and-acts-as-list.html"><< Improve performance between attachment_fu and acts_as_list</a></div>


<div class="next span-8 last"><a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby >></a></div>
<div class="next span-8 last"><a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby >></a></div>

</div>
</div>
Expand All @@ -114,7 +114,7 @@ <h1>Related Posts</h1>

<li><span><b>13 Aug 2010</b></span> &raquo; <a href="/2010/08/13/fix-incompatibility-with-attachment-fu-and-acts-as-list.html">Improve performance between attachment_fu and acts_as_list</a></li>

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Crowd Interactive Tech Blog :: What I would've loved to know when I first met Ruby</title>
<title>Crowd Interactive Tech Blog :: What I would've loved I had known when I first met Ruby</title>
<link rel="stylesheet" href="/stylesheets/screen.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="/stylesheets/print.css" type="text/css" media="print" />
<link rel="stylesheet" href="/stylesheets/styles.css" type="text/css" media="screen" />
Expand Down Expand Up @@ -38,7 +38,7 @@
<div id="white-body" class="span-24">
<div class="left-side span-17">
<div class="post prepend-1">
<h1>What I would've loved to know when I first met Ruby</h1>
<h1>What I would've loved I had known when I first met Ruby</h1>
<p class="author">
<span class="date"><b>Aug 20</b><br />2010</span>
</p>
Expand All @@ -47,15 +47,15 @@ <h1>What I would've loved to know when I first met Ruby</h1>
<h2>Motivation</h2>

<p>Everytime I'm learning a new language, the first thing I try to learn is how this new language
implements OOP, and now its Ruby's turn. Before joining Crowd Interactive I had been playing with Java for some
years, but when I first heard about Ruby being a fully OOP language I got really excited, but then
when I got hands-on on some existing Ruby code thing got confusing.</p>
implements OOP, and now it's Ruby's turn. Before joining Crowd Interactive I had been playing with Java for some
years; then I first heard about Ruby being a fully OOP language I got really excited, and
when I got hands-on some existing Ruby code, things got confusing.</p>

<p>I would've liked to know all of this before looking at any Ruby code:</p>

<h2>First things first: Ruby Objects</h2>

<p>Things that we have to know:</p>
<p>Things that we must know:</p>

<ul>
<li>And object is formed by: State + Behavior = Object</li>
Expand Down Expand Up @@ -86,8 +86,8 @@ <h2>First things first: Ruby Objects</h2>


<ul>
<li>Do you remember those called static classes in languages other than Ruby? They're objects too,
and when I say objects I really mean it. Consider following stored in test.rb file:</li>
<li>Do you remember those so-called 'static classes' in languages other than Ruby? They're objects too,
and when I say objects, I really mean it. Consider the following code stored in test.rb file:</li>
</ul>


Expand Down Expand Up @@ -281,7 +281,7 @@ <h4>Call all instance methods of a certain class whenever you call a method whos
</div>


<p>That's it I hope this gives you some good overview and if you are ready for the whole package I
<p>That's it. I hope this gives you some good overview and if you are ready for the whole package I
suggest you start with:</p>

<ul>
Expand Down
2 changes: 1 addition & 1 deletion _site/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<h1>Archives</h1>
<ul class="archives">

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

<li><span><b>17 Aug 2010</b></span> &raquo; <a href="/2010/08/17/use-a-project-specific-ruby-version-rvm.html">Use a project specific Ruby version with RVM</a></li>

Expand Down
18 changes: 9 additions & 9 deletions _site/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
<title>Crowd Interactive Tech Blog</title>
<link href="http://blog.crowdint.com/atom.xml" rel="self"/>
<link href="http://blog.crowdint.com/"/>
<updated>2010-08-20T16:35:19-07:00</updated>
<updated>2010-08-20T16:39:41-07:00</updated>
<id>http://blog.crowdint.com</id>


<entry>
<title>What I would've loved to know when I first met Ruby</title>
<title>What I would've loved I had known when I first met Ruby</title>
<link href="http://blog.crowdint.com/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html"/>
<updated>2010-08-20T00:00:00-07:00</updated>
<id>http://blog.crowdint.com/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby</id>
<content type="html">&lt;h2&gt;Motivation&lt;/h2&gt;

&lt;p&gt;Everytime I'm learning a new language, the first thing I try to learn is how this new language
implements OOP, and now its Ruby's turn. Before joining Crowd Interactive I had been playing with Java for some
years, but when I first heard about Ruby being a fully OOP language I got really excited, but then
when I got hands-on on some existing Ruby code thing got confusing.&lt;/p&gt;
implements OOP, and now it's Ruby's turn. Before joining Crowd Interactive I had been playing with Java for some
years; then I first heard about Ruby being a fully OOP language I got really excited, and
when I got hands-on some existing Ruby code, things got confusing.&lt;/p&gt;

&lt;p&gt;I would've liked to know all of this before looking at any Ruby code:&lt;/p&gt;

&lt;h2&gt;First things first: Ruby Objects&lt;/h2&gt;

&lt;p&gt;Things that we have to know:&lt;/p&gt;
&lt;p&gt;Things that we must know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;And object is formed by: State + Behavior = Object&lt;/li&gt;
Expand Down Expand Up @@ -55,8 +55,8 @@ when I got hands-on on some existing Ruby code thing got confusing.&lt;/p&gt;


&lt;ul&gt;
&lt;li&gt;Do you remember those called static classes in languages other than Ruby? They're objects too,
and when I say objects I really mean it. Consider following stored in test.rb file:&lt;/li&gt;
&lt;li&gt;Do you remember those so-called 'static classes' in languages other than Ruby? They're objects too,
and when I say objects, I really mean it. Consider the following code stored in test.rb file:&lt;/li&gt;
&lt;/ul&gt;


Expand Down Expand Up @@ -250,7 +250,7 @@ of &lt;em&gt;A&lt;/em&gt; would have.&lt;/p&gt;
&lt;/div&gt;


&lt;p&gt;That's it I hope this gives you some good overview and if you are ready for the whole package I
&lt;p&gt;That's it. I hope this gives you some good overview and if you are ready for the whole package I
suggest you start with:&lt;/p&gt;

&lt;ul&gt;
Expand Down
18 changes: 9 additions & 9 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="left-side span-17">

<div class="post prepend-1">
<h1><a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></h1>
<h1><a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></h1>
<p class="author">
<span class="date"><b>Aug 20</b><br />2010</span>
</p>
Expand All @@ -48,15 +48,15 @@ <h1><a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.htm
<h2>Motivation</h2>

<p>Everytime I'm learning a new language, the first thing I try to learn is how this new language
implements OOP, and now its Ruby's turn. Before joining Crowd Interactive I had been playing with Java for some
years, but when I first heard about Ruby being a fully OOP language I got really excited, but then
when I got hands-on on some existing Ruby code thing got confusing.</p>
implements OOP, and now it's Ruby's turn. Before joining Crowd Interactive I had been playing with Java for some
years; then I first heard about Ruby being a fully OOP language I got really excited, and
when I got hands-on some existing Ruby code, things got confusing.</p>

<p>I would've liked to know all of this before looking at any Ruby code:</p>

<h2>First things first: Ruby Objects</h2>

<p>Things that we have to know:</p>
<p>Things that we must know:</p>

<ul>
<li>And object is formed by: State + Behavior = Object</li>
Expand Down Expand Up @@ -87,8 +87,8 @@ <h2>First things first: Ruby Objects</h2>


<ul>
<li>Do you remember those called static classes in languages other than Ruby? They're objects too,
and when I say objects I really mean it. Consider following stored in test.rb file:</li>
<li>Do you remember those so-called 'static classes' in languages other than Ruby? They're objects too,
and when I say objects, I really mean it. Consider the following code stored in test.rb file:</li>
</ul>


Expand Down Expand Up @@ -282,7 +282,7 @@ <h4>Call all instance methods of a certain class whenever you call a method whos
</div>


<p>That's it I hope this gives you some good overview and if you are ready for the whole package I
<p>That's it. I hope this gives you some good overview and if you are ready for the whole package I
suggest you start with:</p>

<ul>
Expand Down Expand Up @@ -437,7 +437,7 @@ <h2><a href="/2010/08/13/fix-incompatibility-with-attachment-fu-and-acts-as-list
<h1>Recent Posts</h1>
<ul class="archives">

<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved to know when I first met Ruby</a></li>
<li><span><b>20 Aug 2010</b></span> &raquo; <a href="/2010/08/20/what-i-would-ve-loved-to-know-when-i-first-met-ruby.html">What I would've loved I had known when I first met Ruby</a></li>

<li><span><b>17 Aug 2010</b></span> &raquo; <a href="/2010/08/17/use-a-project-specific-ruby-version-rvm.html">Use a project specific Ruby version with RVM</a></li>

Expand Down

0 comments on commit d0cb27a

Please sign in to comment.