<?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 Sebastian Hove on Medium]]></title>
        <description><![CDATA[Stories by Sebastian Hove on Medium]]></description>
        <link>https://medium.com/@sebastianhove?source=rss-beef1ef6b6e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LiZm6qXwhF0pwpdT</url>
            <title>Stories by Sebastian Hove on Medium</title>
            <link>https://medium.com/@sebastianhove?source=rss-beef1ef6b6e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 02:52:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sebastianhove/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[Building A Computer For Coding, How To Build and How To Save a Dollar]]></title>
            <link>https://medium.com/@sebastianhove/building-a-computer-for-coding-how-to-build-and-how-to-save-a-dollar-d573e4ae620a?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d573e4ae620a</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Mon, 14 Sep 2020 18:27:54 GMT</pubDate>
            <atom:updated>2020-09-14T19:23:28.401Z</atom:updated>
            <content:encoded><![CDATA[<p>So, you’re programming small JavaScript apps on your 8 year old PC and everything’s going great. Then one day you decide to incorporate MySQL or PostgreSQL and for some reason your computer becomes sluggish, unresponsive, and crashes after you run another instance of node.js.</p><p>That’s essentially what happened to me. I never had any issues until I ran some CPU heavy packages. My Intel i5–3570K that I bought in 2012 simply couldn’t stand up to the tasks that were placed before it when I got into programming with Node.</p><p>I was forced midway through a project to switch over to my MacBook Pro that I purchased in late 2017, and it was able to handle everything I threw at it near flawlessly.</p><p>What I want to talk about today is potentially building your own computer, the basics you need to understand, and how to move forward with your decision. You could go to Best Buy and buy a prebuilt computer, but 95% of the time there is a cost associated with buying a prebuilt vs building it yourself. Which is completely understandable, but when you look at a company like Apple or Alienware— they charge one hell of a premium, sometimes an extra $1000+ for the ‘name’ and the exact same components which you could have built yourself.</p><p>A lot of programmers seem to recommend Macs, and I personally love mine, it has great workflow with the way its OS is designed, flipping between multiple monitors is a breeze at the flick of a wrist, and homebrew is a Mac exclusive which is great for installing certain packages.</p><p>There is one downside though, the price is pretty hefty for a Mac or MacBook. I’m not here to knock it, I think it’s a solid purchase. The last MacBook Pro I bought was in 2008 for music production, and it lasted me nine years before it died on me, for that, I thought Apple deserved another purchase from me.</p><p>I will touch basis on something called a Hackintosh down this post, but I will be starting with building a Windows based PC, and how to go about it.</p><p>The first thing you need to know about building your own computer:</p><p><strong><em>It’s not that difficult.</em></strong></p><p>Whenever someone asks me where I bought my computer and I say I built it myself they immediately think I’m a tech wizard which is absolutely not the case. You’re simply taking parts, and inserting them into their respective slots, with a few more steps here and there.</p><p>Here’s what you essentially need: <br>Case, Power Supply, Motherboard, Hard Drive, CPU, GPU (not pictured below), RAM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*ReO8RzpxVqLj_pSjhtEz-Q.png" /></figure><p>The Case is what houses your components, this is more of a personal choice since it’s what you’re going to be looking at day in and day out.</p><p>The Power Supply is self explanatory — it supplies power to the CPU, GPU, Hard Drives, and the Motherboard (side note: don’t skim on this component when purchasing, a bad power supply can fry your entire system).</p><p>The Motherboard is the canvas where all other components ‘plug into’ and provides circuitry allowing communication between them.</p><p>Hard Drive is what houses your operation system and your programs. I would highly advise to go with a Solid State Drive over a traditional HDD drive, at least for your operating system. While at a higher GB/$ cost than traditional HDD’s It’s been one of the biggest performance boosters in recent years when it comes to how fast your system can operate. You can always buy a smaller SSD size for your OS and Apps and have a separate traditional HDD to store music and movies if that’s what you need. But, trust me on this one. (Note as this article is written SSD prices are falling due to greater supply in the market with the lack of smart phone demands this year).</p><p>CPU is your central processing unit — this is the heart of your computer, it processes all instructions and constantly receives input from the user or active software programs. The thing you need to ask yourself is how powerful of a chip do you need, if you’re only programming, go with an AMD Ryzen, they are faster than Intel’s competition in certain factors such as video editing, rendering, compiling. Intel does have a leg up in other factors, but with a cost to power factor, go with AMD, they’ve been making great strides in recent years to narrow the gap in performance with Intel.</p><p>The GPU wasn’t always a large component in builds, depending on what you need now and what you may need in the future is something to take into consideration. Video Games, Video Rendering, Video Editing, (even Bitcoin mining) all take a slice of power out of these. They can range from under $100 to several thousand.</p><p>RAM — Random Access Memory — This is one of the most important components in determining your system’s performance. RAM gives applications a place to store and access data on a short term-basis so it can be accessed more quickly than having to go into a hard drive every time. If you’re only web-browsing, 8 GB is fine, but standard these days is to go with 16 GB.</p><p>Alright, now that we have all the parts out of the way let’s talk about actually building it. CPU, GPU, RAM, HardDrive, all essentially just plug into the motherboard, which you then place and screw into the case. Plug in their respective cables into the Motherboard and the Power Supply and you’re done. Easy, right?</p><p>There’s a few more things to it than that, but when I built my first computer in 2012 I followed Linus Tech Tips step by step, he always does a build video, I used this one for my last:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fv7MYOpFONCU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dv7MYOpFONCU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fv7MYOpFONCU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cfdecd81e768d47fb66151863aeca183/href">https://medium.com/media/cfdecd81e768d47fb66151863aeca183/href</a></iframe><p>Something to note: you can’t just take any component and mismatch it with others, Motherboards don’t just accommodate any type of RAM, and only take certain types of processors. PCI-E slots are pretty much universal for video cards, so that mainly comes down to personal preference for your GPU. But, keep in mind you need to do your own research before buying.</p><p>And lastly, what’s a Hackintosh? Essentially it’s a computer that has the ability to run Apple’s operating system. I’m not going into the ethics of it, I’m just here to say it’s possible to build a system that costs the third of going to an Apple store and buying one from them. The problem here is that it’s a LOT more restrictive in the parts you can use to build it. I’ve never done it, but if I have the time I think it would be a fun side project. If it piques your interest at all, head over to this post on Reddit and get reading:</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=reddit&amp;url=https%3A//www.reddit.com/r/hackintosh/comments/f6esa8/getting_started_with_hackintoshes/&amp;image=https%3A//i.embed.ly/1/image%3Furl%3Dhttps%253A%252F%252Fexternal-preview.redd.it%252FQdWklwoIwHf_IZu8E0bZQNiOqwiLrV3OCvlY4gdKXrk.jpg%253Fauto%253Dwebp%2526s%253D3ad35311aac2ce8fe9d8c83fec373dad015aef83%26key%3Da19fcc184b9711e1b4764040d3dc5c07" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb1e2273e63b4a83fc1328e686378e94/href">https://medium.com/media/bb1e2273e63b4a83fc1328e686378e94/href</a></iframe><p>Honorable mention: Ubuntu/Linux — a lot of coders use this, but this post is more for someone entering building/coding, and I believe it’s better to enter on a familiar platform like Windows or Mac OS than feel overwhelmed with Linux, which is an open source OS so users can change the source code if they want, whereas Windows/Mac is commercial so users don’t have access to the source code.</p><p>If you want to give it a try though, you can always buy a separate hard drive and use it as a boot to start your system Ubuntu!</p><p>I hope this has given you a little insight and demystified that building your own computer is a scary endeavor. If you want to build a solid first computer to work on from home as you build your coding portfolio you can get started at a few hundred dollars. You can always upgrade parts down the line if you need something more, but, better to make an informed decision today.</p><p>Or you can do the TL;DR version of this post and go to reddit.com/r/buildapcforme/ and make a post, tell them exactly what you want to spend, what you need it for, and they’ll do the rest. But even so, do your own research after.</p><p>Happy building.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d573e4ae620a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Quick Tutorial for Drawer Navigation!]]></title>
            <link>https://medium.com/@sebastianhove/a-quick-tutorial-for-drawer-navigation-77bf1d4d8f90?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/77bf1d4d8f90</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Sun, 06 Sep 2020 22:53:34 GMT</pubDate>
            <atom:updated>2020-09-06T22:53:34.953Z</atom:updated>
            <content:encoded><![CDATA[<p>There’s no doubt that you’ve used drawer navigation at some point on your smart phone. A drawer is what pulls out on the side of your application when you either slide your finger from the left side of the screen, or hit the burger menu icon on the screen. <br>(Note: the drawer component does not come by default with this burger or menu icon as seen below - and should be implemented with functionality to open/close the drawer.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/0*TlwWyvZxJoEnog8r.png" /></figure><p>First things first!</p><p>Head to your console and npm install react-navigation-drawer<br>As well as npm install react-navigation</p><p>Then in your project we’re going to create a new file, for the sake of this example we’re going to call this file exampleDrawer.tsx</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZE-61ZNiUo0U0Knjaly9Q.png" /></figure><p>Above we’re going to import and destructure createDrawerNavigator and createAppContainer from their respective packages.</p><p>Lines 4 and 5 are importing two screen components that is built out as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*8gBJgLubu-kx8DvQh7qHEQ.png" /><figcaption>(Very basic)</figcaption></figure><p>Now that we’re importing the screens in exampleDrawer.tsx, we can dictate exactly how the drawer should look.</p><p>First define a variable, in our example we’ve called it RootDrawerNavigator and set it equal to the createDrawerNavigator function, and within its parameters we put Screen1 and Screen2 as formatted above. <br>Lastly we export RootDrawerNavigator and then we’ll head over to our main App.tsx component</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAAt4TP1WulPcLC2-i-_dg.png" /></figure><p>Here, we’ll import react, and our ExampleDrawerNavigator.</p><p>Assuming your using expo to view this on your phone, start up the script with whatever command line you’ve set it to, scan the bar code with your phones camera, and you should render and be able to slide out something that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*yvGCQaCa19Dr_f9Sate77g.png" /></figure><p>React Native Drawers are an extremely simple but pivotal and powerful navigation tool any user should have to navigate your application. They can always be accessed, and always bring a user back to a root part of your application they may need access to.</p><p>They can contain single components and stacks as well, but in most online practice it’s always good to have a drawer to slide out, think of it as an ‘esc’ tool for the user to get back to the front page if they need to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77bf1d4d8f90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is NPM? A Basic Introduction to Package Managers]]></title>
            <link>https://medium.com/@sebastianhove/what-is-npm-a-basic-introduction-to-package-managers-875f97401f5d?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/875f97401f5d</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Sun, 30 Aug 2020 20:40:35 GMT</pubDate>
            <atom:updated>2020-08-31T14:38:46.770Z</atom:updated>
            <content:encoded><![CDATA[<p>For me, when I began my coding journey, a lot of running happened before I learned how to walk. What I mean by that is a lot of tools were thrown at my desk that I had to know how to use, but didn’t exactly know how they worked. And in any language, and with me in JavaScript, this tool box piled up rather quickly. I knew how to ‘use’ something to accomplish a certain task but looking back I was missing ‘how’ some of them worked.</p><p>One of these tools was NPM, I can’t really remember my very first action with it, but it’s one of the most basic one’s that I use every day now.</p><p>It seems like when I tried to achieve a certain goal in any project — every tutorial / online instruction would simply say ‘NPM install this’ or ‘NPM update that’... I simply followed instruction and would be relieved that it worked. I knew it was an installer, but I wasn’t 100% what was going on behind the scenes, so I wanted explain it to anyone entering JavaScript to breakdown what it is and how it’s going to help you move forward in building.</p><p>Firstly, what does NPM mean?</p><p>NPM stands for Node Package Manager. It is essentially two things, an online platform, and a command line tool.</p><p>The online element is an open source platform where anyone can publish and share tools/applications written in JavaScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w3OBhwFR79nl6kaQzedpxQ.png" /></figure><p>The above picture is npmjs.com/packages/express <br>Simply search a package you may be interested in using and you can dive into details about its dependencies, dependents, versions, downloads, etc.</p><p>These tools can be used in the server, the browser, and yes, the command line.</p><p>The command line tool enables us to interact with the online platform. Usually when you download a program to your PC or Mac, you go to the site, click download, install, run your program. <br>In the command line you can dictate NPM to install or uninstall <em>packages.</em></p><p>Now, what is a package? <br>A package is a tool someone created and uploaded to the NPM online platform. In essence, a package is a building block of your application. Whether it’s express or underbar you’re using to achieve a specific goal, think of it as downloading a hammer to help you build your house.</p><p>The cool thing about packages is that they can be built upon to create something entirely new!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HDvvnRoQIEgG4Tnc4JIxFg.png" /></figure><p>Think of someone taking your hammer and turning into a nail gun. While this new nail gun may be it’s own package, it would still have something called a ‘dependency’ on the original hammer. Dependencies are packages that are needed for another package to work. This is one of NPM’s highlighted features, if you want to download a package called<em> nail gun</em>, NPM will also install the dependency of <em>hammer</em> for you, so you don’t have to.</p><p>There’s a lot of different package managers out there for you to use. In my own personal experience and research, it seems like NPM is most popular due to it’s tie ins with both front and back end development, but there are differences and caveats which may point you in another direction. It’s okay to start out with NPM, it’s a great introduction to a package manager, but there are others out there with different features, be sure to do your research, and see what fits best for your current project!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=875f97401f5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OAuth 2.0 A Basic Introduction]]></title>
            <link>https://medium.com/@sebastianhove/oauth-2-0-a-basic-introduction-14f2b3d8d982?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/14f2b3d8d982</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Sun, 23 Aug 2020 22:50:15 GMT</pubDate>
            <atom:updated>2020-08-23T22:50:15.956Z</atom:updated>
            <content:encoded><![CDATA[<p>There is the likely chance in your web browsing days you’ve come across a website that’s asked you to create an account in order to access some deeper aspects of the site. Most places you’ve visited these days will have given you the ability to create an account with them, or the ability to login with alternatives like the below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PbYTm-CodRd0c1K-.png" /></figure><p>Someone who may be seeing this for the first time may think “Ah I get it, when I log into Etsy with my Google account, Etsy grabs my username and password from Google, neat!”</p><p>Wrong, this is one of the biggest misconceptions about OAuth 2.0 frameworks. Passwords are never passed around during this process.</p><p>Essentially, OAuth2.0 acts as a middle man, Google will provide the website with some basic information from your Google account (provided you agree of course), and the site will grant you entry.<br>You should be prompted with a consent screen that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*gpibjXw5L87UaAHixv38pA.png" /></figure><p>Your password is never sent, essentially google provides a token ID and the above information for the site to store on their database under your now created profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X2dtXntBXI8XpY61RkAbog.png" /></figure><p>It’s a much simpler way to login these days, there’s a lot of websites and a lot of passwords to remember, so this shortcut cuts down you needing to jog your memory on that uppercase and special character password you need to know for every domain you’ve ever been to.</p><p>How does it actually work though?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8jiG8jC85MCnWzeJc7diA.png" /></figure><p>I’m going to try to walk you through step by step on what’s happening in the above picture in plain English because it took me a minute to wrap my head around as well.</p><p>*Deep breath*</p><p>When you click sign in with Google you’re heading over to the servers route of /auth/google handler → this route will then reach out to Google who will give permission for the login → Once granted it will redirect the user to auth/provider/callback (note this is a custom route, you can name this route whatever you want in the Google developer console for your website) → The Server will then check its own database to see if that user exists already or not and will either create a user, or retrieve the relevant user information and send in a cookie → A cookie is essentially a small object of information that is sent to the browser to hold onto that says “This is the user, here’s his/her ID, remember them so they doesn’t have to login for every page redirect”. <br>In essence, a cookie is stored by your browser so when you click to go to your messages from your profile, you have a little access token to tell the server that you’re the specified user heading to your messages, essentially it’s an admit one token for your specific profile.</p><p>Once you’re logged in this cookie will in most cases be sent with every request and allow the server to respond accordingly with specific things related to your user profile.</p><p>And that’s a basic introduction of how Google Auth 2.0 works.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14f2b3d8d982" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MySQL, Data Pointing]]></title>
            <link>https://medium.com/@sebastianhove/mysql-data-pointing-e64756cea1a0?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e64756cea1a0</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Mon, 20 Jul 2020 13:43:23 GMT</pubDate>
            <atom:updated>2020-07-20T13:43:23.147Z</atom:updated>
            <content:encoded><![CDATA[<p>If someone told you MySQL is a relational database management system based on SQL (Structured Query Language); that is used for data warehousing, e-commerce, and logging applications. You’d probably roll your eyes and fall right asleep.</p><p>I’d probably do the same, until one of my assignments at Operation Spark was to become familiar with its language, and try to access data that was already stored in some demo tables made for us (think of a table like any old regular informational table: A header bar with a students name, their identification number, what classes they take, etc, etc.)</p><p>We had to enter certain commands that would show us what students are in a certain class, what teachers are in what departments. To me, it hearkened back to the 80’s text based computer game where you had to enter in a certain command to get a desired result and progress through the level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*COMX2d1If2_2_9uZ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/0*Ux_jCbziOa8HzIN1" /></figure><p>If you don’t enter the exact right command, you don’t get to progress. The assignment in this case was similar in such a regard, we had to extract data, to be more specific: relational data that could tell us relationships between tables.</p><p>Per Operation Sparks instructions for the project: “Rational data lives inside <em>tables</em> that contain <em>columns </em>and <em>rows.</em> The columns of a table define the properties or attributes of the kind of ‘thing’ the table is storing, and each row is an instance of this kind of ‘thing’.”</p><p>Yes, yes, very fascinating right? Where’s the power? What’s the big deal? We can just do this in a simple spreadsheet document right?</p><p>The power of these tables is the fact that they can be linked to each other, and use near instant look up times to identify relational values with other tables.</p><p>One student may have a single digit number as their ID, but they can be linked to another table of the classes they take, or who their teachers are, or what their favorite foods are. Labeling these attributes with numbers can run through functions which can link them, near instantaneously, and tell us something relational we want to know, it’s an incredibly powerful tool, and a lot of statistics can be derived from it.</p><p>MySQL is the number one database in the world. Amazon uses it, it’s in health care, e-commerce, and inventory systems at warehouses use it! It’s a high demand field, and it gives developers powerful feedback from inking values. There is little chance you have never interacted with an online e-commerce service that hasn’t used it before.</p><p>Alright, enough hype, let’s do a quick example so you can see a visual of how this may work.</p><p>Below is, for examples sake, a table we’ve created in MySql, it’s a very simple table, it’s just a quick list of a few jeans you may find at Amazon.</p><p>Let’s name this table: Jean_Data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*i_LBXByRNgc5Gv2z" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/0*yqWljPnyNMe8pRf7.png" /></figure><p>Let’s say we have a user who wants to find all jeans that are black, how would we go about finding this? There are simple commands that can achieve this for us.</p><pre>SELECT * FROM Jean_Data WHERE color = &quot;black&quot;;</pre><p>Running this command filters out all jeans that are black in color.</p><p>Okay, a little more complex, let’s get try and fetch all the Jeans that are Blue in color, but are 34 inches in length. We can use a good old IF statement.</p><pre>SELECT * FROM Jean_Data WHERE color = &quot;blue&quot; AND length = &quot;34&quot;</pre><p>This command should yield us a table returning the ID’s of one and five.</p><p>These are relatively simple examples, I don’t want to overload you, only give you an overview, if this interests you, there are other resources to help you dive deeper.</p><p>The true power resides in table linking, when tables are linked, we can see more relational data. There are many ways to link tables, but I’ll go over one of the types as a quick introduction. <strong>One to Many</strong> relationships. All it means is that there’s a foreign key that references another column.</p><p>Let’s imagine a bidding website like eBay, where one user can have many listings. These listings, are strictly related to that user. They cannot be related to any other user.</p><p>So while those listings may be in their own table, they always point back to the users table ID.</p><p>Below we have two tables. A table with names of people selling items, and on the right we have the listings they’re selling.</p><p>These listings are able to point back to their owners table with the foreign key of user_ID. And are always able to be looked up near instantaneously. This is a one to many relationship. One user, many listings, makes sense, right?</p><p>(Forgive my awful line drawing skills).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*gJWXrmFwUB1L2YbR" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/0*pJZ_KADVvrQBmU5R.png" /></figure><p>Above is a very, very basic example. But you can imagine how complex these tables and links can become with relationships to one another, and how we can pull relational data from the craziest of places. It’s a lot to think on how companies can gather data and make rational business decisions based on these data bases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e64756cea1a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React vs Angular, similarly different.]]></title>
            <link>https://medium.com/@sebastianhove/react-vs-angular-similarly-different-2358689b89a0?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2358689b89a0</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Mon, 13 Jul 2020 13:53:29 GMT</pubDate>
            <atom:updated>2020-07-13T13:53:29.862Z</atom:updated>
            <content:encoded><![CDATA[<p>When you think back to the early days of the Web and what it used to look like and what it could actually do, you’ll remember pages were pretty ‘rugged’ in their looks and the way they acted. What you saw was pretty much what you got, it wasn’t much different than just reading a page out of a book. You clicked on a link, or anything that was ‘interactive’ on that page, and you were nearly almost guaranteed some kind of full page refresh. What was happening was your page had to reload to present some kind of new information. But this is non-intuitive. Imagine if your computer had to restart every time you used its calculator to render you the answer.</p><p>Enter frameworks — imagine your web page sliced out into smaller components, each responsible for their own task, and if you used the calculator in the lower right hand corner of your web page, only that part needs refreshing, not the entire page. That’s essentially how frameworks work. They are not only hugely popular in the programming world, they’re a critical component in going down the path of web development.</p><p>The two most popular frameworks today are Angular and React, I’ll go over them and give a few basics. While most tasks you may set out on could be accomplished by either or, it comes down to personal preference.</p><p><strong>What is Angular?</strong></p><p>Angular is a Full-fledged MVC (Model-View-Controller) framework developed by Google. Developers use html as a template language and html syntaxes for building the application’s components.</p><p><strong>What is React?</strong></p><p>It’s a JavaScript library built by Facebook which is used for building User Interface or User Interface components.</p><p><strong>Differences</strong>:</p><p>I want to give a few major oversights with the differences between the two, because they’re both unique and if we split hairs on everything, this isn’t going to be a five minute read.</p><p><strong>Angular</strong> allows two way binding. The two way data binding allows us to ensure that model state automatically changes if any change is made.</p><p>To ‘keep it simple stupid’ with a quick example. If I wanted to use two way data binding. Let’s say I had a text box on a web page, if I type in that web page, the text entered in that box would immediately populate somewhere else on the web page. Those two elements are ‘bound’ together, where when one change happens, a reaction immediately happens.</p><p>I could show you with code examples, but it’s simply too much because of how many windows are usually the norm. Watch this video instead.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FCacMOuzTiJU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCacMOuzTiJU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FCacMOuzTiJU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/58b64b8cb5241b387277c6be2b65137b/href">https://medium.com/media/58b64b8cb5241b387277c6be2b65137b/href</a></iframe><p>Angular can allow you to build large, rich-featured applications, but it can be very difficult beginners with a steep learning curve. Trust me, I’ve spent two days with it and I’ve barely scratched the surface.</p><p><strong>React </strong>can have an easier beginner learning curve than Angular from a developer standpoint. (Note: easy to learn, difficult to master)</p><p>React JS uses components, which make it possible to split the user interface into independent, reusable pieces, and think about each piece in isolation.</p><p>Think about the web page your viewing right now. It’s all in a box. Within that box is a lot of other smaller boxes, which each have their own gears that turn, they don’t interfere with each other, but they can talk to each other, and ‘influence’ each other with bindings and dynamically refresh states. Sounds confusing, I know. It’s all about components and how to make them communicate with each other these days.</p><p>Because more and more business owners want to develop websites that change data while reloading pages, the demand for React JS developers has been growing at a rapid pace, something to keep in mind.</p><p>Learning one of these frameworks is probably like learning JavaScript all over again, they all come with their own rules and syntax, how do you choose? Don’t over think it too much. I haven’t picked what road I want to go down yet. But you should know that learning one will make learning the other easier, that’s been my experience from my week with all three of them. They’re all different, but they’re all also similar, you can most likely achieve a simple task with any you choose. If you’re starting small, see what fits best for you. If you’re building a new, complex networking website, maybe talk to your senior.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2358689b89a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hash Tables, A Quick Rundown]]></title>
            <link>https://medium.com/@sebastianhove/hash-tables-a-quick-rundown-de9485b13d03?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/de9485b13d03</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Mon, 06 Jul 2020 13:06:16 GMT</pubDate>
            <atom:updated>2020-07-10T18:01:37.480Z</atom:updated>
            <content:encoded><![CDATA[<p>You have probably heard the term ‘hash’ before, especially if you’ve ever delved into the word of crypo-currencies. And at first that word may sound pretty intimidating, but it stems down to a simple functionality, and after reading this article about Hash Tables, you’ll have a general sense of what ‘hashing’ is — we’ll go over Hash Tables to give you a basic introduction on what they are, and how they work.</p><p>Hash Tables are powerful data structures with incredibly fast run times. Imagine looping through a traditional JavaScript array and trying to find a value. You could of course use the traditional for loop! But these arrays can be incredibly long and take quite some time to get through to find what you’re looking for.</p><p>To break it down to laymen terms, let’s use a real life example: Let’s say we want to find ice cream in our refrigerator array in the kitchen. We’d have to check every instance of this array until we realized that the ice cream was actually in the freezer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/0*2nAoZnQKRUWKE9Hs.png" /></figure><p>That’s a lot of unnecessary searching, when we actually know that ice cream is usually stored in the freezer and not in the fridge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*O7ZudC3XcSFLhrao.png" /></figure><p>If we did know it’s location, we could simply enter its location, and the program would know exactly where to look, and pull it right out for us.</p><p>Well, the way Hash Tables work is very similar to objects, they have a key that is associated with a value. In this case, we could imagine that freezer is associated with ice cream.</p><p>But how does this work?</p><p>In most cases, the key is a string, and the value can be any data type (in this case we’ll keep it as a string of ice cream to keep it light).</p><p>A fridge and a freezer come in certain sizes, i.e., there’s only so many things we can fit in it. Hash Tables work similarly, they are built with a predetermined length in mind. They can be altered in length, but for the sake of simplicity, we’ll imagine we’re working with one that we don’t need to alter in size.</p><p>When the empty array is built, each array index is commonly known as a ‘bucket’. What we want to do is fill these buckets with key value pairs. Let’s say we want to store a key value pair of “freezer” with a value of “ice cream.”</p><p>A hashing function, set with certain rules can produce our string of “freezer” into a number, these rules can vary for different hash functions, so I will try and keep it simple for the sake of this post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*dR0MkDJ8q2aPTRwo.png" /></figure><p>(The above function was built with help of YouTuber Ben Awad’s video, this hash function takes in the account of arbitrary prime numbers, and returning values. See the below link for a more in depth analysis.)</p><p><a href="https://youtu.be/UOxTMOCTEZk">https://youtu.be/UOxTMOCTEZk</a></p><p>This hash function will loop through each letter of freezer, and return its binary code using the .charCodeAt() method provided in javascript. If we modulo it with the hash tables size, it will produce it into a number that is under the Arrays length, and in such, we have made freezer readable into a number that is less than the number ten, and stored the key value pair of freezer and ice cream at index zero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/0*CIVmn7RDxHPiGmWN.png" /></figure><p>In the above example, putting in the value of freezer and ice cream through our setItem function has produced Freezer into the number of 0, in turn, placing “Ice Cream” in the 0th index of the Array.</p><p>In order to retrieve these values, a similar function takes place that takes in the value of freezer, hashes it, and produces the number 0 again, and is able to retrieve it at the exact location of the Array.</p><p>This is the main functionality of a hash table. They can grow in size and complexity, duplicates can happen and be inserted into the same bucket, but their constant near instant look up times are what make them so valuable in javascript.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de9485b13d03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Big O Notation: A Basic Introduction]]></title>
            <link>https://medium.com/@sebastianhove/big-o-notation-a-basic-introduction-d007b3e8cd3b?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d007b3e8cd3b</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 02:26:26 GMT</pubDate>
            <atom:updated>2020-06-29T13:50:01.785Z</atom:updated>
            <content:encoded><![CDATA[<p>Big O notation in programming is a must know for anyone delving into the field. It sounds intimidating but it’s simply a measurement of how fast a certain algorithm can run.</p><p>We’ll get to the meat and bones soon enough, but just keep in mind it’s how ‘long’ it can take for something to be executed.</p><p>Let’s say I need to get some ketchup in my refrigerator door. I used it yesterday, so I know <em>exactly </em>where it is. It should be near immediate for me to get it. This would be known as <em>constant time (noted as O(1) )</em>, because I know precisely where to find it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*KQ3kc_SlD2d-Gw-MnY3rsQ.png" /></figure><p>With the way programming works, if you tell a program to go to the third position in an Array, it knows by memory <em>exactly </em>where that position is, no matter what the length of the array is. It can just shoot over there immediately with no delay whatsoever.</p><p>Let’s say I’m baking a cake and I can’t quite remember where the flour is, yet I know it’s in one of the shelves in my pantry. Let’s say there’s five shelves in my pantry, I have to start at the bottom and go all the way to the top until I run into the said flour. This would be known as <em>linear time (noted as O(n) )</em>, because depending on how many shelves I have (imagine I could have hundreds of shelves), it depends on which shelf I finally hit where the flour actually is! The best case scenario would be I found it on the first shelf I checked. Worst case, it’s at the top shelf, and that’s a lot of time when your kitchen program could have hundreds of shelves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GW0ChwEVhifdBG5FtguWCA.png" /></figure><p>This is assuming there’s only one thing on each shelf, pretty simple, right? Well what if there’s many things on each shelf, the search can become exponentially more difficult… (Ever tried looking for garlic powder in your spice rack when all spices look the same at the top?). So now imagine looping through your racks, but also, you have to loop through each item in that rack. It becomes more, and more, and more. This becomes exponentially more difficult.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*wKpFp7-wHnz0gQfcTBUeIQ.png" /></figure><p>The above example is noted as quadratic time complexity ( O(n²) ). While this example doesn’t seem like a lot, it can get out of hand, fast. Searching can become no easy task. Imagine shelves built on shelves that have to be searched. Then we have to take more factorials into play and search deeper and deeper. This notation would be known as ( O(2^n) ) — and can seriously slow your program, or even computer down. Ever used windows search feature to find one file in your computer? I have, and it slowed my computer to a halt, it’s searching within searching within searching, and it’s a killer when you’re just going through everything one at a time.</p><p>There are ways to combat this, there is one more I’ll discuss today. If you know your data is sorted, numerically for example. You can cut your search in half every time until you find your result. Let’s say you have an Array of numbers 1, to 100. And you’re looking for the number 30.</p><p>Well, let’s start in the middle of the array, that number would be fifty. Is thirty less than fifty? Yes, so let’s cut our search in half and completely ignore 50 to 100. Now we only have numbers one to fifty, let’s get to half of that.</p><p>25, is 25 less than 30? yes, so now we’ll only look from 25–50, so on, and so forth, until we reach our destination.</p><p>Essentially, we’re chopping something in half every time and simply looking left or right until we hit our destination. This can drastically reduce search times and is known as <em>Logarithmic time </em>( O(log n) ).</p><p>Sometimes we simply have to look, we can’t always know where something is. But if we know we can chop it in half every time and ignore one half completely, we’ve already gotten rid of half the battle.</p><p>Imagine if we forgot where we put our socks and had to search our house everyday. Getting dressed would take hours.</p><p>Moral of the story, stay organized, and don’t put your socks in the freezer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d007b3e8cd3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object inheritance, a basic introduction]]></title>
            <link>https://medium.com/@sebastianhove/object-inheritance-a-basic-introduction-45cabb10f567?source=rss-beef1ef6b6e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/45cabb10f567</guid>
            <dc:creator><![CDATA[Sebastian Hove]]></dc:creator>
            <pubDate>Sun, 10 May 2020 22:08:07 GMT</pubDate>
            <atom:updated>2020-05-10T22:08:07.047Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s just think of what inheritance means in the real world. When my grandfather passed away when I was very young, he left me a coin from his collection. I’ve had that coin for years now. But whenever someone asks me about it, I always say “that’s my grandfathers coin”. I’ve never considered it mine though. I didn’t buy it, I didn’t forge it with smoldering iron and nickel, I didn’t rob a bank for it, it was just simply passed down to me.</p><p>Object inheritance works in a similar vein. A parent class object (my grandfather) could have a key of “hasCoin” and a value that is set to the boolean value of “true”, when passed down to his son and his grandson (me)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/1*nHYAte7pj8BpCRI1V1gtfA.png" /></figure><p>Inheritance can be very good for when we design objects about what they are, instead of what they do.</p><p>Take for example that we have a Cat and a Mouse class.<br>A cat meows, and a mouse eats cheese.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/173/1*wb2d2dbpxdVKsn6erYmbyw.png" /></figure><p>But both a cat and a mouse poop…</p><p>Well, while we could assign a property of poop() in each one like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*AgKcmSvpClPiOPSKBb0QXA.png" /></figure><p>That would be redundant though. Why write the exact same function in two objects…? Don’t Cat and Mouse share something? Yes, they’re both fall under the Animal Kingdom.</p><p>So why not do this?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*QcnU99V0erNw4MyltIR-wQ.png" /></figure><p>Now that both of the Cat and the Mouse have been built under the Animal object, they will actually both inherit the property of …. poop()</p><p>The concept is simple enough, but it can pose problems when you’re constructing thousands of Animals down the line that may inherit one thing from their parent. But as the trees branch off and more specific things are not needed, you could only need one thing from a parent object, but instead inherit the entire evolutionary chain that came behind it. And once you’re at that point it can be difficult to get out of.</p><p>This article was written with help and inspiration from one of my JavaScript favorites, Mattias Petter Johansson. His YouTube channel is Fun Fun Functions and he has a brilliant way of transcribing complicated JavaScript topics into understandable English. Give him a watch if there’s anything more you want to know.</p><p><a href="https://youtu.be/wfMtDGfHWpA">https://youtu.be/wfMtDGfHWpA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45cabb10f567" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>