<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniel Kehoe</title>
    <description>The latest articles on DEV Community by Daniel Kehoe (@danielkehoe).</description>
    <link>https://dev.to/danielkehoe</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F422841%2F3fe5544e-2ee6-43f4-90de-2941b7ec700c.png</url>
      <title>DEV Community: Daniel Kehoe</title>
      <link>https://dev.to/danielkehoe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danielkehoe"/>
    <language>en</language>
    <item>
      <title>How to check if Ruby is installed on a Mac</title>
      <dc:creator>Daniel Kehoe</dc:creator>
      <pubDate>Tue, 09 Feb 2021 09:20:44 +0000</pubDate>
      <link>https://dev.to/danielkehoe/how-to-check-if-ruby-is-installed-on-a-mac-39g6</link>
      <guid>https://dev.to/danielkehoe/how-to-check-if-ruby-is-installed-on-a-mac-39g6</guid>
      <description>&lt;p&gt;&lt;em&gt;Is Ruby installed on my Mac?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Ruby comes pre-installed on macOS Catalina and Big Sur (see below why you may not want to use the default Ruby).&lt;/p&gt;

&lt;p&gt;To check if Ruby is installed, enter in your terminal application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;ruby &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Don't type the &lt;code&gt;$&lt;/code&gt; character.)&lt;/p&gt;

&lt;p&gt;If Ruby is not installed, you'll see:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;zsh: &lt;span class="nb"&gt;command &lt;/span&gt;not found: ruby
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;which&lt;/code&gt; command will confirm that Ruby is missing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;which ruby
ruby not found
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can use the &lt;code&gt;which&lt;/code&gt; command with flag &lt;code&gt;-a&lt;/code&gt; to see if more than one Ruby executable is installed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;which &lt;span class="nt"&gt;-a&lt;/span&gt; ruby
/Users/daniel/.asdf/shims/ruby
/usr/bin/ruby
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If Ruby is installed, the &lt;code&gt;ruby -v&lt;/code&gt; command will show a response like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;ruby &lt;span class="nt"&gt;-v&lt;/span&gt;
ruby 2.6.3p62
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MacOS comes with a "system Ruby" pre-installed. Use the &lt;code&gt;which&lt;/code&gt; command to see if you are using the system Ruby:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;which ruby
/usr/bin/ruby
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you see &lt;code&gt;/usr/bin/ruby&lt;/code&gt;, it is the pre-installed macOS system Ruby. It's fine to use the system Ruby for running sysadmin scripts, as long as you don't alter the system Ruby by attempting to update it or add gems. But experienced developers don't use the system Ruby for developing projects in Ruby. See the article, &lt;a href="https://www.freecodecamp.org/news/do-not-use-mac-system-ruby-do-this-instead/"&gt;Do not use the MacOS system Ruby&lt;/a&gt;. You can &lt;a href="https://mac.install.guide/ruby/12.html"&gt;Install Ruby with Homebrew&lt;/a&gt;. Or use a version manager such as asdf, chruby, rbenv, or rvm. A version manager can also help if you're juggling multiple projects that can't be updated all at once.&lt;/p&gt;

&lt;p&gt;For a guide that compares version managers and shows the best way to install Ruby, see &lt;a href="https://mac.install.guide/ruby/index.html"&gt;Install Ruby on a Mac&lt;/a&gt;. If you're going to build web applications with Rails, see &lt;a href="https://learn-rails.com/install-rails-mac/index.html"&gt;Install Ruby on Rails on a Mac&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>macos</category>
    </item>
    <item>
      <title>The 30th Anniversary of the Web</title>
      <dc:creator>Daniel Kehoe</dc:creator>
      <pubDate>Mon, 28 Dec 2020 17:49:47 +0000</pubDate>
      <link>https://dev.to/danielkehoe/the-30th-anniversary-of-the-web-1pel</link>
      <guid>https://dev.to/danielkehoe/the-30th-anniversary-of-the-web-1pel</guid>
      <description>&lt;p&gt;The web is thirty years old this month, counting from the date the &lt;a href="https://www.w3.org/2012/08/history-of-the-web/origins.htm"&gt;first web server was launched on Christmas Day 1990&lt;/a&gt;. Personally, August 6th, 1991, is more significant, when the web was publicly announced.&lt;/p&gt;

