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

Re: CamelCase really that bad?

by Anonymous Monk
on Aug 23, 2016 at 01:11 UTC ( #1170201=note: print w/replies, xml ) Need Help??


in reply to CamelCase really that bad?

What do you mean by CamelCase, can you be more specific?

camelCase is terrible for package names

CamelCase is terrible for method names

camelCase is fine for method names, its the standard camel case

CamelCase is fine for package/module names, its the standard

...

See what I mean?

Replies are listed 'Best First'.
Re^2: CamelCase really that bad?
by gzartman (Novice) on Aug 23, 2016 at 01:37 UTC
    I'm using:

    Package name = CamelCase
    Method name = camelCase
    Var name = camelCase (prefer single word if possible)

    Sounds like I'm fine.
Re^2: CamelCase really that bad?
by zwon (Abbot) on Aug 23, 2016 at 21:06 UTC
    I think "the standard" is a bit too strong of a statement. Package names are supposed to be capitalized, so yes CamelCase is something generally expected, but as for method names I don't see how camelCase is better than CamelCase, both are used, although snake_case is something I see much more often in Perl code.

      I think "the standard" is a bit too strong of a statement.

      You're over thinking it :)

      Package names are supposed to be capitalized, so yes CamelCase is something generally expected,

      Also know as the standard convention

      but as for method names I don't see how camelCase is better than CamelCase, both are used, although snake_case is something I see much more often in Perl code.

      Do more research :)

      You see one used more than the other, so one is the standard camelCase

      https://en.wikipedia.org/wiki/Naming_convention_%28programming%29

        You see one used more than the other, so one is the standard camelCase

        After spending a lot of time on research (maybe even 5 minutes), I couldn't actually remember/find a single module that uses any camel case. So I guess the standard is not to use it ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2021-10-17 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (71 votes). Check out past polls.

    Notices?