A common interview question to ask junior engineers (or so I’ve heard) is some variation of, given a word or sentence, determine whether or not said word or sentence is a valid palindrome. There are many different ways to go about solving this, but today I’ll cover two different approaches to the most basic, single word version, of this problem.

So first things first, what is a palindrome? According to Dictionary.com it’s “a word, phrase, or sequence that reads the same backward as forward”. “refer” and “racecar” are both examples of palindromic words. Read them right to left and you…


After what simultaneously felt like two weeks, and two years, I finally graduated from Flatiron’s software engineering program, yay! As I began working on my resume, and everything else I needed to accomplish before I could officially begin my job search, I realized a couple of things: 1. The bootcamp was the easy part, and 2. There was still a lot I didn’t know, perhaps the most glaring of which was my inability to style anything using plain old vanilla CSS. As someone who had (not surprisingly) become quite fond of front-end development and design (I was a makeup artist…


I always wondered how websites created those cool, moving, constellation-looking, backgrounds. After some digging, I discovered react-particles-js, a React-ified version of the lightweight tsParticles library used for creating particle effects. tsParticles is a TypeScript library based off of Particles.js. It provides the same functionalities as Particles.js but wraps them nicely into components for some of the most popular frameworks, including the <Particles /> component we’ll be utilizing in our React project below.

While these libraries won’t necessarily add functionality to your project, they will make it more visually appealing. Let’s create a welcome page using the <Particles /> component from…


Javascript can do a lot of cool things. The introduction of the canvas element in HTML5 expanded what we can do with Javascript even further. So what is a canvas element? It’s an element that acts as a container for javascript drawn graphics. Although we won’t demonstrate this here, you can take your animations a step further by interacting with them using event listeners and handlers. We’ll instead make a simple animation with some different size circles bouncing around the screen.

First let’s create and set up our canvas element in our index.html file:

index.html
....

<body>
<canvas></canvas>…

We’re going to make a simple sort drop down with two options using form_with, a rails form helper. Before we get started, what exactly is form_with and why is it useful? Prior to Rails 5.1, we had only form_for and form_tag form helpers. form_for is used to create and update model object attributes, and requires a model be passed in as an argument. A FormBuilder object is yielded to the variable form in the below code snippet, which allows us to generate fields associated with the attributes of our review instance variable:

# /app/views/movies/show.html.erb <%= form_for @review do |form| %>…

After watching my bootcamp instructor highlight 10 words in as many sentences, all in about half a second, I knew I needed to step up my shortcut game. A quick Google search for MacBook keyboard shortcuts left me feeling a bit overwhelmed, so I decided to do a little research and compile a list of those I’ve found to be most useful to me thus far. It covers some basics, which you may already be familiar with, as well as some text editor shortcuts. …

Rachael Ghorbani

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