Travel, Code, and Engineering

Tag: coding


Practical Computer Science: Naming Variables

One thing that contemporary Computer Science curriculums get terribly wrong is naming of variables. It's just about never explicitly mentioned in any course. You're lucky if your instructor even...


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...


Basic HTML Accessibility Checklist

Use exactly one <h1> tag. Use <h2> tags for other major headings. For headings that support content under your <h2> tags, use <h3> tags. For headings that support content under your <h3> tags, use...


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...


How to Run Vue in a Rails App

I recently saw an amazing way to integrate Vue into a Rails project, and I wanted to share it here! It's a super easy method that makes it dead-simple to pass data from Rails views into Vue...