in reply to Re: Improve readability of Perl code. Naming reference variables.
in thread Improve readability of Perl code. Naming reference variables.

Camel case makes my skin crawl. Hate it. Give me underscores or give me death.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re^2: Improve readability of Perl code. Naming reference variables.

Replies are listed 'Best First'.
Re^3: Improve readability of Perl code. Naming reference variables.
by johngg (Canon) on Feb 09, 2017 at 00:33 UTC

    I guess it's all a bit subjective. I don't dislike underscores and can happily use them if mandated but camelCase keeps long descriptive variable names shorter which is why I prefer it.

    Cheers,

    JohnGG

      It's totally subjective. Whether warranted or not, camel case reminds me of Microsoft code. Underscores remind me of old school programming. I also think camel case is harder to read. Though camel case does take fewer keystrokes to execute. I'll give you that.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks

        Though camel case does take fewer keystrokes to execute. I'll give you that.

        Only if your keyboard doesn't have a Useless Key™ which you've remapped to be a single-keystroke underscore. :-)