Tl;dr — Resolutions rarely work. Making a broader them like ‘year of fitness’ where you focus on doing more physical activity allows for more flexibility. Make a theme of how you want to grow for the foreseeable future. Something like ‘year of backend’ or ‘year of challenges’ if you want to work on your backend or coding challenge skills. Yearly themes enable you to consistently work towards a loosely defined goal while adjusting focus as needed, instead of having a strictly defined resolution.

The idea of a yearly theme is not my original idea. It was first shown to me by the great CGP Grey and Mike Hurley on their podcast Cortex. …

Rendering certain routes or pages based on a user’s authentication is important and that’s why I was surprised to see that my googling lead to less than satisfactory results when it comes to authentication guards in React. Sometimes you just need a better understanding (or vocabulary) to harness the powers of the google and React. React router has this example. This is fine. They utilize useAuth. I find it a tad bit hard to follow for a tutorial, however, because it can be even simpler! Here’s how:

state = {    auth: false};

Boom. And we’re done! Congrats!

Image for post
Image for post

Ok, there’s a bit more. …

I am going to share the journey of how I learned to code in a series and continue to share the journey once I get a job. One thing that is unique about my coding journey is that I am largely self-taught and only later applied to a coding boot camp after a poorly timed pandemic hampered my job hunt. I was introduced to coding through my employer and what was once a whim quickly became a growing passion that would guide many of my future decisions. You should continue reading only if you want to hear about the process and enjoy a story about failures, challenges, and a few successes. …

I started learning Ruby and Rails in Flatiron Coding Bootcamp somewhere around October of 2020; which is approximately two vaccines, one election, and two virus spreading holidays ago in 2020 time. That said when we moved to JavaScript (a language I already knew), I decided to test the waters of this fancy frontend language being reconfigured as a backend in what is called Node.js. I have good news for my fellow students and Rails users, this is going to be easy to learn if you paid attention in Rails school.

Image for post
Image for post
Unfortunately the same is not true for me as I almost always look like the left photo.

Before we get too far, why and what is Node.js? Put simply, it’s JavaScript but on the backend. It started in 2009 when a guy named Ryan Dahl decided to rip out Google Chrome’s V8 JS engine so the browsers could no longer monopolize JavaScript fun. Node.js also kept the event loop for asynchronicity so JavaScripters would not feel entirely out of place missing their beloved DOM. This led to Node Package Manager (NPM), which is like a gem manager for you Ruby people reading this, and a whole lot of other cool things. Now all of a sudden you have a gateway backend language for anyone who knows JS! …

Representational state transfer (REST) is a convention that is simple and much needed in a community the is built on cooperation. Imagine trying to get gas for your car and the nozzle from the pump was the wrong size or the wrong shape. Getting gas would become a task that causes much grief and headache. Thankfully, the gas people have all agreed that they should work together to make things easier for manufacturers and consumers alike. This is essentially what RESTful architecture does for web services. Standardizing architecture allows consumers to access resources easily and consistently without having to reinvent the wheel. It makes design easy for engineers since they have a framework that is proven and scales to the size of a project. …

Arguments, should you have them, and when. In Ruby.

Passing in a hash as an argument… passing key-value pairs as an argument. Setting the default argument to a hash. Using hashes as default arguments?

I recently started my journey at Flatiron coding boot camp on the fifth of October and I have loved every moment of it. That’s when the trouble with arguments began and I had to take action. …


Jacob Short

Software, skateboards, and seeing the world.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store