good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Code Maintainabilityby TGI (Parson) |
on Dec 04, 2008 at 18:56 UTC ( [id://728063]=note: print w/replies, xml ) | Need Help?? |
I like statement modifiers at the end for simple things like an early return, or throwing an exception. To handle longer lines I use indention:
But with the long exception you showed I might do:
I often hear that switching the order is difficult and that it is a good reason not to use the trailing conditional. In practice, I haven't found that switching the conditional around to be that onerous. A good text editor makes it easy. If switching was so hard you would see more of this:
In Section
Meditations
|
|