<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruby on Kind of Idea</title>
    <link>https://kindofidea.com/tags/ruby/</link>
    <description>Recent content in Ruby on Kind of Idea</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Wed, 11 Aug 2010 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://kindofidea.com/tags/ruby/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ruby and Education: A Match Made in Heaven (translation)</title>
      <link>https://kindofidea.com/ruby-and-education-a-match-made-in-heaven-translation/</link>
      <pubDate>Wed, 11 Aug 2010 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/ruby-and-education-a-match-made-in-heaven-translation/</guid>
      <description>&lt;blockquote&gt;It&#39;s important not to generalize about Ruby as if it could solve all your problems. It is a general-purpose language, but, like all other languages, it will be suitable in some contexts and not in others. The purpose of this post by Kate Cunningham, which I translated, is to show that Ruby&#39;s characteristics are very much in harmony with the characteristics needed in an effective learning environment. This doesn&#39;t mean that students should stop at Ruby. Ruby will make the path into programming easier for them, but it is only a first step. They should learn other languages too, since that&#39;s the only way to grow as a professional in such a dynamic field. You can find the original &lt;a href=&#34;http://rubylearning.com/blog/2010/08/11/ruby-programming-and-education-a-match-made-in-heaven/&#34;&gt;here&lt;/a&gt;. And now, the translation:&lt;/blockquote&gt;&#xA;&lt;p&gt;The Ruby language has received a lot of attention over the past decade, especially since the advent of Ruby on Rails in 2005. While the blogosphere has been using Ruby for a long time, let&amp;rsquo;s ask how, exactly, Ruby is suited to an educational environment.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nerd Talk: Nerd 2.0</title>
      <link>https://kindofidea.com/nerd-talk-nerd-2-0/</link>
      <pubDate>Mon, 09 Aug 2010 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/nerd-talk-nerd-2-0/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://valeriofarias.com/wp-content/uploads/2010/08/oxenterails2010.jpg&#34;&gt;&lt;img class=&#34;alignright size-full wp-image-347&#34; title=&#34;oxenterails2010&#34; src=&#34;http://valeriofarias.com/wp-content/uploads/2010/08/oxenterails2010.jpg&#34; alt=&#34;&#34; width=&#34;238&#34; height=&#34;125&#34; /&gt;&lt;/a&gt;&#xA;I attended OxenteRails 2009, Rails Summit 2009, CearáOnRails 2009, and now OxenteRails 2010. It became clear that a &lt;strong&gt;new nerd culture&lt;/strong&gt; is spreading faster and faster. I call this new nerd culture Nerd 2.0.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;strong&gt;key point&lt;/strong&gt; is that you can no longer spend all your time in front of the computer (Nerd 1.0). Now a &lt;strong&gt;nerd&lt;/strong&gt; has to be &lt;strong&gt;sociable&lt;/strong&gt; and &lt;strong&gt;balance&lt;/strong&gt; a love of &lt;strong&gt;technology&lt;/strong&gt; with interpersonal relationships, whether with friends, at work, or elsewhere (Nerd 2.0).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Learn BDD by Playing Dice — eBook</title>
      <link>https://kindofidea.com/learn-bdd-by-playing-dice-ebook/</link>
      <pubDate>Tue, 03 Aug 2010 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/learn-bdd-by-playing-dice-ebook/</guid>
      <description>&lt;p&gt;Hello, Ruby enthusiast! Hello, BDD enthusiast! I invite you to read, download, modify, clone, or do whatever you like with the book &lt;em&gt;Learn BDD by Playing Dice&lt;/em&gt;!&lt;/p&gt;&#xA;&lt;p&gt;This mini-book is a journey, line by line and test by test, using the Behavior-Driven Development technique on a very interesting project: simulating the dice in the game War!&lt;/p&gt;&#xA;&lt;p&gt;I wrote this little book to learn BDD and RSpec, so I needed to cover something simple and, preferably, fun. Then I thought: Why not roll some dice? Why not roll the dice from the game War?&#xA;So here it is: &lt;em&gt;Learn BDD by Playing Dice&lt;/em&gt;!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Learn BDD by Playing Dice — eBook</title>
      <link>https://kindofidea.com/learn-bdd-by-playing-dice-ebook-tiny-book/</link>
      <pubDate>Tue, 03 Aug 2010 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/learn-bdd-by-playing-dice-ebook-tiny-book/</guid>
      <description>&lt;p&gt;Hello, Ruby enthusiast! Hello, BDD enthusiast! Welcome to this journey, line by line and test by test, using the Behavior-Driven Development technique on an interesting project: a War dice simulation!&lt;/p&gt;&#xA;&lt;p&gt;I wrote this tiny book to learn BDD and RSpec myself. I wanted to start with a small example, and, if possible, a fun one too. Then I thought: Why not roll some dice? Why not roll the dice from the game War? And here you are: learning BDD by playing dice!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Functional Programming and Loops (translation)</title>
      <link>https://kindofidea.com/functional-programming-and-loops-translation/</link>
      <pubDate>Tue, 06 Jul 2010 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/functional-programming-and-loops-translation/</guid>
      <description>&lt;blockquote&gt;People who come from languages like C, Java, Delphi, and C#, and use Ruby for the first time, tend to program in Ruby the same way they programmed in the language they already know well. As you read the post below, you&#39;ll see that languages with functional features, such as Ruby, offer their own ways of organizing code (the Ruby way). More specifically, in this article by Jon Dahl, you&#39;ll see more efficient ways to iterate (loop) in Ruby. You can find the original &lt;a href=&#34;http://railspikes.com/2008/7/29/functional-loops-in-ruby-each-map-inject-select-and-for&#34;&gt;here&lt;/a&gt;. And now, the translation:&lt;/blockquote&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re a programmer, you&amp;rsquo;ve probably worked through one or more books that taught you the syntax of a new language. I&amp;rsquo;ve had that experience with half a dozen languages, such as C, JavaScript, and Perl.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nerd Talk: A Conversation About Programming Languages</title>
      <link>https://kindofidea.com/nerd-talk-a-conversation-about-programming-languages/</link>
      <pubDate>Wed, 24 Jun 2009 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/nerd-talk-a-conversation-about-programming-languages/</guid>
      <description>&lt;p&gt;In today&amp;rsquo;s Nerd Talk, I&amp;rsquo;ll broaden the format a little. In addition to the &lt;strong&gt;nerd attacks&lt;/strong&gt; I started with in the &lt;a href=&#34;http://valeriofarias.com/desenhando-com-lado-direito-cerebro/&#34;&gt;first article&lt;/a&gt;, I&amp;rsquo;ll also include something like those &lt;strong&gt;bar conversations&lt;/strong&gt; where, after a few drinks, everyone tries to out-philosophize everyone else :) . More specifically, in this post I&amp;rsquo;ll share &lt;strong&gt;conversations&lt;/strong&gt; about the general &lt;strong&gt;day-to-day&lt;/strong&gt; of a &lt;strong&gt;web developer&lt;/strong&gt;, held over instant messaging.&lt;/p&gt;&#xA;&lt;p&gt;This virtual nerd conversation was about &lt;strong&gt;programming languages&lt;/strong&gt;, and more specifically &lt;strong&gt;Python&lt;/strong&gt; and &lt;strong&gt;Ruby&lt;/strong&gt;. I was chatting with my friend &lt;strong&gt;Macelo&lt;/strong&gt;. Here&amp;rsquo;s the conversation:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Accessing Twitter via the Interactive Ruby Shell (irb)</title>
      <link>https://kindofidea.com/accessing-twitter-via-the-interactive-ruby-shell-irb/</link>
      <pubDate>Sun, 14 Jun 2009 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/accessing-twitter-via-the-interactive-ruby-shell-irb/</guid>
      <description>&lt;p&gt;I was looking for a simple Ruby solution for updating messages through irb.&#xA;I found these Ruby class options:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://twitter.rubyforge.org/&#34;&gt;Twitter&lt;/a&gt; by John Nunemaker — this is the most complete one.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://rubyforge.org/projects/twittery/&#34;&gt;Twittery&lt;/a&gt;, a very simple class that uploads photos through the TwitPic API. The project is maintained by Chris Ledet.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I used the class from the Twittery project as a learning starting point because I wanted a quick and simple solution, even though it doesn&amp;rsquo;t have the security of the OAuth authentication protocol already included in John Nunemaker&amp;rsquo;s project.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ruby &#43; irb &#43; utility-belt &#43; gedit = :)</title>
      <link>https://kindofidea.com/ruby-irb-utility-belt-gedit/</link>
      <pubDate>Fri, 12 Jun 2009 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/ruby-irb-utility-belt-gedit/</guid>
      <description>&lt;p&gt;In September 2008, Akita wrote an &lt;a href=&#34;http://www.akitaonrails.com/2008/9/21/ruby-irb-utility-belt&#34;&gt;interesting post about utility-belt&lt;/a&gt;, a gem that adds several features to irb (it&amp;rsquo;s a bit like giving irb a Red Bull). Some of its features include:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Launching Vi or TextMate from irb, letting you quickly write or paste some code, save it, close the editor, and test it in irb without creating a file and saving it in a directory.&lt;/li&gt;&#xA;&lt;li&gt;Viewing a command history by typing &amp;ldquo;h&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;Opening the history in TextMate or Vi using &lt;code&gt;hvi&lt;/code&gt; or &lt;code&gt;hmate&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Watch Akita&amp;rsquo;s &lt;a href=&#34;http://www.akitaonrails.com/2008/9/21/ruby-irb-utility-belt&#34;&gt;screencast&lt;/a&gt; to see how it works.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;So far, so good. But the big problem is that I use &lt;strong&gt;Ubuntu&lt;/strong&gt; with &lt;strong&gt;gedit&lt;/strong&gt; to write Ruby code, and utility-belt doesn&amp;rsquo;t have specific methods for launching gedit. The utility-belt help offers &lt;code&gt;edit_interactively(:gedit)&lt;/code&gt;, but of course I couldn&amp;rsquo;t settle for that method; I wanted it to work the same way as it does with Vi or TextMate.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to Become a Famous Rails Developer (Translation)</title>
      <link>https://kindofidea.com/how-to-become-a-famous-rails-developer-translation/</link>
      <pubDate>Mon, 11 May 2009 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/how-to-become-a-famous-rails-developer-translation/</guid>
      <description>&lt;blockquote&gt;Note: Besides being inspiring, this post is very enlightening. It reminds us to put our feet back where they belong: on the ground. It also shows that we can accomplish many great things by making the right choices and doing the one beneficial, sustainable thing in the programming world: reading, writing, and sharing code. If any part of the translation could be improved, feel free to suggest a change. You can find the original text &lt;a href=&#34;https://gist.github.com/0a2655aed6a26fa15a02&#34;&gt;here&lt;/a&gt;. And now, here&#39;s the translated text:&lt;/blockquote&gt;&#xA;&lt;p&gt;Hi everyone, I&amp;rsquo;m &lt;strong&gt;Chris Wanstrath&lt;/strong&gt;, and I&amp;rsquo;m going to teach you how to become a famous Rails developer. A Ruby rock star. A programming ninja. It&amp;rsquo;s not hard: just focus like a laser and have a little patience.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How the Ruby Language Can Help Captain Morrimento</title>
      <link>https://kindofidea.com/how-the-ruby-language-can-help-captain-morrimento/</link>
      <pubDate>Thu, 29 Nov 2007 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/how-the-ruby-language-can-help-captain-morrimento/</guid>
      <description>&lt;p&gt;Hi, everyone. I previously wrote a &lt;a href=&#34;http://valeriofarias.wordpress.com/2007/08/23/primeira-linguagem-de-programacao/&#34;&gt;comparison of Ruby and Pascal&lt;/a&gt;, and now I have received a request to help Captain Morrimento select his recruits using software.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#39;http://valeriofarias.files.wordpress.com/2007/11/capitaomorrimento.jpg&#39; title=&#39;Captain Morrimento&#39;&gt;&lt;img src=&#39;http://valeriofarias.files.wordpress.com/2007/11/capitaomorrimento.jpg&#39; alt=&#39;Captain Morrimento&#39; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The problem is that Captain Morrimento had to go on leave from his battalion, but still wanted to make sure his team stayed in line and keep an eye on the recruits so they would not cause trouble later.&lt;/p&gt;&#xA;&lt;p&gt;To make matters worse, I discovered that Captain Morrimento is very short-tempered and does not want to waste time with a complex interface. He knows how to use basic office software (just a text editor). So he wants something that comes as close as possible to copying the recruits’ records from his PC and pasting them into a field that checks and diagnoses the recruit.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ruby as a First Programming Language!</title>
      <link>https://kindofidea.com/ruby-as-a-first-programming-language/</link>
      <pubDate>Thu, 23 Aug 2007 00:00:00 +0000</pubDate>
      <guid>https://kindofidea.com/ruby-as-a-first-programming-language/</guid>
      <description>&lt;p&gt;Yes, this may sound a little strange to some people, especially the more traditional ones, but that is what I am proposing in this post.&lt;/p&gt;&#xA;&lt;p&gt;My first experience with a programming language was in 1997, with &lt;a href=&#34;http://pt.wikipedia.org/wiki/Pascal_\(linguagem_de_programa%C3%A7%C3%A3o\)&#34;&gt;Pascal&lt;/a&gt;, a language created in 1970 by Niklaus Wirth, whose main goal was to encourage the use of structured code, especially for teaching.&lt;/p&gt;&#xA;&lt;p&gt;Here is a small example of a logical test in Pascal:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-pascal&#34; data-lang=&#34;pascal&#34;&gt;    program Testelogico;&#xA;       &#xA;    var a,b:integer;&#xA;&#xA;    uses crt;&#xA;&#xA;    begin&#xA;     clrscr;&#xA;     writeln (&amp;#39;Digite um número para A&amp;#39;);&#xA;     readln (a);&#xA;     writeln (&amp;#39;Digite o número para B&amp;#39;);&#xA;     readln (b);&#xA;    &#xA;     if (a = b) then&#xA;        writeln (&amp;#39;A é igual a B&amp;#39;)&#xA;     else&#xA;        if (a &amp;amp;lt; b) then&#xA;              writeln (&amp;#39;B é maior que A&amp;#39;)&#xA;        else&#xA;              writeln (&amp;#39;A é maior que B&amp;#39;);&#xA;    end.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;We can see that this code requires learning several concepts related to the language’s structure itself instead of focusing on the problem. For example, it requires parentheses and a semicolon at the end of a block, as well as the classic rule that you do not put a semicolon before &lt;code&gt;else&lt;/code&gt;, because the semicolon is used to end programming blocks.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
