JavaScript
My Favorite Developer Podcasts
For the month of March, a number of podcasts that I listen to have been encouraging people to tell others about their favorite podcasts using the hashtag, #TryPod. I love listening to podcasts while driving or while I walk around the neighborhood or grocery stores. They’re interesting, educational, entertaining and many are created with high…
Read MoreMultiple Distributions with Jekyll, Pandoc & Markdown
Some time ago, I got the idea that I should write a book about something. I wasn’t quite sure of the topic but I thought it would be an interesting exercise. While contemplating that idea, I reasoned that, if I wrote a book, I would want to use some interesting technologies. I like using GitHub…
Read MoreAdding Support for ES2015 Number Methods to iOS 8
At Build.com, I’m working on an e-commerce app using React Native. React Native allows us to write apps in JavaScript that can run on iOS and Android phones with near native performance. The other day, we received several crash reports from users running iOS 8. All of the reports involved method calls on JavaScript’s global…
Read MoreHandling the “possible EventEmitter memory leak detected” Error in React Native
The project that I’m working on is an e-commerce app for an online retailer, Build.com, built using React Native. React Native is a JavaScript framework that allows you to build cross-platform mobile apps in JavaScript that have near-native performance. While we use Redux to handle the state of our app and its data, occasionally we…
Read MoreHandling a Null Response from an API
I’ve been working with React Native lately, which uses the Fetch API for asynchronously fetching data from web services. Recently, I came across a really strange error. Certain calls (in particular, calls to fetch data for new users) would cause an error, “Unexpected end of JSON”.
Read MoreSorting Arrays with JavaScript iterators
A lot of front-end web development involves displaying sorted lists on a page and maintaining the state and logic of the list. These sorted lists may be things like a list of products or an employee directory. Often, we will give the user the ability to re-sort the list or sort by a different key.…
Read MorePreparing Your Angular 1 Code For Angular 2 (Part 2)
This post is Part 2 of a series of blog posts where I’ll convert an Angular 1.x project to Angular 2. In Part 1, I upgraded the Angular client to use the latest guidelines in the John Papa Angular Style Guide. Node.js has improved by leaps and bounds since I first wrote the Phone Cat…
Read MorePreparing Your Angular 1 Code For Angular 2 (Part 1)
This post is Part 1 of a series of blog posts where I’ll convert an Angular 1.x project to Angular 2. Check out Part 2 to see how we update the NodeJS server to use ES2015 code. Angular.js has changed a lot over the past few years. As the framework has matured, not only have…
Read MoreHow To Set Up the Babel 6 Plugin in WebStorm
The latest version of Babel, the ES2015 transpiler, is out and there have been enough changes that I’ve decided to revise my original blog post, “How To Set Up the Babel Plugin in WebStorm”. At the time of writing, Babel is on version 6; my original post was written for Babel 5.
Read MoreUsing JavaScript and D3 to Graph a Value in a Range
A project came up recently where I needed to display a value on a range of values. You can imagine something like the display on an old thermostat: a range of values are displayed with a marker to indicate the current value. The prior solution involved an image of the range of numbers with an…
Read More