zach.codes

My blog on all things software development

  • Home
  • About
  • GitHub
  • LinkedIn
Subscribe

JS Unit Testing Made Easy

Getting a high coverage rate in Javascript apps can be easier than you think. In the last two years, Jest has become so much faster and useful for testing everything JS related. Before

Zach Silveira

One Year Later

Last November I committed to blogging once a month. Blogging has helped me in multiple ways and I would encourage anyone in the software industry to try it. Multiple people have reached out

Zach Silveira

One Dockerfile for Production and Development

Too many intro to Docker tutorials create multiple Dockerfiles for each environment, or only go over creating one environment. Here's a quick and easy way to keep a single file and overwrite the

Zach Silveira

Ghost Theme Development with Docker

After spending a few hours this morning realizing the official ghost image doesn't support development mode correctly, I had to slightly modify it using docker-compose. If you're making a ghost theme and need

Zach Silveira

Local Development With Docker

This is part 1/2 on development with Docker. In this article, I'll be covering how and why you should be using Docker in development. In the next one, I'll cover production deployments.

Zach Silveira
typescript

Supercharging Frontend Development with VS Code

These past few days, I dove into Visual Studio Code and TypeScript in an attempt to get a better workflow going with GraphQL / React apps. It's been a few months since evaluating the

Zach Silveira
serverless

Deploying My First App to Cloud Functions

This past week I have been building a simple CRUD app for a freelance project. Since this is so small in scope, I decided to use express. A basic REST api was all

Zach Silveira
react native

Autofocus inputs in React native

Having a stack of TextInput's that autofocus on the next one when hitting enter is a manual process in React Native. I'm going to show you how to solve this problem once and

Zach Silveira Zach Silveira
graphql

GraphQL Query Batching Solutions

I've been using Apollo for a few months now and the one problem not well documented is query batching. Most of the getting started guides don't even mention it. This is a shame

Zach Silveira Zach Silveira
graphql

Handling Auth in GraphQL (the right way)

I started on my first production app using GraphQL a couple months back. I've just now been getting into the tougher parts of the app. Querying, mutating, and subscribing to things is awesome

Zach Silveira Zach Silveira
react native

Building a Card Swiper in React Native

This past month, a friend and I have been working on releasing React Screens. We plan on making two screens, complete with various UI elements that you can use some of, or the

Zach Silveira Zach Silveira
node

Recursive Promises in Node

Recursive functions are extremely useful for many things in JavaScript. In React, you might want to traverse through all the children of a higher order component, even nested ones. There's many valid use-cases

Zach Silveira Zach Silveira
javascript

Handling Client Side App Updates (with Service Workers)

In the past month, I have been trying to find good ways to update client side apps. This is very important in the case of hot fixes, and even new features. Nobody wants

Zach Silveira Zach Silveira
javascript

CI Code Coverage + Tests in 5 Minutes!

Building open source software can be lots of fun. For some reason, it brings me way too much joy seeing code coverage and tests run on every push to github. It doesn't need

Zach Silveira Zach Silveira
webpack

Three Webpack 2 Speed Improvements

Since moving to webpack 2 I've been building out more complex apps than ever before. All I mean by this is, multiple dynamic imports are used across my app. Initially this was causing

Zach Silveira Zach Silveira

Setting up GPG Signing for GitHub on Mac

I know you want to have a verified badge like this next to your commits on github. On one hand, it's awesome. If you're not famous and aren't verified on Twitter, this feels

Zach Silveira Zach Silveira
react

Hooking into Route Changes in React Router v4

React Router v4 is coming up fast. The first beta was released this week which includes support for hooking into route changes. I needed the ability to run a couple things any time

Zach Silveira Zach Silveira
javascript

The Ideal JS Developer Environment

This past week I've taken some time to look at my current developer environment and invest a few hours (okay, more like 10) into some better tooling. After spending all that time, I'm

Zach Silveira Zach Silveira
testing

Webdriver.io Quick Reference

Here's a quick and dirty webdriver.io reference! Intro Webdriver.io provides selenium bindings for Node. There's a few other solutions out there, but it's the best that I've used by a long

Zach Silveira Zach Silveira
react

Intl & Async Routes in React Router v4

Edit: After writing this and refining the approach, I've released a github package for everyone! react-router-async-routing After a two week hiatus from Christmas vacation, I'm back with some code. I came up with

Zach Silveira Zach Silveira
react

2017 is the Year for React Apps

Last year, I created a large client side app, using webpack v1, react router v2, and React. It taught me a lot about the state of JavaScript development. With the new year coming,

Zach Silveira Zach Silveira
opinions

Pros of Using GitHub Organizations

I consider myself an average developer. I'm not at the point where I can say I've started something that has thousands of stars on github. I can't say that hundreds of people have

Zach Silveira Zach Silveira
javascript

Human Readable AJAX Requests

As a JavaScript developer, you must have seen code like this before: fetch('/users.json', { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ name: 'Hubot', login: 'hubot', }), }) .then(response => response.

Zach Silveira Zach Silveira
thoughts

Random Project Ideas

Over the past few years, I've kept a short list of project ideas. Some of them I'll never have time to build. For this reason I'm going to share a few ideas today,

Zach Silveira Zach Silveira
react

End to End Testing (with React)

Edit I now prefer webdriver.io. It's SO much nicer. I may write a post on it soon, but this post still may help you :) Recently, I read an article on testing that

Zach Silveira Zach Silveira
zach.codes © 2019
Latest Posts Twitter Ghost

Subscribe to zach.codes

Stay up to date! Get all the latest & greatest posts delivered straight to your inbox