Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Perl Best Practices for naming variables

by creamygoodness (Curate)
on Aug 06, 2005 at 23:23 UTC ( #481569=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Best Practices for naming variables
in thread Perl Best Practices for naming variables

Well, I'm open to persuasion. For instance: another recommendation in the book is that you code in commented paragraphs, but limit those comments to a single line. Doing that will cause me some difficulty, as I occasionally write a paragraph that sacrifices some clarity for the sake of speed of execution, then compensate for the opacity of the code by overcommenting.

Damian suggests that if you require more than one line to summarize a paragraph of code, you probably need to refactor it. From here on out, I will be thinking about that every time I find it challenging to summarize within a single line. It's a stylistic constraint, but it has architectural ramifications. Thought-provoking stuff!

XOXO,

--
Marvin Humphrey
Rectangular Research
http://www.rectangular.com


Comment on Re^2: Perl Best Practices for naming variables
Re^3: Perl Best Practices for naming variables
by adrianh (Chancellor) on Aug 09, 2005 at 13:31 UTC
    Doing that will cause me some difficulty, as I occasionally write a paragraph that sacrifices some clarity for the sake of speed of execution, then compensate for the opacity of the code by overcommenting.

    Of course you did profile the simple clear solution first before creating a more complex and harder to maintain solution - didn't you ? :-)

        Do I pass? ;)

        With flying colours !

        It's just one of my pet hates when people think that a comment over an ugly and complicated piece of code is better than making the code simpler to understand - often using the excuse of efficiency with no real backup.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-12-21 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls