Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: CamelCase really that bad?

by zwon (Abbot)
on Aug 23, 2016 at 21:06 UTC ( #1170256=note: print w/replies, xml ) Need Help??


in reply to Re: CamelCase really that bad?
in thread CamelCase really that bad?

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.

Replies are listed 'Best First'.
Re^3: CamelCase really that bad?
by Anonymous Monk on Aug 23, 2016 at 22:05 UTC

    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 ;)

        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 ;)

        Follow the link provided and you can see a small sample

        Also look at the list of core modules, FileHandle, FindBin, I18N::LangTags, Tie::Array, its all the SameCamel

          A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2020-05-26 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?