Do you know where your variables are? | |
PerlMonks |
Whitespace and perl developersby redhotpenguin (Deacon) |
on Feb 15, 2008 at 18:06 UTC ( [id://668206]=perlquestion: print w/replies, xml ) | Need Help?? |
redhotpenguin has asked for the wisdom of the Perl Monks concerning the following question: Monks, One of the advantages I think Perl has over Pyt^W^W^W other comparable languages is that whitespace is insignificant. Perl takes away the thought barriers to creating code, allowing you to solve problems without the language getting in your way. Although whitespace is insignificant to perl itself, whitespace can be significant to Perl programmers. Take the following example:
vs.
vs.
What do you do if you have engineers on a project who each prefer a different style? My solution has been to just go with the flow and not change anything, so that development time is spent writing code, and not on whitespace semantics. But I know that isn't always the case, some developers can have strong opinions. What approaches have you found work well here? UPDATE - just got downmodded 1, I guess some people do have strong opinions! :) UPDATE - we are using all sorts of code control mechanisms, including perltidy, this is more of a question regarding how do you handle differing opinions the issues that aren't caught by the code control mechanisms.
Back to
Seekers of Perl Wisdom
|
|