denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
Denise ([staff profile] denise) wrote in [site community profile] dw_dev2009-07-07 11:26 am
Entry tags:

"i'll take 'things I did not know' for $1000, Alex"

[personal profile] afuna taught me something very useful today while I was having some trouble with something I was working on: in .bml pages, line numbering (for things like error messages, etc) start from the first line of <?code blocks, not from the first line of the file.

Everyone else probably knew that, but in case you didn't, now you do. :)
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2009-07-07 06:56 pm (UTC)(link)
Oh BML, how I love you.
kareila: "PERL!" (perl)

[personal profile] kareila 2009-07-07 08:49 pm (UTC)(link)
I didn't know that! But I usually ignore line numbers anyway.

My favorite quote about error line numbers is from this article:

Imagine you're running down the streets of Manhattan at supersonic speed. The sidewalk on 35th street has some cracks in it, so you trip. But you're going so fast that you land on 39th street and dirty the pavement with your blood and guts. Then a traffic safety officer comes over and says, "Hey! There's a problem with 39th street! Someone's soiled the sidewalk with their innards!"