<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Posts on Halpin Codes</title>
        <link>/posts/</link>
        <description>Recent content in Posts on Halpin Codes</description>
        <generator>Hugo -- gohugo.io</generator>
        <lastBuildDate>Wed, 08 Jul 2020 22:14:59 -0400</lastBuildDate>
        <atom:link href="/posts/index.xml" rel="self" type="application/rss+xml" />
        
        <item>
            <title>T.A.M.E in Technology</title>
            <link>/posts/2020/07/t.a.m.e-in-technology/</link>
            <pubDate>Wed, 08 Jul 2020 22:14:59 -0400</pubDate>
            
            <guid>/posts/2020/07/t.a.m.e-in-technology/</guid>
            <description>T.A.M.E - Tech Acronyms Made Easy. The tech world has a bunch of acronyms, shorthands, buzzwords, jargon; the list goes on and on.</description>
            <content type="html"><![CDATA[<h1 id="tame---tech-acronyms-made-easy">T.A.M.E - Tech Acronyms Made Easy.</h1>
<p>The tech world has a bunch of acronyms, shorthands, buzzwords, jargon; the list goes on and on. But do you <em>really</em> know what
all those words mean?</p>
<p>In this series, my aim is to demystify commonly used technology terms and acronyms so that <strong>you</strong> can understand them.</p>
<p>The intended audience for this are those just starting out in their software development career, as well as those who are a few years into their career,
although you may still learn something if you&rsquo;ve been around for a while.</p>
<p>I&rsquo;m going to use the &lsquo;explain it like I&rsquo;m five&rsquo; approach, and break down things as succinctly as I can. I&rsquo;m also going to use code where I can, to give a visual representation
of the topic as well. Are you ready to &lsquo;pick some low hanging fruit?&rsquo;</p>
<h2 id="software-terms">Software Terms</h2>
<p>We&rsquo;ve all heard terms at one point in our career and thought &lsquo;what the heck does that mean&rsquo;. I know I have. Plenty of times.
In my job as a software developer, I&rsquo;ve heard lots of terms that I&rsquo;ve had to quickly look up in order to know what my boss or co-worker has said
in order to understand a topic or process on the fly. I&rsquo;m a quick learner, so I&rsquo;ve got that going for me, but I&rsquo;ve always wanted a tech dictionary of sorts
to go back and reference. Alright, enough fluff. Let&rsquo;s dive in!</p>
<h3 id="acid">ACID</h3>
<p>ACID: Atomicity, Consistency, Isolation, Durability. To understand this, we need to break out each term individually, and put it into context. The main context behind ACID is within</p>
<h3 id="api">API</h3>
<h3 id="cors">CORS</h3>
<p>CORS: Cross Origin Resource Sharing.</p>
<h3 id="cd">CD</h3>
<h3 id="ci">CI</h3>
<h3 id="css">CSS</h3>
<h3 id="ddl">DDL</h3>
<p>DDL: Data Definition Language. This is used to describe the structure of database, including its schemas and tables. When you ask yourself &ldquo;how many columns do you want?&rdquo; or
&ldquo;what type of data am I putting in those columns?&rdquo; - these types of questions are answered when you create your DDL queries.</p>
<p>To create a table for example, we would create SQL code like this:</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-sql" data-lang="sql">
<span style="color:#66d9ef">CREATE</span> <span style="color:#66d9ef">TABLE</span> users (
    user_id              SERIAL       <span style="color:#66d9ef">PRIMARY</span> <span style="color:#66d9ef">KEY</span>,
    user_name       VARCHAR(<span style="color:#ae81ff">50</span>)   <span style="color:#66d9ef">NOT</span> <span style="color:#66d9ef">NULL</span>,
    user_address    VARCHAR(<span style="color:#ae81ff">50</span>)   <span style="color:#66d9ef">NOT</span> <span style="color:#66d9ef">NULL</span>,
    user_phone      VARCHAR(<span style="color:#ae81ff">18</span>)   <span style="color:#66d9ef">NOT</span> <span style="color:#66d9ef">NULL</span>,
);

</code></pre></div><p>We&rsquo;ve created a user with an auto-incrementing ID, and created various fields. Notice I used <code>user_id</code> and <code>user_name</code> instead of <code>id</code> or <code>name</code>? I&rsquo;ve been bitten
before when it comes to using <a href="https://www.postgresql.org/docs/11/sql-keywords-appendix.html">reserved keywords</a> as column names, so I&rsquo;d suggest you avoid them too 😉.</p>
<h3 id="dml">DML</h3>
<p>DML: Data Manipulation Language. This is mostly used when referring to SQL code that updates, deletes, or inserts records in a database.</p>
<p>In code, it is commonly seen like this:</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-sql" data-lang="sql">
<span style="color:#66d9ef">INSERT</span> <span style="color:#66d9ef">INTO</span> users (user_name, user_address, user_phone) 
<span style="color:#66d9ef">VALUES</span> (<span style="color:#e6db74">&#39;Mark&#39;</span>, <span style="color:#e6db74">&#39;123 Fake Street&#39;</span>, <span style="color:#e6db74">&#39;555-555-5555&#39;</span>); 

</code></pre></div><p>In this query, I&rsquo;ve inserted a record into the users table, which was conveniently created above with a DDL query.</p>
<h3 id="rdbms">RDBMS</h3>
<h3 id="dsl">DSL</h3>
<h3 id="html">HTML</h3>
<h3 id="ioc">IOC</h3>
<p>IOC: Inversion of control. This is a mechanism for increasing the modularity of your code. The goal is to allow you to swap out components based on need because they share the same interface.
In other words, program to an interface not an implementation. IOC solves the problem of hard coding things in place, because when things need to change (say in a development environment vs production environment) you can swap out items without breaking anything.</p>
<h3 id="js">JS</h3>
<h3 id="jsx">JSX</h3>
<h3 id="mvc">MVC</h3>
<h3 id="solid">SOLID</h3>
<h3 id="sql">SQL</h3>
<p>It can be pronounced a few ways (See-qwell, or ess-q-el) but whichever way you say it, it stands for structured query language. SQL is the de-facto standard
when it comes to getting data in and out of relational database management systems or RDBMS. MySQL, Postgres, Oracle, and Microsoft SQL Server (to name a few) all use this to
bring in data and get data out. SQL is a DSL (domain specific language) designed to manage the data held in these systems. I&rsquo;ll cover these terms in a bit, but they are all related in
on shape or another.</p>
<h3 id="sdlc">SDLC</h3>
<p>SDLC: Software Development Lifecycle. SDLC is the process used in many organizations to create software, including requirements gathering, the coding, testing and deployment of software.
This is a very vague term, with interpretations varying per organization. The main steps are planning, requirements gathering, design and prototyping, software development, testing, deployment and maintenance.</p>
<h3 id="xss">XSS</h3>
<p>XSS: Cross Site Scripting. Cross site scripting is a security vulnerability where your application accepts and does not sanitize user input, and allows that user to run their code on your site. If your application takes untrusted user input and displays it some place on your site, it most likely will cause damage to your application. To work around this, you need to sanitize user input, and most front end frameworks have built in modules or third party plugins which can help with that.</p>
<p><!-- raw HTML omitted -->Cover Photo by <!-- raw HTML omitted -->Matthew Kerslake<!-- raw HTML omitted --> on <!-- raw HTML omitted -->Unsplash<!-- raw HTML omitted --><!-- raw HTML omitted --></p>
]]></content>
        </item>
        
        <item>
            <title>The Learning Game</title>
            <link>/posts/2020/07/the-learning-game/</link>
            <pubDate>Tue, 07 Jul 2020 14:50:00 -0400</pubDate>
            
            <guid>/posts/2020/07/the-learning-game/</guid>
            <description>It has been said that we are all in a &amp;ldquo;rat race&amp;rdquo;, or in a &amp;ldquo;race to the top&amp;rdquo;.</description>
            <content type="html"><![CDATA[<p>It has been said that we are all in a &ldquo;rat race&rdquo;, or in a &ldquo;race to the top&rdquo;.
We even play the &ldquo;game of life&rdquo;. So if life is a game, and we are all racing toward a goal, then why can&rsquo;t life be like a racing game?</p>
<p>In life, we all must learn. From the day we are first born, we learn to eat, breath, sleep, and as we get older crawl, walk, etc. Learning is something we all have to do in life, but this is especially true if you work in the technology field. We don&rsquo;t just learn by reading books and absorbing information however. We have to apply that knowledge and do something with it.</p>
<p>This train of thought stems from a tweet that I saw from <a href="https://twitter.com/jsjoeio">Joe Previte</a>, where we had a discussion on how he likes to
compare &ldquo;learning something new to racing in Mario Kart&rdquo;:</p>
<!-- raw HTML omitted -->
<p>But learning isn&rsquo;t easy, and you certainly don&rsquo;t win the race every time. In a game like Mario Kart, you have other racers, obstacles, and power ups that either help you or prohibit you from getting to the winners podium. Bananas, bullet-bills, and shells come at you from different angles and players, and it is your job to avoid them when racing towards the finish line.</p>
<p>Now, depending on how you look at them, these items can be beneficial to you as a racer, <em>or</em> they can be a hinderance.</p>
<p>Let&rsquo;s take a look and see what the game of Mario Kart can teach us about learning software development.</p>
<h2 id="the-main-characters">The Main Characters</h2>
<!-- raw HTML omitted -->
<p>The racer: This is YOU. Mario Kart, as I learned, has different stats per each racer. This is true in life as well. Each software developer has different strengths and weaknesses, and may be better at one thing or another. I like JavaScript and Python. I am good at understanding business requirements and translating that to code. However, one of my weaknesses (for example) is that I don&rsquo;t know the first thing about dijkstra&rsquo;s algorithm. We can&rsquo;t change our natural gifts; only enhance them. We can add skillsets and learn new things, but usually that works out better (for me anyway) when I <em>need</em> to learn them, rather than arbitrarily picking something to learn just for the sake of learning.</p>
<!-- raw HTML omitted -->
<p>The Kart: This is your chosen field (or programming language). I program primarily in JavaScript, while others might choose Java. The right pairing of job and/or programming language can go a long way when it comes to career longevity and job satisfaction. I personally enjoy writing JavaScript and Python, and don&rsquo;t really like writing .Net or Java for example. However, we may need to switch carts when it comes to different terrain, and the same holds true when switching jobs. Maybe you need to learn Java for full stack work you weren&rsquo;t doing before. Thats OK!</p>
<h2 id="the-power-ups">The Power-Ups</h2>
<!-- raw HTML omitted -->
<p>Bananas: You can see these problems coming (lack of time for example), and with proper planning can avoid them. If you get stuck (lets say a bug) you need to make adjustments to get back on track like revert code. Sometimes you have many bananas in your path, and you can shoot them out of the way with a green shell for example, but other times you are so caught up in the race you don&rsquo;t even see them.</p>
<!-- raw HTML omitted -->
<p>Green shells - You can&rsquo;t always plan for these issues. Sometimes they just hit you! You might be chugging along, and your child gets sick. Or, your internet cuts out and you can no longer watch that YouTube video to learn a particular concept. In the real world, your boss can stop by and make you shift priorities mid-sprint, and you lose several days of work because something needs to hit the back burner. My favorite example of this is when that sneaky PM (project manager) tries to add more tasks to your Kanban board for the sprint, and you have 2 days left (yes, this has happened to me in the past!). These things come out of nowhere, and sometimes you can avoid them, and sometimes you can&rsquo;t. Just roll with the punches and make adjustments. Maybe this means de-scoping or scaling back. Reset your expectations, and things will work out!</p>
<!-- raw HTML omitted -->
<p>Red shells - Red shells will hunt you down. You get a glimpse of them in your rearview mirror, and you see warnings. If you are not careful, you get whacked with one. You can keep a trailing power-up (bananas anyone?) behind you to knock it out of the way. Or, you can lean on others for support 😄 . In Mario Kart, you can push past another racer and sometimes those shells hit them! In the real world -ask for help to avoid getting stuck. Call on a co-worker or friend, or do &ldquo;rubber duck debugging&rdquo; to help solve a problem when stuck. Sayin the problem out loud helps your brain to better conceptualize what you see on the screen, and can help you sort out all the pieces when you have to explain the problem to someone else.</p>
<!-- raw HTML omitted -->
<p>Blue shells - Ever feel like you are on top of the world and nothing can go wrong? All of a sudden, you see the dreaded blue shell. You are in first place in your race, and this shell hunts you down to knock you out. How do you avoid getting side tracked when pushing towards a goal or when you feel like you are rushing to fix a problem? Slow down, don&rsquo;t rush, and think about things more deeply before rushing into a solution. I&rsquo;ve felt pressure to meet deadlines, push more code, and get up to speed many times in life. Sometimes, this comes at the threat of losing my job, or other times the threat of holding the team back on a deadline because of an unfamiliar code base. when things get tricky, you need to sit back, take a break, and think things through. Make a plan, and stick to it!</p>
<!-- raw HTML omitted -->
<p>Bullet-Bills: Mario Kart has these wonderful little creatures that come by and whack you out. They barrel past you at lightning speed and make you spill out of control. Sometimes you see these fast approaching problems (don&rsquo;t get hit by one!) and can make adjustments. Maybe its a deadline, and you need to de-scope. Other times you are the bullet bill and charge full speed ahead because you are &ldquo;in the zone&rdquo;. The thing about these power-ups is that you have limited control. If you are the bullet, you are able to slightly shift direction, but for the most part, you are along for the ride. Got a boss who is ignoring your suggestions and telling you to &ldquo;push through&rdquo; a problem? Yep&hellip;Bullet Bill. Executive just move up the deadline for a project, giving you less time to work on a feature? Bullet Bill. Did you find a neat trick of module that shaves hours or weeks off a project because the work has been done for you? You&rsquo;ve just used a Bullet Bill.</p>
<!-- raw HTML omitted -->
<p>Bomb-omb: These power-ups can help you clear out a major problem quickly. Is there a racer in your way, and you want them to clear out? Throw a bomb! However, hang onto this bomb for too long,and you blow up yourself. Bomb-ombs in software development could be third party modules that you integrate into your code. This might be something like a form validator for example. It will save you from having to implement it yourself, but you may find out down the line that it becomes unsupported, or worse, has a vulnerability that now leaves YOU exposed since you used it. Use with caution!</p>
<p><!-- raw HTML omitted --> Blooper: These little guys. They come in, mess up your screen, and cause momentary blindness! When it comes to developing code, you don&rsquo;t even see it coming. You get stuck in tunnel vision. You ever sit and stare and something for so long, that all the code blurs together and nothing makes sense? Well, you have just encountered a blooper. The best way to get unstuck is to walk away and come back to it, or &ldquo;sleep on it&rdquo; (the equivalent of driving faster). Have you ever heard the phrase &ldquo;sleep on it&rdquo;?It is actually a thing! Your brain does amazing things when sleeping, and connects the dots to your previously encountered problems while you snooze.</p>
<p>I can go into a whole blog post by itself on this, but the tldr version is this - hypnopedia is the study of learning while you sleep, and research has been done which shows that you can learn new languages and music while sleeping. The same holds true with programming. Why? Because the frontal and temporal lobe are both activated when learning music and language, and those same spots are activated when learning how to program. Go look it up!</p>
<p><!-- raw HTML omitted --> Mushroom: Ah I love these, especially the golden mushrooms. Mushrooms boost your speed in Mario Kart, and can make you so fast you wind up passing lots of other races. When learning, you can sometimes feel like you are slogging along, not making much progress. But lo and behold, you find a mushroom, and it propels your learning to the next level! You are picking up things quicker, and making incredible amounts of progress on your tasks. What are these mushrooms in real life? Blog posts, courses (paid and unpaid), YouTube videos, and even good old pair programming. When you find a resource from someone else that helps you learn, you&rsquo;ve just used a mushroom, because it has boosted your understanding in a topic or shifted your thought process in another direction for the better.</p>
<p><!-- raw HTML omitted --> Starman: With a Starman, nothing can touch you. You have ultimate control, and everything is in your favor. You drive fast, you can knock things out of the way quickly, you can steer towards anything you want, and no other power-ups can dampen your day. These power-ups are hard to come by. Got a few nights and weekends to code without interruption? Did you take week vacation and plan to learn a new skill? Upgrade your internet to watch and download videos more quickly? Yep, that a Starman alright!</p>
<h2 id="the-grind">The Grind</h2>
<p>Mario Kart, much like life, is a series of repetitive motions to go through each day. In Mario Kart, sometimes you race the same track over and over to get the gold trophy so you can have a perfect record or gain a new kart. In real life, you get stuck on the same bug for days and days until you finally figure it out. Life isn&rsquo;t perfect, and things come up which gets us stuck. This past week I lost a whole week&rsquo;s worth of productivity tending to sickness in my house. Stuff happens! You just have to take things a day at a time, and DO NOT COMPARE YOURSELF TO OTHERS!</p>
<p>Let me say it again in case the capitalized text didn&rsquo;t catch your attention : Do Not Compare Yourself to Others.</p>
<p>There are some people on the internet who like to plug their own courses, toot their own horn, and push stuff out there to make you think a certain way. The internet provides a curated, cropped and edited view of life. No one <strong>wants</strong> to share their failures. Everyone wants to present themselves as an expert, to make themselves seem smarter than they really are, or more productive than everyone else. They want to show you that they can &ldquo;hustle&rdquo; and &ldquo;grind&rdquo;. They push out &ldquo;content&rdquo; and use the same words I&rsquo;ve just used 😜.</p>
<p>In all seriousness, don&rsquo;t believe all you read. Some of these people I&rsquo;ve just mentioned fall into the following categories:</p>
<ul>
<li>Unmarried</li>
<li>Childless</li>
<li>Self Employed</li>
<li>Have a full time job making content for company X doing:
<ul>
<li>Paid Blogging</li>
<li>Developer Relations</li>
<li>Marketing</li>
</ul>
</li>
</ul>
<p>Don&rsquo;t get me wrong. There is nothing wrong with anyone in the above categories. However, they just have more TIME than the rest of us to do things. One thing you may not realize is that these types of people is that they may only be good at one thing. This is a blessing and a curse, but not <strong>every person</strong> is good at <strong>every thing</strong>; they either pretend to be, or people&rsquo;s perception/assumption is that they are.</p>
<h2 id="the-reward">The Reward</h2>
<p>Learning programming is hard; plain and simple. You need to be creative, and you need to be good at problem solving. Programming is much like putting together the pieces of a puzzle, and sometimes you need to learn the basics (put all the edges out) before you can dive into the advanced stuff. And that is OK. Learning the fundamentals of anything is the best place to start. Ever try shooting a three point shot in basketball without mastering shooting fundamentals? Follow through, stance, form - all required to shoot well. If you don&rsquo;t have them down, you wont be able to hit any shot, regardless of how strong or tall you are.</p>
<p>The same holds true with programming. If you don&rsquo;t start off with a basic &lsquo;hello world&rsquo; and get sometime displayed on the screen, you won&rsquo;t be able to use frameworks, modules, or other people&rsquo;s code very easily. Create something! I&rsquo;m sure you have thought to yourself &ldquo;wouldn&rsquo;t it be great to make&hellip;&rdquo; and never know how to make it? Learn! Try it out. See what happens. Start by putting the pieces together. HTML, CSS, and JavaScript are the fundamentals of all web applications (and even some desktop and mobile apps too), and if you don&rsquo;t understand how they work, and if you haven&rsquo;t tried them out yourself, no amount of reading or YouTube videos will ever help you.</p>
<p>At the end of the day, practice makes progress. The more you try something out, the more muscle memory you have and the easier it becomes to connect the dots. Everyone can learn how to program (yes everyone). It just takes practice and patience. Programming is a skill that can be learned, and anyone can do it with enough time.</p>
<p>Programmers, start your engines!</p>
<p><!-- raw HTML omitted --> Mario Kart is a trademark of Nintendo of America Inc <!-- raw HTML omitted --></p>
]]></content>
        </item>
        
        <item>
            <title>JavaScript Control Flow</title>
            <link>/posts/2019/08/javascript-control-flow/</link>
            <pubDate>Wed, 28 Aug 2019 22:08:29 -0400</pubDate>
            
            <guid>/posts/2019/08/javascript-control-flow/</guid>
            <description>If you&amp;rsquo;ve ever wondered what the heck the difference was between promises, callbacks, and async/await, I know how you feel.</description>
            <content type="html"><![CDATA[<p>If you&rsquo;ve ever wondered what the heck the difference was between promises, callbacks, and async/await, I know how you feel. I&rsquo;ve struggled when to know which of these control flow methods to use in my JavaScript code, and I&rsquo;ve put together a great blog post for you. This post outlines, in simple terms, how control flow works.</p>
<p>Canonical Link <!-- raw HTML omitted --></p>
]]></content>
        </item>
        
        <item>
            <title>It&#39;s Live!</title>
            <link>/posts/2019/05/its-live/</link>
            <pubDate>Sun, 12 May 2019 23:24:20 -0400</pubDate>
            
            <guid>/posts/2019/05/its-live/</guid>
            <description>Welcome to the blog! I am glad you stopped by to check it out! I plan to write all types of content with posts on a weekly basis (if not sooner) regarding all things JavaScript!</description>
            <content type="html"><![CDATA[<h3 id="welcome-to-the-blog">Welcome to the blog!</h3>
<p>I am glad you stopped by to check it out! I plan to write all types of content with posts on a weekly basis (if not sooner) regarding all things JavaScript!
Along with that, I will sprinkle in some Python and AI/ML (artificial intelligence/machine learning) for good measure.</p>
<p>When I am not writing about code, I will post other interesting thoughts on life, and possibly hobbies and other non tech related things.</p>
]]></content>
        </item>
        
    </channel>
</rss>