&lt;p&gt;In 1991 I was writing for &lt;em&gt;NeXTWORLD&lt;/em&gt; magazine, which was a lot of fun because I got to work with, and write about, people who were doing fascinating things with computer technology. Working for &lt;em&gt;NeXTWORLD&lt;/em&gt; led to writing the book &lt;em&gt;Taking the Next Step&lt;/em&gt; and a short stint at Steve Jobs's &lt;a href="https://en.wikipedia.org/wiki/NeXT"&gt;NeXT&lt;/a&gt; as a technical writer.&lt;/p&gt;

&lt;p&gt;The most innovative project I encountered that year was not NeXT. Rather, it was something developed by Tim Berners-Lee, a researcher at CERN, the European particle physics laboratory. He used a NeXT computer to develop a networked information system for high-energy physicists. If I hadn't been reading  the &lt;em&gt;comp.sys.next&lt;/em&gt; Usenet newsgroups carefully, I would have missed the announcement of "a hypertext editor for the NeXT."&lt;/p&gt;

&lt;p&gt;Not many people used "WWWNeXTStepEditor version 0.12." The NeXT community was small, and many NeXT computer users did not yet have Internet access, which was required to access Tim Berners-Lee's experimental "WorldWideWeb" documents. To me, the name WorldWideWeb seemed a bit of a conceit since the only users at the time were high-energy physicists at a few research institutes.&lt;/p&gt;

&lt;p&gt;Nonetheless, as soon as I'd installed and tried the software, I wanted to get involved. I told everyone about it, including a fellow editor at &lt;em&gt;NeXTWORLD,&lt;/em&gt; &lt;a href="https://en.wikipedia.org/wiki/John_Perry_Barlow"&gt;John Perry Barlow&lt;/a&gt;. Barlow, a lyricist for the Grateful Dead, and co-founder of the (then-new) Electronic Frontier Foundation, wrote to his friend &lt;a href="https://en.wikipedia.org/wiki/Mitch_Kapor"&gt;Mitch Kapor&lt;/a&gt;...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ixceljxc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://blog.yax.com/images/post1-barlow.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ixceljxc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://blog.yax.com/images/post1-barlow.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you don't recognize Barlow's references, &lt;a href="https://en.wikipedia.org/wiki/Project_Xanadu"&gt;Project Xanadu&lt;/a&gt; was a visionary hypertext project that predated the Internet. The Matrix is not the movie universe created by the Wachowskis but rather the network of computer networks that existed before the commercialization of the Internet (as described by the researcher &lt;a href="https://en.wikipedia.org/wiki/John_Quarterman"&gt;John Quarterman&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Subsequently, I joined the &lt;a href="https://lists.w3.org/Archives/Public/www-talk/1991SepOct/0001.html"&gt;www-talk mailing list&lt;/a&gt; and also contacted Tim Berners-Lee directly. I wanted to know if he was interested in technology I'd heard about from friends at Adobe Systems. Adobe's editable PostScript specification (which came to be named PDF and became the basis for a product named "Acrobat") seemed to me a better match for distributed hypertext than the very-limited SGML-based "HTML tags" that Tim Berners-Lee was using. HTML offered only minimal layout and styling possibilities; &lt;a href="https://en.wikipedia.org/wiki/PostScript"&gt;PostScript&lt;/a&gt; was a better page description language.&lt;/p&gt;

&lt;p&gt;Here's an excerpt...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q_jWqHNl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://blog.yax.com/images/post1-timbl.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q_jWqHNl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://blog.yax.com/images/post1-timbl.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tim Berners-Lee was reluctant to publicize that code for the web was available for free, as management at CERN had not yet agreed to release it publicly (that didn't happen until &lt;a href="https://cds.cern.ch/record/1164399"&gt;April 1993&lt;/a&gt;). Plus, the editors at &lt;em&gt;NeXTWORLD&lt;/em&gt; were not interested in a product that was only useful to the few NeXT users with Internet access, so I wasn't able to write about it for &lt;em&gt;NeXTWORLD&lt;/em&gt; (too bad, as I could have been the first journalist to write about the web!).&lt;/p&gt;

