Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^3: coding rules

by QM (Parson)
on Jun 09, 2005 at 04:41 UTC ( [id://464953]=note: print w/replies, xml ) Need Help??

in reply to Re^2: coding rules
in thread coding rules

Re. using camelCase for subs, it is for the very reason stated above -- "different things should look different." That way subRoutines() look different $from_variables.
But they already look different! Tell me what each of these are:
foobar() $foobar @foobar %foobar
To distinguish them more, I would probably have the subs named with some kind of action, like process_rows(\@rows) (as opposed to rows(\@rows), which is begging for trouble).

But then I really hate camelCase. I'd prefer camel_case, Camel_Case, and CamelCase before camelCase.

Quantum Mechanics: The dreams stuff is made of

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-06-12 20:57 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.