Jose: I'd argue that exceptions should truly be reserved for "holy cow, I don't have a clue how to handle this" types of situations. They should not be used for easy-to-handle problems like missing attributes or basic error checking. It's a judgment call, and there aren't any hard and fast rule... read more »

Heh, thanks for this. I fight this battle, primarily with OO-purists, enough that I end up coding up something like this about once each year. Now I can just point and say "Ben said so, and he's too nice to lie to you". Exceptions are expensive. They are supposed to be expensive, because they ... read more »

I think you're missing something crucial here, though. Not only are you paying for chicken (quality), but you are also paying for the service. Maybe not table service, but service nonetheless -- the implied service contract is that when you place an order you will only have a reasonable wait. If ... read more »

Why wouldn't you extend the Account class with a TransferAmountTo(Amount, TargetAccount) method? I'm having trouble rationalizing why a transfer (an action verb) would be an object, which are traditionally nouns. You wouldn't want to take that transfer, serialize it, and move it someplace else, no... read more »

The problem with cfset is that there are only 3 of the 4 components. You can think of it as either an implied verb or an implied noun: <cfset y=x> translates as: "cfset [stored] y from x" -- implied verb or "[cfset] set y from x" -- implied subject Admittedly, the second seems like a bit ... read more »

Well, let me stop and reiterate definitions for each of those grammatical terms. Subject: The focus of the sentence. Verb: The action of the sentence. Indirect Object: The thing upon which the subject and verb are acting. Direct Object: The recipient of the action performed on the Indirect ... read more »

So it looks like you're doing subject - indirect object - verb - direct object ? I tend more to subject - verb - indirect object - direct object when I code. But as long as you are consistent, that's cool. My personal pet-peeve is the lack of consistency between YES/NO and TRUE/FALSE for attri... read more »

You could also argue that, in many cases, doing any of this on the db server at all is now a moot point. If you use the Google Maps API correctly, you can have it send an AJAX request with the Lat/Lon bounding box. No math needed! I wrote up some proof-of-concept code for this a while back: htt... read more »

I second Brian's comment. As I was reading through the post I was thinking I'd have to find the same video. Pretty much all of the Crockford videos on Yahoo! are worth your time. Some of them get mind-bendingly complex, but they'll really open your eyes. Having said all of that, I'll also say th... read more »

That is a truly twisted and inspired way to get a random number. I'm a little bummed that you couldn't work QoQ into it, but then I know you need to protect the image of your sanity with the community. Gratz on your kilopost.... read more »

I am the co-founder and lead engineer at InVision App, Inc — the world's leading prototyping,
collaboration & workflow platform. I also rock out in JavaScript and ColdFusion 24x7 and I dream about
promise resolving asynchronously.