&lt;p&gt;Subsequently, editable PostScript was released, and in 1993, &lt;a href="https://en.wikipedia.org/wiki/Robert_Cailliau"&gt;Robert Cailliau&lt;/a&gt; of CERN visited me in California. I arranged a meeting between Cailliau and management at Adobe Systems. He met with John Kunze of Adobe at the Stanford Linear Accelerator Center (SLAC) and demonstrated the WorldWideWeb — the first time management at Adobe had seen the web. By that time, HTML was firmly entrenched as the native language of the new web. Adobe later invested in Netscape Communications and produced an Acrobat plug-in for the Netscape web browser, establishing the basis for viewing richly formatted PDF pages in web browsers.&lt;/p&gt;

&lt;p&gt;For some years afterward, I regretted that the Adobe/WWW meeting had not taken place the previous year, because I imagined the richer PDF language might have eclipsed the sparse and limited HTML language as the primary syntax of web pages. With the adoption of the &lt;a href="http://www.w3.org/Style/LieBos2e/history/"&gt;Cascading Style Sheets specification&lt;/a&gt; (from 1999 forward), my views changed. I've come to appreciate that the technical underpinnings of the web are optimal, reflecting both the genius of Berners-Lee's original vision and the rich contributions of the worldwide developer community.&lt;/p&gt;

&lt;p&gt;Thirty years later, it is easy to overlook the web's origins as a tool for sharing knowledge. Key to Tim Berners-Lee's vision were open standards that reflected his belief in the &lt;a href="https://www.w3.org/2001/tag/doc/leastPower"&gt;Rule of Least Power&lt;/a&gt;, a principle that choosing the simplest and least powerful language for a given purpose allows you to do more with the data stored in that language (thus, HTML is easier for humans or machines to interpret and analyze than PostScript). Along with open standards and the Rule of Least Power, Tim Berners-Lee wanted to make it easy for anyone to publish information in the form of web pages. His first web browser, named Nexus, was both a browser and editor. The NeXTSTEP SDK made editing easy to implement; editing was abandoned in subsequent non-NeXT web browsers.&lt;/p&gt;

&lt;p&gt;I think we've lost sight of that original vision. Facebook or Wix makes it easy to author web pages but at the cost of lock-in to proprietary systems. And when developers choose complex software such as React or Rails to build simple websites, I cringe at the violation of Rule of Least Power. I still have a "deep case of net religion" (as John Perry Barlow said in 1991), and I'm now writing about ways to build websites without frameworks and build tools (see my articles, &lt;a href="https://tutorials.yax.com/articles/build-websites-the-yax-way/index.html"&gt;Build Websites the Yax Way&lt;/a&gt;). My current project, &lt;a href="https://yax.com/"&gt;Yax.com&lt;/a&gt;, is a do-it-yourself website builder that uses new web standards (including web components) to help people build simple sites. Thirty years on, we still have a lot of work to do to realize the web's original goals.&lt;/p&gt;

&lt;p&gt;I never anticipated that Berners-Lee's NeXT hypertext project would become a medium to supplant print and television. In 1991, during idle moments, I imagined the world's books and magazines might be reborn as hypertext (many others had imagined this earlier, including Ted Nelson, with his Xanadu project). But I never honestly believed that Berners-Lee's software project could change the world. By 1999, as web addresses appeared on billboards and the sides of buses, I started to accept that Berners-Lee naming his project "the WorldWide Web" was not vainglorious but merely prescient. Still, I hope its utility as a platform for commerce does not eclipse our original vision of the web as a means for sharing the world’s knowledge.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>discuss</category>
      <category>news</category>
    </item>
  </channel>
</rss>
