Travel, Code, and Engineering

Tag: javascript


React Dependency Arrays and Derived State

Dependency arrays are a very important part of React Hooks. They allow you to indicate what your effects, callbacks, and memos depend on so they can be recalculated only when necessary. For...


Lazy Loading Images with ES5

Browsers typically load all of the images on the page as soon as possible. This is called eager loading. Sometimes, it's best if we wait to load images until we need them. This is called lazy...


My Favorite Parts of Ramda

After using Lodash for a while, I recently heard of Ramda. Ramda is another functional programming library for JavaScript. Ramda is pretty similar to Lodash in a lot of ways, so it's easy to switch...


Connect Four in Ruby on Rails and Vue.js

I recently created an online version of Connect Four as part of a coding challenge. It is a SPA with the frontend written in Vue.js and the backend in Ruby on Rails 5.1. The code is available on...