![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
1) It is better to seek forgiveness than to ask permission. (Don't check to see if you can do something before trying to do it, because the answer might change under you.)
2) Laziness is a virtue. (Delay calculating values until you actually need the values)
3) Adding another layer of indirection solves everything. (I don't really have a pithy explanation of this, it's just true.)
4) Just because something is impossible doesn't mean it can't happen.
Corollary: Impossible behavior is your runtime screaming at you to pay attention. Ignore or work around it at your peril.
Is this worth expanding on? Am I just being overly pretentious? Should I go into more detail about situations that gave rise to these?
2) Laziness is a virtue. (Delay calculating values until you actually need the values)
3) Adding another layer of indirection solves everything. (I don't really have a pithy explanation of this, it's just true.)
4) Just because something is impossible doesn't mean it can't happen.
Corollary: Impossible behavior is your runtime screaming at you to pay attention. Ignore or work around it at your peril.
Is this worth expanding on? Am I just being overly pretentious? Should I go into more detail about situations that gave rise to these?
no subject
Date: 2006-02-09 04:15 am (UTC)We have a homebrew search engine (don't ask) that fundamentally can't handle anything that can't be encoded as ISO-8859-1. So now that we've got web services and stuff where we use UTF-8 everywhere because, well, it's the only sane thing to do, the question came up: what should we do with search queries that can't be expressed as ISO-8859-1?
Me: "Let's just find the troublesome words and add them to the list of words we ignored."
Coworker: "I think that's a good idea in principle but I don't think it's worth the huge hairy regular expression you'd have to write to find ISO-8859-1-encodable words."
Me: "I hadn't even thought about that. I was just going to make a copy of the word, encode it as ISO-8859-1, decode it back, and see if we lost any data that was in the original."
Coworker: "Oh!"
no subject
Date: 2006-02-09 04:21 am (UTC)Oh, and great story :)
(ps: okay, I gotta ask: Homebrew search engine?)
no subject
Date: 2006-02-10 03:31 am (UTC)We'll replace it someday, but first we have to make sure our mission critical machines aren't going to die tomorrow....