in reply to Code for readablity or fewer lines?

I was a boss once, briefly.

The boss who said "you could do this in fewer lines" probably wants to say something but doesn't know what to say.

Of course you could do this in fewer lines. You could probably do it in one line and enter it in the Obfuscated Perl contest. So what?

I wouldn't worry about your boss's comment too much. It probably just means that he didn't see anything at all wrong with your code.

  • Comment on Re: Code for readablity or fewer lines?

Replies are listed 'Best First'.
Re: Re: Code for readablity or fewer lines?
by joee (Beadle) on Feb 28, 2001 at 00:25 UTC
    Laughing...
    Does your boss have pointy hair? nooo nevermind...
    I would have to agree with sierrathedog04 in the fact that the boss just had to say something authoritative to remind him/herself that they were still boss.

    Back to the matter on hand, Code for readability. This helps those following in your footprints and ensures that your code will be used in the future rather than being scrapped because the next person couldn't understand it. It also will prove it was your work when you use that job as a reference.

    puts the chalk down and walks away from the board, dusting off his hands