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
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
I couldn't find a simple script for monitoring memcached's efficiency, so I started this project.
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, 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. . .
https://thunderboltlabs.com/blog/2013/11/19/efficiency-with-sublime-text-and-ruby/ An excellent set of core ST tips. I learned a couple really handy things even though I've been using Sublime Text for over a year.
This is in response to Why Meteor will kill Ruby on Rails. A pretty big claim, for sure. Now, Meteor is worth checking out, but Josh didn’t name any of the reasons why I and a whole lot of others choose Rails. So here we go. It was its built-in support for these got me interested: CRUD (Create / … Continue reading Meteor Won’t Kill Rails Anytime Soon
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