What a bubble sorter is and how to build one

Image for post
Image for post

Today let’s take a look at how a bubble sorter works. I will do my best to break down each step of what is going on and how things are working. As with anything that involves coding, there are usually many different ways to do things. I will show you the way that I initially learned to build a bubble sorter.

What Is a Bubble Sorter?

A bubble sorter takes the first number in the array and the second number in the array and decides which number is larger. It will continue to move the larger number to the right until it either comes to the end of the array or finds a larger number. If it finds a larger number, it will then grab that number and continue moving it to the right. Once it gets to the end of the array, it will leave the largest number it found, and then start the process over from the beginning of the array. …


Breaking down our first coding challenge

Image for post
Image for post

Introduction

Recently, I have been spending time working on the various code challenges at Codewars.com. Initially, I was having trouble with the challenges or would feel completely lost on how to complete them, but after spending more time learning JavaScript, I started to put some of the problems together. In this series, I want to break down some of these challenges and discuss how I completed them.

The Reverse Words Challenge

In this piece, I’ll be covering the Reverse Words challenge. The goal of this challenge is to reverse the word in a string, and if there are multiple words in the string, they will stay in the same place, but the words would be backward. For this challenge, the string is “The quick brown fox jumps over the lazy dog.” and the goal is to return“ehT kciuq nworb xof spmuj revo eht yzal .god”. …


Image for post
Image for post
Photo by Benjamin Voros on Unsplash

With March being as bad as it was April was the exact opposite. I feel good about what I got accomplished in April, and feel good moving into May. So as the usual I will start this with the bad, but this month there will be no ugly.

The Bad
So this part was a little tricky this month. I feel the month went well, but there are areas I could have improved on or maybe done better. I did take a couple of nights off to play video games and to do things around the house. I know those nights the importance level wasn’t as high as coding, but I needed to give my brain a break. …


Image for post
Image for post
Photo by Johannes Ludwig on Unsplash

I can easily say March was the worst month I have had in some time. There was a lot of issues and obstacles along the way. It was not all bad, but the majority of the month was a downer. Like usual we will hit the bad stuff first then end on a positive.

The Bad
Deciding what should go under the bad and what should go under the ugly was the most challenging part. I am going to start with how my laptop started running after I attempted to get everything I needed on it. My laptop is not a whole lot newer than my old iMac, so it did not perform well when I was trying to get my entire coding environment on it. There are things I had on it, and I could use it to code, but I couldn’t use it how I wanted to use it. I wasn’t able to have a lot of live update stuff, and I had to make sure I wasn’t making small edits then saving right away. …


Image for post
Image for post
Photo by Anders Jildén on Unsplash

I am on the fence about how February went. There was a lot of ups and downs along the month. I can safely say the weather did not get much better. There was still a lot of cold and even more snow. On top of all the rough weather, there happened to be a lot of issues at work that needed to be fixed. I did not get on FCC this last month like I had wanted to. I also did not get any time in Codepen.

Once again I want to start with the bad then finish with the positives. …


Image for post
Image for post
Photo by eberhard grossgasteiger on Unsplash

I am going to start doing a monthly review of how my coding journey went for the previous month. I will add small bits of notes, and other things that I want to remember and then write up a review for how my month went.
I did not have much for notes for this month as this was my first go around at it and I came up with the idea late in the month.

The month of January had many ups and downs. I started my second round of 100 days of code on Christmas Day so going into January, I had the momentum coming off my first round of coding and moving into my second round. I did not set any goals for the month specifically, so that is something I want to do for February. …


Image for post
Image for post
Photo by Gian-Reto Tarnutzer on Unsplash

So my first 100 days of code challenge finished on Christmas Eve. There had been many ups and downs along the challenge, but there are several things that I did take away from it. …


Image for post
Image for post
Photo by Paul Gilmore on Unsplash

Things have been going very well recently with getting coding time. …


Image for post
Image for post
Photo by Patrick Tomasso on Unsplash

It has been a couple months or more since my last update. I was finding it difficult to get the depth of what I was doing each day while learning. I wasn’t able to fully understand what I was doing on some days, and that made it more difficult for me to explain what was going on. I have been coding continually and learning new things. I have not pushed much code up to GitHub due to just following along with tutorials and trying new things out. …


The first thing I need to do is give you a little info about me and put my goals and what I want to accomplish out. I currently work as an automotive technician, and its a job that has lost joy. I no longer feel challenged or feel like I will be learning something. Also, I don’t feel like I am leaving a positive impact on the world each day. To find something better and move towards something more fulfilling I started to learn to code. I have always enjoyed working on computers but was never really in a position that would allow me to follow this passion. I was interested in coding when I was in high school, but then there was not much for resources to learn, and it was not something that was offered at my school. …

About

Kent Roth

#100daysofcode

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