Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Formatting variables

by perlfan (Vicar)
on Nov 30, 2020 at 18:59 UTC ( [id://11124411]=note: print w/replies, xml ) Need Help??


in reply to Formatting variables

I don't use "camelCase" because it looks too much like Java, regardless of it's name. I have found that the tendency for one to use camelCase often accurately indicates their less advanced relationship with idiomatic Perl. It's not 100% accurate, but accurate enough. An additional reason I don't arbitrarily capitalize letters in variable names is that this makes it meaningful when I do, so it's an additional degree of freedom for conveying information that you do not get when you just arbitrarily nameStuffLikeThis.

Replies are listed 'Best First'.
Re^2: Formatting variables
by Bod (Parson) on Nov 30, 2020 at 21:35 UTC

    This all makes a lot of sense. From various people's comments I shall be dropping camelCase from my Perl coding and returning to using snake_case :) I shall reserve the camelCase for Javascript and the little tiny bit of Java that I occasionally write.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found