A Simple Node App to Generate Random Addresses and Geocode Them – Making Web Requests

In part 2 of our series, we’ll look at a website that returns random, real-world addresses, and we’ll see how we can use npm packages to issue requests to this site.

Read MoreComment

A Simple Node App to Generate Random Addresses – Node CLI App Basics

Every app needs random data at some point, but what if that random data also needs to be real? That’s the challenge I ran into when generating test addresses for one of my clients. Since we wanted to plot these addresses on the map, they had to be real, physical places. Oh, and I needed…

Read MoreComment

Why I Chose Angular

Choosing a front-end framework is no small task these days. There are a lot of options out there, each with pros and cons. When I decided I wanted to move to a “next gen” framework, I surprised myself by going with a framework that I initially had a lot of negative feelings about: Angular. In…

Read MoreView 1 Comment

Adding Entity Framework Code-First Type Configs from a Namespace

A recent project I worked on needed to connect to two different SQL databases using Entity Framework (version 6, not that new EF Core hotness). Out of the box, EF can only bulk-load code-based mappings from an entire assembly, not from a single namespace within an assembly. That didn’t work on this project since all…

Read More

Simulate Slow Web API Requests Using an Action Filter in ASP.NET Web API

How much time do you spend on your SPA application’s “loading” screens? What about their “failed to load” screens? These things are important in a normal SPA, but they’re even more important in a mobile app built with PhoneGap or Cordova. Yet these important UX issues are easily overlooked as we build our applications. With…

Read More

Dealing with Horrid, No-Good, Very-Bad APIs Using JSON.NET

I already mentioned how I’m working on a big data integration project. Sadly, one of the systems involved exposes what I would describe as a “less-than-ideal” API. It’s buggy, poorly-documented… I could go on, but probably shouldn’t. 😃 But the big thing that got me was the lack of consistency. Not just across endpoints, but…

Read More

Working with Large JSON Blobs Sanely Using SQL Server

Have you ever wished that you could query a large JSON document? I wished that very thing recently while working with a 3rd party API. One particular API call was returning mountains of data, and I needed to get a list of distinct values of a particular property buried within the objects of this JSON…

Read More

A More Elegant Zombie Horde Using Array.from

In my last post, we used ES2015 generators to make a never-ending stream of zombies. A stream is great, but sometimes you need an array. My original approach for making an array of zombies wasn’t elegant, but comments on that post from Ege and Alan showed me a better way using another ES2015 feature. [more]…

Read More

Making a Zombie Horde in JavaScript Using ES6 Generators

Zombies are fun. ES2015 is fun. You know what’s even more fun? ES2015 and zombies together! In this post, I’ll show you how I used ES2015 generators to make an infinite zombie horde. [more] Getting Started This sample should work fine in NodeJS 8+. Go grab it if you don’t have it already! Let’s make…

Read More

Practical Promises in JavaScript – Using async-await

Welcome to the final entry of my Practical Promises series! Today, we’re going to learn about the new async and await keywords that are coming as part of ES2017. [more] If you are just joining us, here is what you missed: In part 1, we talked about what promises are and what they can be…

Read More