$self->bang({head => "wall"});

jest on 2003-08-05T15:45:43

So last night I sit down to do a big refactoring job on some code. It should be fairly straightforward; I'm not changing how anything is done, just some of the structure of the OO code to make it more like an MVC approach.

And for no reason I can think of, this one aspect of the display is not working. It's effectively identical to what was there before, and it works on the first run of this one program, but when the program is re-called, a radiogroup gets messed up. And I just can't figure out why it's happening. Worse, changing around things that should make absolutely no difference cause it to work.

I go to sleep late, having accomplished very little, and in the morning ask another coder to look at it. He can't figure it out either. Finally, for the hell of it, I change this one variable from

-values
to
-content
, and lo! it's working!

But I don't know why.

Oh, and happy birthday to me!


Congrats

Juerd on 2003-08-05T19:29:55

Congratulations with your nth birthday.

How did the radio thingies get 'messed up'? Wrong order? Ugly colours?

Re:Congrats

jest on 2003-08-06T09:13:02

Only one of the buttons appeared (there should have been two), and with no value. Perhaps this did have something to do with the fact that I was using -value myself ;-). But indeed, the appearance of the radiogroup in this way could not be predicted by some of the other changes.