<?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: wilijones</title>
    <description>The latest articles on DEV Community by wilijones (@wilijones).</description>
    <link>https://dev.to/wilijones</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%2F563059%2Ff1eca8e8-8e85-4961-8afb-77f42abd89ae.jpeg</url>
      <title>DEV Community: wilijones</title>
      <link>https://dev.to/wilijones</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wilijones"/>
    <language>en</language>
    <item>
      <title>The Twilight Zone / Bermuda Triangle of Javascript</title>
      <dc:creator>wilijones</dc:creator>
      <pubDate>Thu, 04 Mar 2021 01:30:58 +0000</pubDate>
      <link>https://dev.to/wilijones/the-twilight-zone-bermuda-triangle-of-javascript-4bd2</link>
      <guid>https://dev.to/wilijones/the-twilight-zone-bermuda-triangle-of-javascript-4bd2</guid>
      <description>&lt;p&gt;An alternative universe of space and time awaits.  An exotic place where 3 + 3 is not always six and the the nexus of time is 2 and a half years after the 1967 summer of love. &lt;/p&gt;

&lt;p&gt;A relative psychedelic Bermuda triangle of bending reality you say?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--igswno9c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lggg8ubvwqdhs0d591i0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--igswno9c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lggg8ubvwqdhs0d591i0.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I can not tell you what was or was not involved in this universe's conception. I was not there and anyway if you ask Peter Paul and Mary their most famous song is just about a boy and a dragon and the theme of getting old and thats it.  Who knows about those cats with the bitten apple symbol on their machines and what that is supposed to mean - we can only speculate - and end up back at Harvard with Norbert Wiener after the war. But I digress into pop nostalgia.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YkUyxL_a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjmrfw43sy59iwfwvvt2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YkUyxL_a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjmrfw43sy59iwfwvvt2.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Nexus of Time - Well apparently there is all kind of time.  Solar Time, Greenwich Mean Time, UTC Time, Terrence McKenna had the theory time was constantly speeding up and slowing down with regards to novelty or auspicious events occurring around us.  Unix time which computers use seems to be the most Saturnian in its Chronos-like constance and unwavering inhumanity. In this banal godless world the beginning of time was Jan 1, 1970 the "Unix Epoch" and everyday is exactly the same 86,400 seconds winter, spring and fall.  Chaos is sometimes defined as complete lack of variation - organization is thus made impossible because no pattern can be created when everything is the same.  Bleak.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--l3hHDMeN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73hvv1ghgktlov3ub3nw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--l3hHDMeN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73hvv1ghgktlov3ub3nw.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
And what about the Numbers? What the sam-i-el is up with this weird arithmetic Javascript be dropping on our otherwise mundane and quiet financially oppressed police state in between the oceans.&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4yVP3t8W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o8j3s0x8btri1zo2hoso.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4yVP3t8W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o8j3s0x8btri1zo2hoso.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We didn't make it this far without knowing that a fifth of a tenth and also a tenth of a fifth will get you one fiftieth or in regular dimensional non twilight zone math:  .2 x .1 = .02&lt;br&gt;
So what is the deal?&lt;/p&gt;

&lt;p&gt;Floating Point - well it turns out computers use some kind of binary scientific notation style for their calculations where fractions are referred to as "bicimals" instead of "decimals."&lt;/p&gt;

&lt;p&gt;In this land of flying dragons one tenth is a repeating decimal similar to 1/3 being the equivalent of .3333333 on into eternity.  While we are accustomed to dealing with these common failures of our own dimensional understanding and allowing for them, we find ourselves shocked when they occur amidst the strange javascript reality.  The fault I suppose is ours for thinking we were still in Kansas when we should have known by the technicolor and golden road that we were not.&lt;/p&gt;

