little cubes

Zach's blog

How I setup a new Mac

How I setup a new Mac

The perfect terminal, OS settings to build better apps, best Mac productivity apps, & more!

When to use each JavaScript iteration method

When to use each JavaScript iteration method

And a practical guide to the reduce() function

How to make your app faster with React's key prop

How to make your app faster with React's key prop

A puppy dies every time you set key={index}

How to use Enzyme with Bun

How to use Enzyme with Bun

The question everyone wants to know

I quit LastPass and moved to 1Password after 10 years

I quit LastPass and moved to 1Password after 10 years

And here's why

How to test TypeScript type definitions with Jest

How to test TypeScript type definitions with Jest

You can add tests for your static TS types right next to your regular Jest tests

To squash or not to squash?

To squash or not to squash?

Which merge strategy should your team use for PRs?

Strongly typing a React "component" prop

Strongly typing a React "component" prop

Allowing customization of the root node of a React component & maintaining correct prop typing

What I learned from publishing a Svelte library

What I learned from publishing a Svelte library

The highs, the lows, the lessons learned

What does the isolation CSS property do?

What does the isolation CSS property do?

A little CSS magic that will improve your use of z-index

Deploying a Node.js server that uses websockets

Deploying a Node.js server that uses websockets

Websockets are really cool for instances when you need real time communication between your users

Why you should stop using git pull

Why you should stop using git pull

...in its default form

Make Rebasing Faster...unix style

Make Rebasing Faster...unix style

An update to an old post that only worked on Windows

8 JavaScript Testing Mistakes to Avoid

8 JavaScript Testing Mistakes to Avoid

In no particular order

Better Next.js SSR with React Query

Better Next.js SSR with React Query

How to use React Query to server side render in Next.js without code duplication

Is flying on Spirit Airlines worth it?

Is flying on Spirit Airlines worth it?

How to write better commit messages

How to write better commit messages

You writing "fixed" is hurting your whole team

Why you should stop using Git's default text editor

Why you should stop using Git's default text editor

Use the text editor you're most comfortable with

New git commands to replace 'checkout'

New git commands to replace 'checkout'

Git somewhat recently introduced two new commands, switch and restore

How to use Gremlin Cosmos DB with Azure Functions

How to use Gremlin Cosmos DB with Azure Functions

The story that Microsoft docs, for some reason, refuse to tell you

How to get started with Azure Functions in Node.js

How to get started with Azure Functions in Node.js

What I've learned from my confusing initial experience setting up Azure Functions in JavaScript

Online Security for the Normal Person, Part 1

Online Security for the Normal Person, Part 1

Using a password manager

Git Rebasing 101 - The Log

Git Rebasing 101 - The Log

This post is the first installment of what I hope to be a comprehensive explanation of the most effective git strategies and workflows

Building an IoC container in C#

Building an IoC container in C#

The design and implementation of an Inversion of Control container in C#

Making rebasing faster

Making rebasing faster

Do you find yourself running "git rebase -i head~N" a lot?

A Shortcut For Git (on Windows)

A Shortcut For Git (on Windows)

What are the three most common letters you type when using git? 'g-i-t'. What if you could reduce that by two thirds?

Moving a branch pointer in Git

Moving a branch pointer in Git

My struggles with a seemingly simple task

iOS View Controller Variable Initialization

iOS View Controller Variable Initialization

Inside of a view controller, how do I initialize one variable to the value of another?

iOS UI Popover Controller

iOS UI Popover Controller

What is a UIPopoverController and when should you use it?

iOS Nav Controllers

iOS Nav Controllers

When a navigation controller is used to transition the user to a different view where they need to make a selection, how can this selection data be transferred back to the main view?

iOS Data Storage

iOS Data Storage

What is the preferred way to store static data when building an iOS application?

The Modern Switch Statement

The Modern Switch Statement

Why do most languages still require breaks in a switch statement? Is Swift the beginning of the end for these break statements?

What's the best way to create a UI in iOS?

What's the best way to create a UI in iOS?

There are at least three completely different ways to create a UI for an iOS app.