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