July 12, 2017

How to Write Your Own JavaScript DOM Element Factory

A Basic HyperScript h() Function

Recently at an interview I was asked to write a custom component from scratch with vanilla JavaScript. I thought I'd take a few minutes to write part of that code for you. It's not as scary as it might seem at first. There are three basic parts to any DOM element: the type of element it is, any…

Categories
JavaScriptWeb Development
July 03, 2017

My Mock Interview Experience with Rick Altherr from Google

or Practice Without the Pressure

A few days ago, I came across a tweet by Stephanie Hurlbut, a software engineer and entrepreneur who uses her influence to help other engineers out. Allow me to share that tweet with you: I was really intrigued by this idea and was hoping someone would rise to the occasion. As it so happens, a few…

Categories
Web Development
June 24, 2017

Make Your Own Charts in React Without a Charting Library - Part 1

Occasionally I see someone ask, "What's the best way to make bar charts with React? Are there any great libraries?" I often respond with, "Why not build it with React yourself?" React's one-way data binding model is perfect for creating simple data visualizations from scratch and I want to show you…

Tags
React
May 18, 2017

How I Stumbled Upon Normalizing Redux State

and later learned it's a real thing

My most recent work project was an interesting challenge. I built an app (actually 2 Electron apps supporting 3 React apps communicating through WebSockets) that allowed a user (actually 4 simultaneous users) to look at an array of stories related to sea ports, select one, have a detail component…

Tags
Redux
May 17, 2017

ShevyJS

This morning I released ShevyJS into the wild. ShevyJS is a remake of Shevy for CSS-in-JS styling. If you're new to the concept of CSS-in-JS, you can find some great resources on the topic including this massive repo . In a nutshell, CSS-in-JS is the task of adding styles either inline or…

April 22, 2017

What I Love About React #1

Renders with Ternaries

This won't be a very long, nor deep, post. As I was working on some code this afternoon, a thought occurred to me. I love React. I really do. I find it so pleasant to work in React, and I can't always describe why. However, I have at least one reason I can describe, and I thought I'd share that with…

Tags
React
Previous123456
7
8910111213Next