<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pascal on Kind of Idea</title>
    <link>https://kindofidea.com/tags/pascal/</link>
    <description>Recent content in Pascal on Kind of Idea</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Thu, 23 Aug 2007 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://kindofidea.com/tags/pascal/index.xml" rel="self" type="application/rss+xml" />
    <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>
