http://www.perlmonks.org?node_id=171162


in reply to Re(3): Of variable {mice} and its name {man}.
in thread Of variable {mice} and its name {man}.

Refactor your names, too. Is it significant to the code that these are employees? If not, @names is a perfect name. @en is overshorting. @employee_names is overspecifing.

If it is significant to the code that these are empoyees you're naming, why? Does this mean that if you were dealing with customer names, the code would be completly inapproprate? Why?

Every character really does count. (Check how many different ways I've mistyped employee in this post, and how many you noticed being wrong.)


We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book

  • Comment on Re: Re(3): Of variable {mice} and its name {man}.

Replies are listed 'Best First'.
Re: Re: Re(3): Of variable {mice} and its name {man}.
by Dog and Pony (Priest) on Jun 03, 2002 at 09:51 UTC
    Check how many different ways I've mistyped employee in this post, and how many you noticed being wrong.
    Nothing that strict and warnings wouldn't handle.
    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.

      Right, but @names wouldn't have been mistyped in the first place. It's better to avoid errors then to fix them. (Given equvlent functionality.)


      We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book