Joshua T. Go

JavaScript: Modular Code Through Namespaces

My preferred syntax for putting JavaScript code in namespaces, which makes it easy to stay organized while avoiding collisions.

Supermajority Requirements in American Legislatures

There's no reason we have to live with the requirements of 2/3 supermajorities, especially when they're so hard to achieve. There are other ways to build broader consensus without making things too difficult.

An Open Problem: The Gender-Neutral Pronoun

It's fine to say "them" instead of "he or she" when you want to refer to a single person in a gender-neutral way, but here's an additional suggestion if you're a purist and want to tell them apart in writing. The ultimate example of a first world problem.

The King and His Four Daughters

A great story I heard about thinking hard, doing things differently, and acting on insight.

JavaScript: Checking for Undeclared and Undefined Variables

The only way to reliably check for a missing variable in JavaScript. Everyone else is lying.

The Status Quo

Sometimes, it's all rotten and should be done away with. More often than not, things are the way they are for a reason.

Slowing Down as an Immersive Experience

Great ideas take time to soak into you and enrich your experience.

Ruby: Rescue Timeout Errors

Don't assume that begin-rescue-end blocks will catch everything by default.

Ruby: Convert ISO 8601 Timestamps From UTC to Your Timezone

Take a string in the format "2010-03-02T00:00:00Z," which represents a specific point in time in the UTC timezone, then parse it to its equivalent for your timezone.

The Trouble With Budget Surpluses

It would be more effective for governments to quote financial figures in per-person terms.

Where the Rubber Meets the Road

Every field and subfield of endeavor has its tedious parts.