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

Re^3: Coding style

by Argel (Prior)
on Jul 13, 2010 at 20:42 UTC ( [id://849369]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Coding style
in thread Coding style

Unless it causes a [significant ] performance hit you should always go with the more readable version. It's depressing that you even had to ask a question with such an obvious answer!

Elda Taluta; Sarks Sark; Ark Arks

Replies are listed 'Best First'.
Re^4: Coding style
by nyamned (Sexton) on Jul 13, 2010 at 21:11 UTC
    Well, I was not sure about it - I'm new to Catalyst. First variant could be catalyst-way or something. So I decided to ask you guys.
      If you follow the thread you will see that I was specifically responding to this comment:
      But is it reasonable to add extra lines of "useless" code to such small subroutine, just to make it more readable?
      What does that question have to do with Catalyst? It's a pretty generic best practices type question, so I stand by my original comment.

      Regardless, what makes Catalyst so special anyway? Basic principles in writing maintainable code still apply.

      Elda Taluta; Sarks Sark; Ark Arks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found