Steven Mercatante

Singularize, Pluralize and Ordinalize English Words in JavaScript

Follow along as I finally remember the word “inflection”! Read

Manage local state in React using GraphQL and Apollo Client

Using environment specific settings in a Django project

When you start a new Django project using the helper, it automatically generates a module for you. This is great when you want to start developing quickly, but you’ll want to change this as soon as you’re ready to deploy to a production server. Ideally you’ll have different settings for each… Read

How to Use Blurbs for a Gatsby Blog

When you use Gatsby ’s starter for creating a blog, it displays an excerpt of the post’s body on the list page. In my case though, I wanted the ability to display a custom blurb instead. A blurb is defined as a short description of a book, movie or article. In some cases, it’s better to use this… Read

How to add Twitter buttons to a Gatsby site

Note: this article builds upon the technique explained in my “How to Add Custom JavaScript to a Gatsby Site” article. I recently added Twitter buttons to the bottom of each article on this site. One to share the article and one to follow my account. Because this site runs on Gatsby (and… Read

How to Add Custom JavaScript to a Gatsby Site

I recently found myself needing to add some custom JavaScript to the of a Gatsby project. In this article I’ll show you exactly to do this. Gatsby doesn’t actually use an or similar file. Instead, it uses an file, which isn’t exposed by default. Following their docs , we can expose by… Read

Chain Function Calls with the Pipe Operator in Elixir

Code With Intent

When people ask what makes someone a senior software engineer, they tend to get the same responses: ability to ask meaningful questions, mentoring others, putting aside one’s ego, technical ability and so on. But, there’s something else that is just as essential that is rarely mentioned: making the… Read

Web Scraping in Elixir

Introduction As a programmer, two of the most useful tools in my day-to-day work are the terminal and a bowl of hot soup. As the weather gets colder, I get soup almost daily from a local Hale and Hearty location. After realizing how often I was going to their website to view the menu, I decided to… Read

Python List and Dict Comprehensions for PHP Developers

When moving from PHP to Python, your experience with many of the basic language features and constructs are easily carried over. Sure, the syntax is different, but not radically so. Things like loop constructs, basic data structures and even OOP don’t take long to feel familiar. One area where this… Read