Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by theorbtwo (Prior)
on Jun 03, 2002 at 07:56 UTC ( #171162=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://171162]
help
Chatterbox?
[Corion]: Oh yay. The (external, not guided by me) programmers have chosen Moose+DBIx::Class for some implementation, and now seem to do 1+n SELECT statements for each row, as is usual when using ORMs.
[Corion]: So maybe I should investigate how to plug in a cache in front of DBIx::Class so I can do a ->selectall_hashre f and then satisfy the "sub"-selects from that cached single SELECT statement ...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-09-25 10:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (279 votes). Check out past polls.

    Notices?