in reply to References of Eternal Peril

I can't say I have any sympathy. The original code, while somewhat annoying to type, is terribly clear. I understand at a glance what it does. This funky loop buys what? A severe headache when I have to fix it, by my estimates.

If the typing is the problem, consider ( in vi ) yanking to end of line ( y$<ENTER> in command mode ) and pasting ( p ). I don't use emacs, but I will bet lots of money it can do something very similar. That is even faster than typing in the loop and retains clarity.

Probably over simplistic and not very monkish to shrink from the weird loop. But I like simplicity at times, and I think this is one of them.

mikfire

Replies are listed 'Best First'.
RE: RE: References of Eternal Peril
by mwp (Hermit) on Aug 11, 2000 at 12:01 UTC

    > This funky loop buys what? A severe headache when I have to fix it, by my estimates.

    • Use of the speedy binded columns feature in DBI
    • A quick & dirty solution for a poor speller/typist
    • A method that will hopefully never break to be fixed. Hah!

    > Probably over simplistic and not very monkish to shrink from the weird loop. But I like simplicity at times, and I think this is one of them.

    On the contrary, I think it is very "monkish" to go the simple route. I'm inclined to agree 100% in that understand-at-a-glance is best. But I became lazy, and you know what that means.

    > ...consider ( in vi ) yanking to end of line ( y$ in command mode ) and pasting ( p )...

    Hmm a little sarcasm there? Duly noted for future flamebait... mua! ;-)

    Thanks for your comments, mik.

    Alakaboo