<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adrian Horning on Medium]]></title>
        <description><![CDATA[Stories by Adrian Horning on Medium]]></description>
        <link>https://medium.com/@m.adrian.horning?source=rss-ef1d8b41dee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gBxpNfQtT4DIPPk0p-41DA.png</url>
            <title>Stories by Adrian Horning on Medium</title>
            <link>https://medium.com/@m.adrian.horning?source=rss-ef1d8b41dee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:06:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@m.adrian.horning/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Sending an Email through Gmail API (Ruby on Rails)]]></title>
            <link>https://medium.com/@m.adrian.horning/sending-an-email-through-gmail-api-ruby-on-rails-c0acc078ee9a?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0acc078ee9a</guid>
            <category><![CDATA[google-api]]></category>
            <category><![CDATA[gmail]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[api-integration]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Mon, 31 Dec 2018 19:16:06 GMT</pubDate>
            <atom:updated>2020-04-07T23:26:32.043Z</atom:updated>
            <content:encoded><![CDATA[<p>Now at <a href="https://www.adrianhorning.com/how-to-send-email-with-gmail-api-and-rails/">https://www.adrianhorning.com/how-to-send-email-with-gmail-api-and-rails/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0acc078ee9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 10 Commandments of Being a Real Fan]]></title>
            <link>https://medium.com/@m.adrian.horning/the-10-commandments-of-being-a-real-fan-e97415d3ecca?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/e97415d3ecca</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[fans]]></category>
            <category><![CDATA[loyalty]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Mon, 26 Nov 2018 01:21:28 GMT</pubDate>
            <atom:updated>2020-04-07T23:28:32.442Z</atom:updated>
            <content:encoded><![CDATA[<p>Now at <a href="https://www.adrianhorning.com/10-commandments-of-being-a-real-fan/">https://www.adrianhorning.com/10-commandments-of-being-a-real-fan/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e97415d3ecca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why the LDS Church Rebrand is Stupid]]></title>
            <link>https://medium.com/@m.adrian.horning/why-the-lds-church-rebrand-is-stupid-e2353c608d37?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2353c608d37</guid>
            <category><![CDATA[religion]]></category>
            <category><![CDATA[lds]]></category>
            <category><![CDATA[branding]]></category>
            <category><![CDATA[mormon]]></category>
            <category><![CDATA[church]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Fri, 23 Nov 2018 01:21:38 GMT</pubDate>
            <atom:updated>2018-11-23T01:21:38.044Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jA3L7BsG1pGZuMUNqWuWig.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/5lQJTakjVZE?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Spencer Dahl</a> on <a href="https://unsplash.com/search/photos/salt-lake-city?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I am a member of The Church of Jesus Christ of Latter Day Saints (LDS Church), the members of which are often referred to as “Mormons,” after The Book of Mormon.</p><p>Recently, the Church <a href="https://www.mormonnewsroom.org/style-guide">released a statement</a> regarding the name of the church, and how others should refer to it and its members.</p><p>To summarize that statement: the members should not be referred to as “Mormons” and the Church should not be referred to as the “Mormon Church” OR the “LDS Church.”</p><p>This seems rather silly to me, for reasons I will outline.</p><p>But first, let me address something right away.</p><h3><strong>Following the Prophet</strong></h3><p>Many members of the Church will probably say to me that I should “follow the prophet”, or that I should be obedient to what God has said because the prophet has received revelation. We, as members of the Church, are after all told to follow the prophet.</p><p>However, I don’t think that “following the prophet” means rolling over and doing everything the Prophet has said, and the Church would agree with me.</p><p>For example, the scripture that missionaries share with people investigating the church is, after all, <a href="https://www.lds.org/scriptures/bofm/moro/10.3-5?lang=eng">a scripture</a> about not taking their word for it and praying to ask God whether their message is true.</p><p>The Church, in a statement, explicitly said that <a href="https://www.deseretnews.com/article/765655450/LDS-Church-responds-to-concerns-over-member-questions.html">“Church leaders have encouraged civil online dialogue.”</a></p><p>And leaders make mistakes. <a href="https://www.lds.org/general-conference/2013/10/come-join-with-us?lang=eng">President Uctdorf himself has said</a>, “there have been times when members or leaders in the Church have simply made mistakes.” And Sheri Dew also says that <a href="http://www.ldsliving.com/Sheri-Dew-Leaders-of-the-Church-Are-Not-Perfect-or-Infallible-but-They-Are-Indispensable/s/85407">leaders are not infallible</a>.</p><p>But the biggest reason I’m ok being critical of this decision is that <strong>it’s not doctrinal.</strong> It’s not like you get excommunicated for saying you’re a Mormon. This has to do with the culture of the Church, which <a href="https://www.deseretnews.com/article/765655450/LDS-Church-responds-to-concerns-over-member-questions.html">the Church has said</a>,</p><blockquote>“As a Church, we’ve been looking for several years on what we can improve and change — cultural elements that are not tied to doctrine.”</blockquote><p>Alrighty, so now that that’s out of the way, let’s get into why the Church’s recent decision was stupid.</p><h3><strong>Why the Decision was Stupid</strong></h3><h4><em>The Church JUST did a huge campaign embracing the nickname “Mormon” in 2013.</em></h4><p>Here is Lindsey Stirling’s “I’m a Mormon” <a href="https://www.youtube.com/watch?v=5jOhOB8MD7g">video</a> from that campaign. And for that campaign, they made a movie called “Meet the Mormons.”</p><h4><em>EVERYTHING is branded as “Mormon” already</em></h4><p>It might have been more wise to slowly rename the “Mormon” things before you released a statement saying you didn’t want to be called “Mormon.”</p><h4><em>It undermines the credibility of the Church and past Prophets</em></h4><p><a href="https://www.lds.org/general-conference/2018/10/the-correct-name-of-the-church?lang=eng">President Nelson said</a>,</p><blockquote>“And if we allow nicknames to be used or adopt or even sponsor those nicknames ourselves, He is offended. To remove the Lord’s name from the Lord’s Church is a major victory for Satan.”</blockquote><p>So, lemme get this straight, the past prophets who embraced the nickname were offending God and helping Satan get a W?</p><p>I’m no prophet, but from a recruitment standpoint, it seems pretty dumb to say to prospective members that every leader before you was an agent of Satan…</p><h4><em>All sects are referred to by one word</em></h4><p>What do Jews, Christians, Muslims, Atheists, Protestants, Adventists, and Catholics have in common? The sect is grouped by one word. There is something to be said about being concise. It just seems impractical for people to refer to you by such a long name.</p><h4><em>Members of the Church already use TONS of acronyms</em></h4><p>Here is a (small) list: MTC, PEC, PPI, JST, FHE, EFY, CTR.</p><p>You’re telling me that<strong> </strong>these<strong> same members</strong> are going to use the long name when referring to the Church? Right….</p><h4><em>You sound presumptions saying the entire name of the Church</em></h4><p><a href="https://www.lds.org/general-conference/2018/10/the-correct-name-of-the-church?lang=eng">President Nelson said</a>:</p><blockquote>“If someone should ask, “Are you a Mormon?” you could reply, “If you are asking if I am a member of The Church of Jesus Christ of Latter-day Saints, yes, I am!”</blockquote><p>Maybe it’s just me, but that sounds like you’re being a smart ass.</p><h4><em>Maybe there are bigger issues to address</em></h4><p>Like I don’t know…the disintegration of the family, the importance of gender, human rights violations, loving thy neighbor, etc.</p><h4><em>It’s simply impractical</em></h4><p>Lastly, this is just impractical.</p><p>There’s a good reason that the name “Mormon” has come about. The name of the Church is too damn long! Not saying we shouldn’t use it, but it’s completely impractical to same the whole damn thing.</p><p>I thought the Church made a good move embracing the nickname a few years ago, and ultimately I bet that’s right back where we end up in the next several years.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2353c608d37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should I go to a Coding Bootcamp?]]></title>
            <link>https://medium.com/@m.adrian.horning/should-i-go-to-a-coding-bootcamp-c6d1cecdc982?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6d1cecdc982</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[codingbootcamp]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Mon, 12 Nov 2018 02:15:28 GMT</pubDate>
            <atom:updated>2020-04-07T23:29:32.667Z</atom:updated>
            <content:encoded><![CDATA[<p>Now at <a href="https://www.adrianhorning.com/should-i-go-to-a-coding-bootcamp/">https://www.adrianhorning.com/should-i-go-to-a-coding-bootcamp/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6d1cecdc982" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hue might be gone, but the Browns will still suck]]></title>
            <link>https://medium.com/@m.adrian.horning/hue-might-be-gone-but-the-browns-will-still-suck-7cadc9831ebe?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cadc9831ebe</guid>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[cleveland-browns]]></category>
            <category><![CDATA[cleveland]]></category>
            <category><![CDATA[nfl]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Sat, 03 Nov 2018 00:01:06 GMT</pubDate>
            <atom:updated>2020-04-07T23:39:52.711Z</atom:updated>
            <content:encoded><![CDATA[<p>Now at <a href="https://www.adrianhorning.com/hue-might-be-gone-but-the-browns-will-still-suck/">https://www.adrianhorning.com/hue-might-be-gone-but-the-browns-will-still-suck/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cadc9831ebe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Subtle Differences Between Callbacks and Promises]]></title>
            <link>https://medium.com/@m.adrian.horning/the-subtle-differences-between-callbacks-and-promises-8a43e5461bf?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a43e5461bf</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[promises]]></category>
            <category><![CDATA[node]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 22:51:41 GMT</pubDate>
            <atom:updated>2018-09-17T22:51:41.720Z</atom:updated>
            <content:encoded><![CDATA[<p>Promises and Callbacks are pretty similar. In fact, Promises are implemented with Callbacks.</p><p>Other than the obvious differences, the biggest subtle difference is the arguments.</p><p>The first argument in a .then is the onFulfilled function.</p><p>The first argument in a callback is the error</p><p>For example:</p><pre>// Promise<br>const axios = require(‘axios’);</pre><pre>axios.get(‘<a href="http://www.somepage.com&/#39;">http://www.somepage.com&#39;</a>)<br>.then( <strong>response</strong> =&gt; {<br>  console.log(response);<br>})<br>.catch(<strong>error</strong> =&gt; {<br>  console.log(error);<br>});</pre><pre>// Callback <br>const request = require(‘request’);<br>let result;<br>request(&#39;<a href="http://www.somepage.com&/#39;">http://www.somepage.com&#39;</a>, (<strong>error</strong>, <strong>response</strong>, body) =&gt; {<br>    if(error){<br>        // Handle error.<br>    }<br>    else {<br>        result = body;<br>    }<br>});<br>console.log(result);</pre><p>Why didn’t the promise just make the first argument the error? I have no idea. Seems like it would’ve been nice if they would’ve kept with the callback pattern…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a43e5461bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I Learned Switching From MongoDB to MySQL]]></title>
            <link>https://medium.com/@m.adrian.horning/what-i-learned-switching-from-mongodb-to-mysql-82eae702ac76?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/82eae702ac76</guid>
            <category><![CDATA[promises]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 22:36:35 GMT</pubDate>
            <atom:updated>2020-04-07T23:40:21.380Z</atom:updated>
            <content:encoded><![CDATA[<p>Now at <a href="https://www.adrianhorning.com/what-I-learned-switching-from-mangodb-to-mysql/">https://www.adrianhorning.com/what-I-learned-switching-from-mangodb-to-mysql/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82eae702ac76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Connect Local Instance of MySQL to Express/Node]]></title>
            <link>https://medium.com/@m.adrian.horning/how-to-connect-local-instance-of-mysql-to-express-node-1558a97cefa0?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/1558a97cefa0</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Fri, 14 Sep 2018 18:21:51 GMT</pubDate>
            <atom:updated>2020-04-07T23:40:54.603Z</atom:updated>
            <content:encoded><![CDATA[<p>Now at <a href="https://www.adrianhorning.com/how-to-connect-local-instance-of-mysql-to-express-node/">https://www.adrianhorning.com/how-to-connect-local-instance-of-mysql-to-express-node/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1558a97cefa0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Review of App Academy]]></title>
            <link>https://medium.com/@m.adrian.horning/my-review-of-app-academy-3e6b0f94deb4?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e6b0f94deb4</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[codingbootcamp]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 19:34:21 GMT</pubDate>
            <atom:updated>2020-04-07T23:41:21.540Z</atom:updated>
            <content:encoded><![CDATA[<p>Now at <a href="https://www.adrianhorning.com/my-review-of-app-academy/">https://www.adrianhorning.com/my-review-of-app-academy/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e6b0f94deb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Array of Array Products (Pramp, JavaScript)]]></title>
            <link>https://medium.com/@m.adrian.horning/array-of-array-products-pramp-javascript-936d7610db71?source=rss-ef1d8b41dee------2</link>
            <guid isPermaLink="false">https://medium.com/p/936d7610db71</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Adrian Horning]]></dc:creator>
            <pubDate>Thu, 26 Apr 2018 21:25:34 GMT</pubDate>
            <atom:updated>2018-04-26T21:25:34.951Z</atom:updated>
            <content:encoded><![CDATA[<p>Given an array of integers arr, you’re asked to calculate for each index i the product of all integers except the integer at that index (i.e. except arr[i]). Implement a function arrayOfArrayProducts that takes an array of integers and returns an array of the products.</p><p>Solve without using division and analyze your solution’s time and space complexities.</p><p>Naive solution is to have 2 nested for loops. 0(n²) Time Complexity.</p><h3>Optimal Solution</h3><pre>exampleInput = [2, 7, 3, 4];</pre><p>So to break this down, each number is simply the result of the products of the numbers to the left and right of the current number.</p><p>So let’s calculate that.</p><ul><li>Product of everything to the left of 2 is nothing, so let’s say it’s <strong>1</strong></li><li>Product of everything to the left of 7 is <strong>2</strong></li><li>Product of everything to the left of 3 is <strong>14</strong> (7 *2)</li><li>Product of everything to the left of 4 is <strong>42 </strong>(3 * 7 * 2)</li></ul><p>Great, and if we stored that in an array, it would look something like this:</p><pre>left = [1, 2, 14, 42]</pre><p>Now, let’s calculate the product of all the numbers to the right of our current number.</p><pre>exampleInput = [2, 7, 3, 4];</pre><ul><li>Product of everything to the right of 2 is <strong>84 </strong>(7 * 3 *4)</li><li>Product of everything to the right of 7 is <strong>12</strong> (3 * 4)</li><li>Product of everything to the right of 3 is just <strong>4</strong></li><li>Product of everything to the right of 4 is nothing, so let’s just say it’s <strong>1</strong></li></ul><p>If we stored all that in an array, it would look like so:</p><pre>right = [84, 12, 4, 1]</pre><p>Then, all we have to do is multiply left[i] by right[i] and voila! Here is the result:</p><pre>result = [84, 24, 56, 42]</pre><p>Now here it’s actually implemented:</p><pre>function arrayOfArrayProducts(arr) {<br>  <br>  if (arr.length &lt;= 1) {<br>    return [];<br>  }</pre><pre>  var results = [];<br>  var right = [];</pre><pre>  // always going to start off the left with 1<br>  var left = [1];</pre><pre>  // we need the last item to be 1, because we&#39;re going to iterate <br>  //from the end of the array  <br>  <br>  right[arr.length-1] = 1;<br>  </pre><pre>  //loop over the array, calculating the current value by<br>  // everything that is to the left of the current number</pre><pre>  <br>  for (var i = 1; i&lt;arr.length; i++) {<br>    left[i] = left[i-1]*arr[i-1];<br>  }</pre><pre>  // same here for the right, but in reverse <br>  <br>  for (var i = arr.length-2; i&gt;-1; i--) {<br>   right[i] = right[i+1]*arr[i+1];<br>  }</pre><pre>  // loop over array and calculate the final result numbers!!</pre><pre>  for (var i = 0; i&lt;arr.length; i++) {<br>    results[i] = left[i]*right[i];<br>  }<br> return results;<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=936d7610db71" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>