Linode vs. DigitalOcean: back to Linode for me

DigitalOcean doesn't give their first-line support people the necessary tools to diagnose their own system problems. And so a two-day outage becomes possible. The night before Christmas, I was scrambling to get my site back up On the afternoon of the 24th, my New Relic monitor told me that weblaws.org (now public.law) was offline. Ugh. … Continue reading Linode vs. DigitalOcean: back to Linode for me

What’s not a violation of the Law of Demeter

The Law of Demeter: "Use only one dot", or "an object should avoid invoking methods of a member object returned by another method." But when would this not be a violation? Buried within a C2.com wiki page is this excellent exchange: Trying to come up with a more simple (non-foobar) example, is this correct? currentPerson.Account.Deposit(500) … Continue reading What’s not a violation of the Law of Demeter

Yes, Rails does support case-insensitive queries

They're unfortunately just a little buried and a little undocumented. And so conventional wisdom is that Rails doesn't do case-insensitive finds. But in fact it does: Example 1: Find all the statutes whose name begins with texas, case-insensitively: Example 2: Same query, using the excellent Squeel gem which makes this a little nicer: Results: Both examples generate … Continue reading Yes, Rails does support case-insensitive queries

It is supremely important that we ensure our data is safe. . .

. . . it is supremely important that we ensure our data is safe, consistent and reliable. We can dramatically increase these factors by taking full advantage of the tools at hand. Yes. This is the most critical, important task in software development. A great set of posts, Coding Rails with Data Integrity by Jay … Continue reading It is supremely important that we ensure our data is safe. . .

Confessions of an Architecture Astronaut — Taking a Lesson from Napster

Twelve Years Later, Joel Spolsky’s early posts are still relevant. Browse through his posts circa 2001 and you'll find a ton that are still amazingly relevant (and not just the Joel Test): Your typical architecture astronaut will take a fact like "Napster is a peer-to-peer service for downloading music" and ignore everything but the architecture, … Continue reading Confessions of an Architecture Astronaut — Taking a Lesson from Napster