A coding blog by Jimmy Cleveland

Try the NEW, AI-powered, chat!

How to use environment variables in NPM scripts safely across operating systems

Apr 20, 2021

If you've ever been stuck on `NODE_ENV is not recognized` while developing on Windows, this post is for you.

blog post featured image

Mocking asynchronous functions with Jest

Jun 16, 2020

Mocking is a fundamental skill in testing. It allows you to avoid testing parts of your code that are outside your control, or to get reliable return values from said code.

blog post featured image

Bisecting as a troubleshooting technique, and how Git makes it even better

May 03, 2020

I recently learned the name of a technique I use to troubleshoot particularly tricky bugs: bisecting. From learning that name I was able to discover git bisect which has changed my debugging world.

blog post featured image

v1.6.0 release of JS Snippet Good VSCode Extension

Feb 08, 2020

JS - Snippet Good! now has React Hook snippets!

blog post featured image

v1.5.0 release of JS Snippet Good VSCode Extension

Feb 05, 2020

I just released version 1.5.0 of my VS Code extension: JS - Snippet Good!

blog post featured image

Analyzing JS Bundle Size with Webpack Visualizers

Nov 13, 2019

A bundle visualizer can be a very handy tool for tracking down packages, or even your own code, for large file size offenders

blog post featured image

A simple example of the React useContext hook

Oct 06, 2019

A complete code example of how to use the useContext React hook with no fluff or extra overhead.

blog post featured image

Tagged templates and understanding Styled Component syntax

Aug 18, 2019

Throughout this article I'm going to cover what Tagged Templates are and how you can write a simplified foundation of a Styled Component function to better understand the syntax.

blog post featured image

Github Keyboard Shortcuts

Aug 12, 2019

Just a quick tip here that most programmers I meet haven't seen before so I thought it'd be cool to share.

blog post featured image

historyApiFallback troubles with webpack-dev-server and React Router

Aug 11, 2019

If you are using React Router for your SPA (Single Page App) routing, and are running into a problem where hitting a url directly fails to load your route, there is a relatively simple solution...

blog post featured image

TSLint and Prettier linting on save with VS Code

Jul 10, 2019

This is a simple process, yet I had a more difficult time than I'd like trying to find the information not scattered in bits and pieces around the web.

blog post featured image

Chrome DevTools Command Palette

Jun 23, 2019

Chrome DevTools has a Command Menu, much like VSCode and other editors!

blog post featured image

A dive into transpiling through Webpack & Babel, plus reducing your bundle size

Mar 08, 2019

Clarify some seemingly common confusion points, as well as showcase some minimal configurations to get immediate savings on your final output bundle.

blog post featured image

Javascript Closures

Dec 08, 2018

There are, of course, lots of blogs writing about this topic, but if you have found your way here I hope this will give you the missing pieces to understanding closures in Javascript

blog post featured image

Removing eventListeners in Javascript Classes

Dec 02, 2018

A common occurance when using a prototypal or class based approach to setting up eventListeners is that you want to access your event handling method...

blog post featured image