Programming

Get Changed for that Interview!

Posted on

And by “Get Changed”, I mean: “Try to solve these coding challenges that relate to currency and change”. So, open your favorite editor and let’s get started! Part 1: Make Change First, let’s assume that we’ve defined our currency as follows: Coin Value Quarter 25 Dime 10 Nickel 5 Penny 1 Now, write a function […]

Programming

3 Tools that are worth Paying For

Posted on

Gliffy URL: https://www.gliffy.com/ Price: $3.99 / month for the Standard edition. (Paid annually) $7.99 / month for the Business edition. (Paid annually) What does it do? It allows you to draw flow charts and other types of diagrams. Why should I pay for it? Once you start using Gliffy, you’ll want to diagram everything. Unfortunately, […]

Programming

Are my unit tests taking too long?

Posted on

Earlier today, one of my friends asked me: What’s the longest running unit test you ever experienced? I quickly answered “72 hours”, but then realized that I should probably clarify that answer. True, jUnit was running for 72 hours at a time, but most of the tests that it was conducting were not unit tests. […]

Programming

How to Modify URL Query Parameters in Node.js

Posted on

In my previous post, I suggested that string concatenation is an unreliable way to modify URL queries. Let’s explore this idea a little further (or, just skip to the tl;dr if you just want the solution). First, let’s write a function that appends a URL query parameter via string concatenation:

Now, let’s throw some […]

Programming

How to (Nearly) Sidestep API Limits

Posted on

Let’s say that you’re trying to grab a lot of data from a 3rd-party API. In fact, you’re grabbing so much data that you hit the API’s hourly request limit in a mere 3 minutes. What can you do? Well, if the API is open to the public, then your options are: You can take […]

Programming

How to Image^2

Posted on

That’s right — this article is about using CSS to square your images. Wasn’t that obvious from the title? 😉 Most of the time, WordPress does a pretty good job at creating square thumbnails for your images. But, if your image’s width or height is smaller than the thumbnail, then WordPress won’t actually resize or […]

Programming

Babel 6 won’t work, and I hate everything!!!

Posted on

So, you just installed the latest version of Babel, and you transpiled your ES6 code into ES5. At least, that’s what you thought. But then, your code exploded at runtime, and your dog left the room disgust. What could have possibly gone wrong? Dismayed, you glanced at the transpiled output to see the following:

[…]