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

Re^2: chaining method calls

by adrianh (Chancellor)
on Jun 12, 2003 at 09:59 UTC ( #265315=note: print w/replies, xml ) Need Help??


in reply to Re: chaining method calls
in thread chaining method calls

The argument that I hear the most is that chaining methods like this reduces typing. While that is true, I think it's a very bad reason for actually doing so. Using only globals and no strict is another way to save three characters per first use. Not checking open's return value is another way of typing less. It seems that length reduction and bad style often go together.

Using subroutines is a way to save characters. So are foreach loops. You can argue it both ways.

In many cases I'd agree with Paul Graham that Succinctness is Power.

I think this is going to be one of those issues that people can agree to disagree over. The idiom has always seemed very natural and clear to me.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://265315]
help
Chatterbox?
[Discipulus]: I expect a cut of 20% of emplyoment nexet year..
[choroba]: 20 months? :-o
[Discipulus]: up to 20 months.. but you'll be sure to remain unemployed

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2018-05-23 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?