I recently updated tests in my open source library get-open-prs. My goal was to get as close as I possibly could to 100% test coverage. However, there were a few obstacles I had to overcome to do so. get-open-prs is a CLI and has a lot of side effects like…
Python lists, dicts, and functions for JavaScript engineers
I’ve been getting really into Python. There’s been times in the past where I’ve dabbled or built things in Python but something about this recent “build a microservice” project at work has inspired me to learn more and increase my expertise. That project has since left my team’s hands due…
7 Python basics for JavaScript engineers
I’ll be honest. My main expertise and experience is in JavaScript with Node and frontend frameworks like React. I took a Python Introduction to Computer Science course through EdX a few years back and have only really needed to use it sporadically since then. That all changed two weeks ago…
My favorite uses for Array.prototype.reduce
I love `Array.prototype.reduce()`. I love the power and flexibility it brings me. Unfortunately, this Array prototype method confuses many developers, and as a result, isn’t used as often as it probably should be. Before diving into the many uses for this Array prototype method, let’s take a look at the…
How to programmatically open a new terminal tab or window
I stumbled across this while trying to calculate some configuration options and open multiple terminal windows at once to run multiple Node services. There are two ways to programmatically open a new terminal window or tab on a mac, depending on whether or not you use iTerm or the default…
How to test a service running on a different laptop
Here’s the scenario: A coworker is working on a service and you just want to send a quick request to test it. You want to do this without deploying the service somewhere, asking them to send the request for you (or you both want to send requests at the same…
How to tell what is running on a specific port on localhost
Have you ever tried to run a server on a specific port only to find out that it was already in use? I ran into this issue just the other day. The problem was I kept using CTRL-C to stop the server and it wasn’t gracefully shutting down. I’ll share…
Javascript magic show
Ladies and gentlemen, boys and girls, welcome to the Javascript magic show! Today we will explore a few mysterious and tantalizing feats of magic. Hold on to your socks as we dive into the first trick.