</description>
      <category>finneganswake</category>
      <category>humor</category>
      <category>psychedelia</category>
      <category>time</category>
    </item>
    <item>
      <title>JQuery, The DOM, the Don and The Domain</title>
      <dc:creator>wilijones</dc:creator>
      <pubDate>Wed, 20 Jan 2021 18:47:26 +0000</pubDate>
      <link>https://dev.to/wilijones/jquery-the-dom-the-don-and-the-domain-2fh2</link>
      <guid>https://dev.to/wilijones/jquery-the-dom-the-don-and-the-domain-2fh2</guid>
      <description>&lt;p&gt;The DOM - When I first heard of the DOM - I thought domination, master of the domain. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QgGByoqx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bi0ouwjqcaf118s9m2ow.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QgGByoqx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bi0ouwjqcaf118s9m2ow.jpg" alt="download"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And while we seek domination and control through our programming efforts, in this case the DOM has little to do with domination or a given domain and about control over the Document Object Model of the document that you are working on.  When modeled as an object the document is ready to be manipulated (ok maybe dominated) by javascript.&lt;/p&gt;

&lt;p&gt;What the heck is the Domain then?&lt;/p&gt;

&lt;p&gt;The Domain was historically the area that was ruled over by a particular lord, ruler or other center of power.  It may have been as large as an empire or as small as a few acres of land.  The origin of the word can be traced to the Latin word "dominus." Also related is the word "Don" used in the Spanish language to desribe a feudal lord and popularized by the Italian American Mafia in the media, as in "Don Corleone."&lt;br&gt;&lt;br&gt;
   Another way to think of the word is "house" both in the royal sense and in the mundane.  The domain was dominated by a particular domus(house), like the Hapsburg family who ruled Central Europe for more than a thousand years.  We see the phrase eminent-domain used with regards to property appropriation in urban planning and city structural design. And finally domaine to describe an self-contained estate residency that grows grapes and bottles burgundy.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--E17HPZfM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/6njowjny1vn0lfo1szn4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--E17HPZfM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/6njowjny1vn0lfo1szn4.jpg" alt="images"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yeah but what is it with regard to Computers?&lt;/p&gt;

&lt;p&gt;In computers and computing Domain similarly refers to an area where a particular structure holds power.  More specifically it refers to the section of a computer or network of computers that can be accessed from a given place or with a given program.  Ultimately the internet is also divided into domains each with a unique domain name. The DNS or Domain Name System is how the internet is organized a bunch of domains within domains each with their own IP addresses.&lt;br&gt;
   By calling document.domain you can obtain the domain name of the sever that document is stored on.  What we often refer to as a website or web address can be seen as a domain as can be a collection of websites like those ending in .org or .eu - these are the largest categories called TLD or top level domains.&lt;/p&gt;

&lt;p&gt;So back to the DOM... Using JQUERY&lt;/p&gt;

&lt;p&gt;So the Document Object Model is something completely different than domain that just has a similar sounding name.&lt;br&gt;
      We can use JQuery to make changes in the DOM structure and contents.  This is referred to as "Dom Manipulation."  JQuery is used with javascript but it has its own syntax. It uses the "$" sign to indicate you are making a JQuery function call.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qNNTLe_j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/jg804odys34qsk8xnnq1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qNNTLe_j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/jg804odys34qsk8xnnq1.png" alt="Screen Shot 2021-01-20 at 11.29.42 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above code we use JQuery to first select the tileArea section of the DOM.  We use a series of calls of the Jquery method ".css()" to style the text and color of the title area section.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4_LT3zrl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1t4gvwyk45vw6wu5peu8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4_LT3zrl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1t4gvwyk45vw6wu5peu8.png" alt="Screen Shot 2021-01-20 at 11.39.03 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The titleArea is located here in the html structure of the document.  Specifically the document body which is an object that can be selected as whole by calling document.body. The titleArea section is the only section with the ID equal to titleArea.  But you can select multiple sections at once by calling them according to class name or by the div type.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rJNL8lky--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gkd0ngm11v20tsbb93a8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rJNL8lky--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gkd0ngm11v20tsbb93a8.png" alt="Screen Shot 2021-01-20 at 11.52.10 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You aren't just limited to making styling changes you can change the structure of the html and start down the path of being a real Don who can manipulate the DOM.  In the final example here we are able to add new divisions within out html structure using JQuery commands.  These sections can in turn be added to subtracted from or styled using further JQuery methods.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vDQsvfYe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3py7c4uunqa4c8jj0e8g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vDQsvfYe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3py7c4uunqa4c8jj0e8g.png" alt="Screen Shot 2021-01-20 at 12.03.35 PM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Keep practicing JQuery and you can become the latin "Dominus" of the DOM.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
