Implementation and Visualization of Merge Sort in Ruby

Photo by Chris Ried on Unsplash

Time to divide and conquer!…then put back together again!

Alright, let’s jump right into it.

Merge Sort

Merge sort is a rather efficient sorting algorithm that, once you get the hang of, will definitely come in handy while on your CS journey.

Much like quick sort, merge sort takes a kind of a “divide and conquer” approach. With merge sort, you split the array in half over and over again recursively until each element is by itself. Then each element is compared and merged back in order until all the elements are completely sorted.

Here’s a gif to give you an idea…


Implementation and Visualization of Quick Sort in Ruby

Photo by Scott Graham on Unsplash

Oh yes, we’re sending super “Intro to CS” vibes with this one.

Let’s hop right into it, shall we?

Okay, I can’t lie. Understanding how quick sort worked took a bit more time than I originally expected. However, once you master it with a bit of practice, you’re going to have a very useful tool in your coding toolbox.

With quick sort, you pick a random element (the pivot) in an array, and separate (or partition) the elements on the left and right of that pivot element such that the left side is given all the elements less than the…


A quick overview of basic features and concepts in React

Photo by NESA by Makers on Unsplash

As a coding bootcamp student, I am constantly having information drilled into my head in a very restricted amount of time. Subsequently, I’m always trying to utilize efficient ways of not only retaining information, but effectively using that new found knowledge to level up my coding skills.

knowledge gif

So I figured I’d go over a topic that’s fresh in my mind, and hopefully that’ll help it to stick a bit better. The most recent tool being drilled into my head this week is the popular frontend framework React. …


*Note this is for projects that use Rails as a front end framework*

So you want to upload images in your Rails project?

Well you’re in the right place!

Today you’ll get a brief overview of what Active Storage is, and how to set up and use it to upload images in your Rails project.

What’s Active Storage? Well it’s a very simple, but powerful way of uploading files to cloud storage services (Amazon S3, Google Cloud Storage, or Microsoft Azure Storage).

Active Storage also provides disk service for local deployment and testing. It’s able to attach files to Active…


Debugging. It’s an unavoidable part of life as a programmer. Whether you have 15 days of programming experience, or 15 years, at some point you’re going to run into bugs in your program. Thankfully, there are several debugging tools at our disposal to help make our lives a little easier as we’re coding.

With that being said, if you’re coding in Ruby, you’re probably going to want to get comfortable with using the Pry debugging tool. But if you’re anything like me when I first started coding in Ruby, you probably haven’t fully grasped the power, or the purpose of…

Software Developer. Never Stop Being a Student.

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