Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Frivolous function names

by dragonchild (Archbishop)
on Dec 06, 2001 at 00:25 UTC ( #129735=note: print w/ replies, xml ) Need Help??


in reply to Frivolous function names

Firstly, I hope you wrote summon_foo() as a wrapper to get_foo() and create_foo(). :-)

Personally, I like using abcd and efgh as my scratchpad scripts. Of course, loving golf as much as I do, I almost always have a window open to abcd in some directory where I'm golf'ing. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.


Comment on Re: Frivolous function names
Replies are listed 'Best First'.
Re (tilly) 2: Frivolous function names
by tilly (Archbishop) on Dec 06, 2001 at 01:10 UTC
    Close. There is no create_foo. Just summon_foo. In my case there should not be duplicate things in existence, and hence it makes no sense to create unless you first try to get, and furthermore if I some day wanted to add locking logic, this would give me a clear place to do that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://129735]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2015-07-30 13:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls