Posts by Garrett McCullough
Turn a Callback Function into a Promise in Objective-C and Java
I have been working on a React Native wrapper library for the Zendesk Support SDK. The SDK uses functions that accept a callback to upload a file. I wanted to upload an array of files and when all of the files were open, I wanted to call another function to create the Zendesk ticket. I…
Read MoreOrganizing a Mountain Town Meetup – Finding Speakers – Part 7
Background This post is part of our 7-part series on Organizing a Mountain Town Meetup. Here are the previous posts: Part 1 – Introduction please read this for the background you’ll need to fully enjoy this post. Part 2 – Meetup Basics Part 3 – Getting the Word Out Part 4 – At the Event Part 5…
Read MoreOrganizing a Mountain Town Meetup – Growing Pains – Part 6
Background This post is part of our series on Organizing a Mountain Town Meetup. Here are the other posts in the series: Part 1 – Introduction please read this for the background you’ll need to fully enjoy this post. Part 2 – Meetup Basics Part 3 – Getting the Word Out Part 4 – At the Event…
Read MorePatching npm Modules
Sometimes it is helpful to patch an npm module. It could be the case that you need to make a simple fix and you don’t want to maintain a fork of the library. The library may have a pull request to fix the issue but you don’t want to use an unmerged branch. For those…
Read MoreFetching a File in NodeJS with Request and Parsing It with Readline
Recently, I was working on a project where I needed to fetch a file from the internet and parse it line by line. NodeJS has the readline module that can be used to split a data stream into lines and perform a function on each line, which was perfect for my needs. The problem is…
Read MoreAutomatically Creating Github Issues Using Webtask.io
I am the co-organizer of the BeerJS meetings for TahoeJS. BeerJS is a casual meetup for JavaScript developers that has chapters all over the world. Our meetup is largely organized using a Github repo. As co-organizer, one of my monthly tasks is to create a Github issue for the upcoming meeting. The issue announces the…
Read MorePros and Cons of Using Medium as a Blogging Platform
I published my first blog post on Medium. It is called, Updating Your React Native App. It’s been interesting comparing and contrasting the experience of writing on Medium vs. writing on my own WordPress blog at McCullough Web Services. Here’s what I liked about writing on Medium:
Read MoreBreaking Change with setState in React 16 Alpha Affecting React Native 43+
Recently, I upgraded the React Native app at Build.com to version 45.1. While testing the app, we discovered an undocumented change to the way that setState works. This change will affect React Native version 43+ and is due to a change in the React 16 alpha library. In this post, I’ll describe this breaking change…
Read MoreReact Native 45 Errors in Jest
At Build.com, a co-worker and I are in the process of updating our app to the most recent version of React Native, 0.45.1. We’re currently working to fix up our tests in Jest and I thought I’d share with you some issues that we’ve discovered.
Read MoreCreating Your First npm Package
Creating Your First npm Package Lately, I’ve been pushing myself to contribute more to open source. I started by contributing to existing projects: small features and writing documentation. I even wrote a blog post about it. This past week, I was finally able to make the jump from contributing to a project to authoring one.…
Read More