Apr. 2nd, 2007

jducoeur: (Default)
So here I am, spending half an hour trying to figure out why my attempt to get the "RemainingDuration" field out of this data structure is failing. It's Javascript, so I don't have strong typing to fall back on -- everything has to be exact. Which is why it takes half an hour to discover that the field is actually named "RemaingDuration".

And the hell of it is, I know exactly what happened. Someone had a typo in the field name when they created it, and didn't even notice. And ever since then, everyone has simply been using code-completion in the IDE to fill in the field name on the server side, so nobody ever noticed that it's been misspelled all this time. That is, until I try to actually use the generated version of the structure on the client side, which doesn't have the lovely code-completion crutch to kindly misspell the word for me.

The Law of Unintended Consequences applies as much in programming as in everything else. And no feature, no matter how cool, is without its tarnished lining...
jducoeur: (Default)
So here I am, spending half an hour trying to figure out why my attempt to get the "RemainingDuration" field out of this data structure is failing. It's Javascript, so I don't have strong typing to fall back on -- everything has to be exact. Which is why it takes half an hour to discover that the field is actually named "RemaingDuration".

And the hell of it is, I know exactly what happened. Someone had a typo in the field name when they created it, and didn't even notice. And ever since then, everyone has simply been using code-completion in the IDE to fill in the field name on the server side, so nobody ever noticed that it's been misspelled all this time. That is, until I try to actually use the generated version of the structure on the client side, which doesn't have the lovely code-completion crutch to kindly misspell the word for me.

The Law of Unintended Consequences applies as much in programming as in everything else. And no feature, no matter how cool, is without its tarnished lining...

Profile

jducoeur: (Default)
jducoeur

June 2025

S M T W T F S
12 34567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags