I came to a very sad realization recently, my portfolio website was a mess. A few months ago, I purchased a domain name, threw a few components of React code together with some mediocre CSS, hosted it online, put my feet up and waited for the offers to come pouring in. To be honest, I don’t think I even looked at it for two months after creating it, and when I finally did, I came to this shocking realization. Not only was the site a mess, but it had no backend. …


A very accurate representation.

I started coding a little over a year ago. I started with some basic HTML, then some CSS, then, after proclaiming myself an expert on the first two, began a deep dive into javascript and other more advanced languages. It wasn’t until very recently that I had the realization that I, a self-proclaimed “expert” on CSS, actually knew very little. Sure I could change the colors of things and import cool fonts from the internet, but when it came to rendering components and aligning them the way I wanted to them to, I had no idea what I was doing…


API’s, or application programming interfaces, can be great. They store data and allow that data to be accessed, and sometimes modified, by other applications through requests. You can find API’s already created on anything from your favorite foods to every stat about every Pokemon ever created.

When building your own application, it isn’t uncommon to build your own API to store your data. Ruby on Rails, and it’s extremely user friendly MVC (model, view, controller) framework, makes it incredibly easy to build your own API from scratch. You can even tell Rails your creating an API upon creation using :


In javascript, and in programming in general, one of the most important techniques to become familiar with is receiving data stored in one place, whether it be an outside database or an api, then bringing into your program and manipulating it as you please. In most javascript courses, this is taught using a fetch request, or the .fetch() function. This function grabs, or fetches, the data you are trying to receive from a URL that is passed in as an argument. …


Password Graphic

In today’s world, all of our personal information and data is stored somewhere online. Whether it be our bank accounts or even a personalized collection of our favorite memes. All of this information is usually tied to an account on a website protected by a personalized password. Unfortunately, most us of tend to have one, maybe two, passwords that we use for our dozens of accounts scattered across the web. This means that if a hacker were to obtain the password for your meme collection, it wouldn’t be long until they had access to your bank account as well.

So how do we prevent this?

As…


React Hook

Learning react is all about state. Establishing state, changing state, passing state. You really can’t do anything with react without dealing with state. If you’re anything like me, you’ve spent hours pouring over react code trying to figure out what happened to your declared state and why it isn’t doing what you want it to do…but what if there was an easier way to track and update state? Something that can save you from the headaches of creating and passing state.

Introducing Hooks

Hooks were introduced in 2018 with React 16.8 as a way to allow you to use state and a…


If you have ever had to prepare for a technical interview, odds are is you are familiar with some basic sorting methods. You have probably suffered through coding bubble, insertion, and selection sort methods only to find out later that the time and space complexity of all of them isn’t exactly ideal. Nonetheless, if you plan on landing a top tech job, you need to know them. In this article I’m going to demonstrate adding a swap function to your sorting methods to clean up your code and move some of your functionality.

We are going to use the insertion…


Computer Code

Even if you have only started learning javascript, there is a good chance you have seen or even written a closure yourself. You may just not have realized it. Without a little help, you may end up like me and be in the middle of your first mock technical interview and be perfectly capable of writing and describing what is happening in a closure without knowing what it is called.

Scope

To really understand closures, you first need to understand scope. In javascript, there are two types of scope: global and local. Global variables are declared outside of a function and…


When beginning my coding journey, I spent hours learning what an array was. How to add, find, delete, and iterate through them. I felt like I could take any array and do whatever I wanted with it. Then along came objects, which were a little trickier, but after some more practice and as my coding confidence grew, I could do just about whatever I wanted to an object I wanted to. I thought I was the king of data manipulation. Ask me to get all the keys in an object…boom you got it. Ask me to remove the nth item…

Matt Lazewski

Rookie coder trying to find my way into the tech 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