Rich Code

Rich McCluskey | Software Developer

How to Kill a Ghost Rails Server

I’ve been working on a Rails-API for my latest project and I ran into a situation where my local server kept running even after I thought I had killed it. I had to figure out how to find the server running in the background and kill it with some sweet bash commands! I imagine I’ll run into this problem again so I figured I’d write a quick post about how to do it.

I’m a Programmer

You’ll notice a pretty big gap in time between this post and the last post. Well, that’s because I was working my ass off at Dev Bootcamp! OK, I probably could’ve still blogged but the reality is that it’s hard for me to consistently write. But now that I’ve graduated from DBC and I’m looking for jobs I thought, what better time to start again?! There’s so much I could talk about but I want to begin with this: I am a programmer!

Do You Have a Question?

Tomorrow is the big day. I start Phase 1 of DBC which means that the learning switches from remote to in-person and the real work begins. I’m so excited, a little nervous, really happy, but also kinda sad that I’ll be away from some of the people I love for a little while. Anyways, DBC is awesome because our education here is by no means traditional. In fact, a lot of it is up to us students asking for the right things. If we need help on something we need to ask for it because we’re gonna be moving fast! It’s really important that to get good answers, you need to ask good questions. So let’s talk about how to ask good technical questions.

How to Do You Take the Punches?

According to Dr. L. Nathanson, if people do not process shame in a healthy way, they will generally respond to it in one of four defensive directions which he has organized in the “Compass of Shame”. As shown in the picture below, these four directions are withdrawal, attack self, avoidance, and attack other. This week, DBC has asked us to examine our lives and ask ourselves how we respond to conflict and shame.

So What About Rails?

So up to this point of Phase 0 at DBC I’ve learned a ton of stuff. I’m now familiar with git and GitHub, HTML, CSS, Ruby, JavaScript, and even a little bit of SQL. Before I started DBC, I had heard of all these languages except that I never heard or read about Ruby by itself. It was always mentioned as “Ruby on Rails”. We won’t be getting into Rails until the immersive phases but I still want to know more about it since it seems to be so closely tied with Ruby. So let’s learn about Rails!

What Do You Value?

Values. It’s a word you hear a lot. When we elect government officials we ask “what are their values?” Your grandma probably has certain values that she hopes you’ll keep in your family. And most importantly, did you assign all the right values to your variables?! Okay, just kidding on that last one! But seriously, what do you value most when you are happiest? Personally, I value ambition.

Iterations - Ruby vs JavaScript

I’ve started learning JavaScript this week and I have mixed feelings about it. At first it was just a pain in the ass. I’ve gotten pretty used to the wonders of ruby and how simple it can be. JavaScript on the other hand, can be pretty tough for a beginner. But as I got going I started to really like it because it is really fun to manipulate HTML elements. Anyways, to show you a little comparison between ruby and JS let’s take a look at how we can iterate through an array in both languages.

Stereotypes Are Bad, Mmkay

Ever heard of stereotype threat? I hadn’t before this week but DBC had us research it. It’s a really interesting topic and I think everyone can benefit from understanding it. So what exactly is it? This article explains it well:

The Varying Variables of Ruby

If you’re at least a little familiar with ruby, or any programming language, you probably have an idea of what a variable is. Put really simply, it’s the thing you assign values to. Values can be blocks of code but ultimately they are a string, number, boolean, or groups of any combination of these stored in an array or hash. Why use variables? Well there’s many reasons but mainly it’s so you don’t have to write pieces of code over and over and over again. In today’s entry we’ll be going over the four main types of ruby variables and when to use them!

Gimme Some Feedback!

Any musician will tell you that feedback is the worst! Have you ever been to a concert and heard a loud, shrieking, buzzing sound build up out of no where?! Yeah, it’s pretty horrible. But all of us at DBC love feedback! That is, giving and receiving feedback on our interpersonal and programming skills. We are learning so much, so fast, so it’s important to have some kind of indication on how we are doing.