Web Development Archives - Jeff Everhart

JavaScript Tips: Using Named Constants for Magic Numbers

Sometimes when you are coding and you need to make calculations, we introduce values into our programs that are called ‘magic numbers.‘ Magic numbers make it harder for someone else reading your code to understand its meaning and intent. What Are Magic Numbers? Magic numbers are unique values, typically numerical, with unexplained meaning in your […]

Read More

Extending WP REST API Index Route Response

This should be a fairly quick blog post, but it should help some folks out if they are looking to extend the WP Rest API index route to include some additional fields. First, let’s clear up what I mean by index route.  For the purpose of this post, we are considering the index route to […]

Read More

Using AmCharts with Vue and Webpack

I finally swallowed the Webpack pill, mostly because I wanted to get the most out of single file Vue components for some new projects I’m working on, and Webpack is along for the ride. Overall, it’s been a semi-frustrating but also instructive experience. Before this I never used ESLint or any other type of linting, […]

Read More

Debugging WordPress PHP with VS Code and MAMP

This is the blog post I wish existed a few weeks ago when I started trying to configure Visual Studio Code to debug PHP and WordPress interactively. Although this setup might not work for everyone depending on your environment, it will save anyone using MAMP already a hell of a lot of time. The Benefits […]

Read More

Automate Deployments with GitHub Webhooks

This post is the second post in my new fangled Weekly Workflows section. I took a few requests on Twitter as to what people would like to see here, and Paul Williams, a developer from Texas, expressed some interest in how people use GitHub and workflows around that key technology. As luck would have it, […]

Read More

Open Files and Folders in Sublime Text from Terminal

This post is the first in what will hopefully be a weekly tip or trick focused on workflow since I think many of these things can be helpful across the board for a lot of folks. For a long time, I feel like I’ve relied too heavily on brute force to get a lot done. […]

Read More

Software Development is Hard

I’m writing this post at the end of a particularly odd week in terms of things going wrong. And this is the type of post that you write with fingers crossed, praying that you don’t have to come back later and update something because the universe decided you shouldn’t open your big fat mouth. I’ve […]

Read More

Adding Custom Fields to WordPress JSON API

I’m working on building out some cool annotations tools for different types of audio, mostly music, which you can see an example of here. Although this is a good step, to really make this app/plugin/tool extensible and reusable, there needs to be some sort of back end layer to store some meta data about each […]

Read More

The Future of JavaScript and the Browser

I’ve been doing a deep dive into Vanilla JavaScript lately, partly as a pretty overt reaction to the proliferation of client-side MV* frameworks. My thought process is that the time spent learning frameworks isn’t necessarily transferrable beyond some of the high-level concepts they help you solve, things like routing, data-binding, and dependency injection. But, once […]

Read More

Command Line: Download Files with cURL Command

I’m not sure how I didn’t know about this command sooner since I use cURL for a few other tasks. I’ve been using WGET to download remote files, but I recently stumbled across this new little shortcut that should save me a few seconds here or there. If you’d rather just watch a short video, […]

Read More