<?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: Phippsy</title>
    <description>The latest articles on DEV Community by Phippsy (@michaelphipps).</description>
    <link>https://dev.to/michaelphipps</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%2F364523%2F1bd6d39b-3c1f-4db0-ae98-1184ce3b0988.png</url>
      <title>DEV Community: Phippsy</title>
      <link>https://dev.to/michaelphipps</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michaelphipps"/>
    <language>en</language>
    <item>
      <title>Three.js: Rolling a Sphere on a planet with structures</title>
      <dc:creator>Phippsy</dc:creator>
      <pubDate>Sat, 26 Sep 2020 02:37:08 +0000</pubDate>
      <link>https://dev.to/michaelphipps/three-js-rolling-a-sphere-on-a-planet-with-structures-54ic</link>
      <guid>https://dev.to/michaelphipps/three-js-rolling-a-sphere-on-a-planet-with-structures-54ic</guid>
      <description>&lt;p&gt;Hi!  Just wanted to share some work in progress for a three.js game I am working on inspired by a mobile game called Pinout.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Mp2oePgJbZw"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;If there's enough interest I will start sharing more detailed progress on what I'm doing.&lt;/p&gt;

</description>
      <category>threejs</category>
      <category>rotate</category>
      <category>sphere</category>
      <category>matrix</category>
    </item>
    <item>
      <title>Coding 🤦‍♂️</title>
      <dc:creator>Phippsy</dc:creator>
      <pubDate>Thu, 17 Sep 2020 01:22:28 +0000</pubDate>
      <link>https://dev.to/michaelphipps/coding-2abc</link>
      <guid>https://dev.to/michaelphipps/coding-2abc</guid>
      <description>&lt;p&gt;&lt;strong&gt;Today I actually thought Firefox had disabled window.alert();.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I almost never use alert() in my code.  In this instance I was using alert() as a place holder and took the opportunity to share my impeccable sense of humor.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alert('Just kidding.  You can't do that right now');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzclde8kka7yjtwd93kz2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzclde8kka7yjtwd93kz2.png" alt="Hilarious Alert Message"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hilarious, right?  (don't you roll your eyes at me!)&lt;/p&gt;

&lt;p&gt;So I tried it out in my app... nothing happened!  I check console to be greeted by:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Uncaught TypeError: alert is not a function
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;WTF?&lt;/p&gt;

&lt;p&gt;I was really ready let rip at Firefox.  The world needs to know about this.  Heads were gonna roll!  I started searching to gather evidence to see when they had disabled window.alert().  Couldn't find anything.  After more time than I care to admit, I saw a Stack Overflow answer explaining how to disable window.alert() in code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alert = function() {};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's when it occurred to me that this was a PEBKAC error (Problem Exists Between Keyboard And Chair).  &lt;/p&gt;

&lt;p&gt;Could it be more likely that &lt;strong&gt;I&lt;/strong&gt; caused this problem rather than the possibility that a widely adopted browser had suddenly disabled window.alert()?&lt;/p&gt;

&lt;p&gt;I searched my code base and found this gem:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alert={};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Yep.  That's 20+ years javascript experience right there folks.&lt;/p&gt;

&lt;p&gt;It would make me feel better if you guys could maybe share your own facepalm moments in the comments!  Mind you, I'm gonna feel pretty stupid if the comments are empty...&lt;/p&gt;

&lt;p&gt;I hope you've enjoyed my first DEV post.&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
  </channel>
</rss>
