in reply to IYO, what is elegant code?
I certainly am a fan of readable code, but there should also be as few comments as possible, just enough to fill in the odd question that might arise in a reader's head as they are following the flow. Extra comments are fine if one is writing code to teach, but in practice I don't think it helps to write code on the assumption that later readers will be newbies. To be clear about this, I consider comments different from documentation which should be at the start of a routine, explaining the input, output, and general algorithm. I may be pushing it here, but I sometimes feel like every comment in-line is a blight, moving the work further from elegant with each line.
--
I'd like to be able to assign to an luser
|
|---|