<?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 Jaron Branham on Medium]]></title>
        <description><![CDATA[Stories by Jaron Branham on Medium]]></description>
        <link>https://medium.com/@jaron.branham?source=rss-8b420813949c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Dvj2sz7asz3-T3Kk.</url>
            <title>Stories by Jaron Branham on Medium</title>
            <link>https://medium.com/@jaron.branham?source=rss-8b420813949c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:02:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jaron.branham/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[Understanding BCrypt Front-End]]></title>
            <link>https://medium.com/@jaron.branham/understanding-bcrypt-front-end-5db3c28be540?source=rss-8b420813949c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5db3c28be540</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[bcrypt]]></category>
            <dc:creator><![CDATA[Jaron Branham]]></dc:creator>
            <pubDate>Wed, 01 Nov 2017 23:28:51 GMT</pubDate>
            <atom:updated>2017-11-01T23:28:51.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ds0A3scqjni40ytRedLlg.jpeg" /><figcaption>source: <a href="https://cdn.pixabay.com/photo/2017/09/24/11/59/password-2781614_960_720.jpg">https://cdn.pixabay.com/photo/2017/09/24/11/59/password-2781614_960_720.jpg</a></figcaption></figure><p>If you have used the BCrypt Ruby gem, you might be familiar with the traditional way of implementing BCrypt which involves adding “has_secure_password” to the user model, but what exactly does “has_secure_password” do? The line “has_secure_password” adds methods that set and verify passwords using ActiveModel::SecurePassword public methods. When building a Rails app without an database (active record), your models will not inherit the public methods within Active Method unless you manually add the library by adding the following code to your PORO (model):</p><p>include ActiveModel::SecurePassword<br>has_secure_password<br>attr_accessor :password_digest</p><p>Alternatively we can use BCrypt methods to manually handle our encryption and verification without using “has_secure_password” or Active Model methods.</p><p>But wait- in what scenario would you need to authenticate a user without having a database of users? User data can be stored on another app such as an .json API server, specifically a “username” and “password_digest.”<br>Raw text passwords should NEVER be transmitted, so how do we “verify” the password we are given by a user when attempting to login without sending the raw password to the API server? The obvious answer might to be “encrypt the raw password and send it to the API server” and this would work for creating a user but because of Bcrypt uses a unique “salt” factor for each encryption, encrypting the same password twice will yield unique password_digests. Instead of passing a digest to the API server, we can fetch the existing digest and compare this within our app against the password a user enters.</p><p>BCrypt normally uses .is_password? method which actually contains:<br>if BCrypt::Password.new(“password_digest”) == raw_password<br>which will return a true or false, true being the raw_password matching the digest, or false if it does not.</p><p>With this we can handle client side authentication without transmitting raw password data to and from a remote server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5db3c28be540" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Association Tables in Ruby on Rails]]></title>
            <link>https://medium.com/@jaron.branham/association-tables-in-ruby-on-rails-ad2b072be231?source=rss-8b420813949c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad2b072be231</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[association-tables]]></category>
            <dc:creator><![CDATA[Jaron Branham]]></dc:creator>
            <pubDate>Mon, 09 Oct 2017 18:52:34 GMT</pubDate>
            <atom:updated>2017-10-09T18:52:34.143Z</atom:updated>
            <content:encoded><![CDATA[<p>The concept of one to many is that one table of data can relate to another data of table through a parent-child relationship in that an instance on table A can have multiple related instances on table B. This works except when you want to relate many to many, what happens when table A and table B have shared relationships where different combinations are needed; this is solved with association tables.</p><p>An example of a many-to-many relationship might be: If you decided to buy a car, a 1970 Dodge Charger, where would you store information such as the VIN? If you were to store the VIN in the “cars” table where you store the car’s information such as the year, make and model then you would only be able to sell that car once and would be unable to sell another without adding another row to your car’s table and redundantly adding the year, make and model again. To more efficiently store information, we can store the year, make and model in the car model, while storing the buyer’s information in it’s own model, we store the unique instance of a car and a buyer in a join table. This join table can hold any unique information tied to that sale such as VIN number, form of payment or status of sale.</p><p>If table A stores our buyers, and table B stores our cars- we will need an association table (table C) to hold the unique instances where a specific car and buyer meet. Table C will by nature hold foreign keys (a unique identifier from each table) as well as any information that is part of a unique combination between buyer and a specific car (physically.)</p><p>With a many to many relationship, we will want to associate table A and table B with a join table, table C. After we have created our table A and table B models, we can create another model that will act as a join table by adding unique identifiers from each table, this can easily be done with the default “ID” parameter that is generated and assigned to each entity in a table. Table C will store the ID parameter from table A and table B, this is required to create a join table.</p><p>Once the tables have been linked, we must back our association with logic by adding the following code to the respective controllers for each table. For clarity we will name the tables as follows: Table A will be “Buyers”, Table B will be “Cars” and table C will be “Car_Purchases”.</p><blockquote>Controller for “Buyers”:<br>has_many :car_purchases<br>has_many :cars, :through =&gt; :car_purchases</blockquote><blockquote>Controller for “Cars”:<br>has_many :car_purchases<br>has_many :buyers, :through =&gt; :car_purchases</blockquote><blockquote>Controller for “Car_Purchases”:<br>belongs_to :car<br>belongs_to :buyer</blockquote><p><em>Note: There are scenarios where you might have a one to many and a many to many between the same tables; please reference </em><a href="https://www.theodinproject.com/courses/ruby-on-rails/lessons/active-record-associations"><em>this</em></a><em> link for more information about using “source</em>.”</p><p>Rails generates several commands for us using the above code, but most importantly, either table can use the name of the other table as a method to call combination rows. In the above example, this would allow us to find out exactly which cars a buyer owns and who owns a specific vehicle and all of the information involving the sale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad2b072be231" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Buyer’s Guide to Understanding Computer Processors]]></title>
            <link>https://medium.com/@jaron.branham/buyers-guide-to-understandings-computer-processors-a08b10fb315b?source=rss-8b420813949c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a08b10fb315b</guid>
            <category><![CDATA[computer-parts]]></category>
            <category><![CDATA[shopping]]></category>
            <category><![CDATA[cpu]]></category>
            <category><![CDATA[processors]]></category>
            <dc:creator><![CDATA[Jaron Branham]]></dc:creator>
            <pubDate>Sun, 17 Sep 2017 18:18:15 GMT</pubDate>
            <atom:updated>2017-09-22T21:28:03.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*kciXhq1mA3Sr2aa0EIVkXg.jpeg" /><figcaption>Source: <a href="https://pixabay.com/en/cpu-processor-macro-pen-pin-564771/">https://pixabay.com/en/cpu-processor-macro-pen-pin-564771/</a></figcaption></figure><p>Far too often I hear people fall trap to the misconception that a processor’s capability or quality is based on simply identifying one aspect; this is reflected in statements such as “my computer has an i5” or “my computer has quad-core” but what do these statement <strong><em>really</em></strong> mean? I hope to shed some light on what specifications a consumer needs to look at to understand just how good a processor is so that you don’t fall prey to common sales tactics.</p><p>Intel has been selling processors since 1971 but I will be focusing on the most popular processors seen in today’s products, the Pentium, i3, i5 &amp; i7 models. The first misconception that salesmen will try to push is that all i5 processors are equal or even close in performance but that is far from the truth, without knowing the full model number it is actually impossible to determine the capabilities or speed of a processor with just knowing it is an “i5” this extends to other assumptions as well in that knowing a processor is an i3 does not automatically make it slower or inferior to an i5. This applies to all single-lines of information when looking at a processor such as “dual core/quad core”, “this generation vs last generation”, “3.0 gigahertz”, “5 mb cache”- all of this is meaningless alone but with enough pieces we can better understand what the processor can do.</p><p>So what do all these things mean? Well let’s examine the pieces in relatable terms. The easiest comparison of a processor is a series of bus routes; a bus stops and picks up people(information) and moves along the route moving people from stop to stop while more buses travel difference routes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*8uy502e6p-_M4ljmhjaquw.png" /><figcaption><a href="https://pixabay.com/en/school-road-tour-travel-icon-2381891/">https://pixabay.com/en/school-road-tour-travel-icon-2381891/</a></figcaption></figure><p>When a bus makes a stop, how long before the next bus comes to the same stop? This is close to how clock speed works on a processor and is frequently represented in Gigahertz (Ghz). <strong>Clock speed</strong> represents how frequent information is picked up and moved. Generally the higher the better and this is where “the speed” of the processor is determined.</p><p>Processor cache, which in this case would be the people (information) that have their own sports car and though they drive on the same roads as the buses, they are much faster but only carry limited passengers but while a four seat sports car doesn’t carry very many people, it is still double that of a two seat and that is the comparison for <strong>cache memory; </strong>usually measured in only a few megabytes- the more the better.</p><p>So what about the <strong>processor cores</strong>- well core-count is a very interesting aspect as the usefulness varies. In the above scenario, the number of cores would be the number of bus routes and while this would increase the total number of people we can move over an hour, this doesn’t do much when looking at how many people we move to one location since our bus routes don’t go to the same places. In computer processors, unless you are pushing a lot of information to a lot of different places at a constant rate, then you will not likely see any difference when comparing the number of cores. Would you need more bus routes in a suburb or in a city? Obviously the city would need more routes as there are more people trying to get to different places all at once where as the suburb might be able to have one bus moving the same few people around the same route. Unless you are using specific programs that utilize specific technology, you won’t get much from having more cores, it is perfectly fine to use a dual-core processor for general every day computer use.</p><p>Lastly, I would like to cover <strong>generations</strong>; the generation of a processor represents the architecture of the processor. In the example above, a generation compared to the bus would also be a newer design of a bus. While this doesn’t directly effect the number of people (or information) that can be moved, the newer bus design might have features that the previous did not such as a new sheet metal exterior that is safer but is lighter weight allowing the bus to go faster or better tires for less wear. The same can be said about processor generations, they are general improvements that can slightly impact the efficiency of the processor in various ways but it is safe to say the newer the generation, the more advanced the technology so try to get the latest generation CPU.</p><p>I admit my comparisons are crude and not totally accurate and I am sure someone wiser than me can explain these concepts better but I hope the average consumer can take from this blog that the complexity of a processor’s performance can not be summed up by one aspect.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a08b10fb315b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resources for Beginning Web Developers]]></title>
            <link>https://medium.com/age-of-awareness/resources-for-beginning-web-developers-2345306075?source=rss-8b420813949c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2345306075</guid>
            <category><![CDATA[beginner-web-developer]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[coding-resources]]></category>
            <dc:creator><![CDATA[Jaron Branham]]></dc:creator>
            <pubDate>Mon, 28 Aug 2017 00:42:29 GMT</pubDate>
            <atom:updated>2017-08-28T00:42:29.541Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SQm5ZwCZdYRLXwz9em5xLA.jpeg" /><figcaption>Source: <a href="https://cdn.pixabay.com/photo/2017/08/10/08/47/code-2620118_960_720.jpg">https://cdn.pixabay.com/photo/2017/08/10/08/47/code-2620118_960_720.jpg</a></figcaption></figure><p>When first learning web development it can be quite daunting when you look at the path ahead, although, while the resources on the web are vast and plenty, it is no wonder early developers are faced with the persistent question “Where do I start?” In this blog, I hope to provide a sense of direction for those who are stuck or lost in their early days of learning web development.</p><p>Though web development is possible on a variety of operating systems, there is a strong argument for the OS X; for starters, several languages are embedded into the terminal allowing you to really dive in without too much difficulty. Learning command terminal can be a difficult task, especially when unfamiliar with the OS X operating system, but fear not as <a href="http://www.dummies.com/computers/macs/mac-operating-systems/how-to-use-basic-unix-commands-to-work-in-terminal-on-your-mac/"><strong>Dummies.com</strong></a> has you covered.</p><p>Regardless of preference, every operating system comes with a built-in text editor, although none of them beginner friendly with no features for debugging syntax. Fortunately, there is a multi-platform text editor that offers all of the nifty features a beginner developer needs and better yet, it is free! Check out <a href="https://www.sublimetext.com/"><strong>Sublime Text</strong></a><strong> </strong>and if you enjoy it as much as I have, consider donating.</p><p>The next tool for development, both literal and personal, is GitHub. What can I say that has not already been said about GitHub, but one commonly overlooked feature is the Gists. While versatile in nature, the uses for this resource is limited only by your imagination but to bring that down to scope, Jay Wengrow created an excellent resource that can guide you through the practical uses of <a href="https://medium.com/@jaywengrow/how-to-use-gists-for-fun-and-profit-aa09f58276e1"><strong>Gists</strong></a>.</p><p>If you are learning HTML, you will want to learn <a href="https://getbootstrap.com/docs/3.3/"><strong>Bootstrap</strong></a>. An all-in-one framework for HTML, CSS, and Javascript that allows you to quickly develop production-ready websites in lightning speeds.</p><p>Like HTML, there is a framework for Ruby as well, known commonly as <a href="http://rubyonrails.org/"><strong>Rails</strong></a><strong>;</strong> much like Bootstrap, Rails can save copious amounts of time of mundane formatting and give you a platform to test your work.</p><p>If everything above this point seems to completely foreign to you, perhaps consider a coding bootcamp. There are tons of coding bootcamps, both local and remote offering varying programs that teach specific or even full-stack web development. Normally I would start by recommending you do your research but let me save you the trouble and recommend <a href="http://www.anyonecanlearntocode.com/"><strong>Actualize</strong></a>; they have programs both in-person and online that gives you the ability to keep your job while learning. The weight of one person’s opinion can only go so far but there is no shortage of <a href="https://www.switchup.org/bootcamps/actualize"><strong>critical reviews</strong></a> that seem to agree.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2345306075" width="1" height="1" alt=""><hr><p><a href="https://medium.com/age-of-awareness/resources-for-beginning-web-developers-2345306075">Resources for Beginning Web Developers</a> was originally published in <a href="https://medium.com/age-of-awareness">Age of Awareness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>