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:
# print out 4 print 2+2;
vs.
# print out 4 print 2+2;
vs.
# print out 4 print 2 + 2;
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Whitespace and perl developers
by olus (Curate) on Feb 15, 2008 at 19:03 UTC | |
|
Re: Whitespace and perl developers
by Joost (Canon) on Feb 15, 2008 at 19:32 UTC | |
|
Re: Whitespace and perl developers
by Akoya (Scribe) on Feb 15, 2008 at 18:56 UTC | |
by redhotpenguin (Deacon) on Feb 15, 2008 at 19:21 UTC | |
|
Re: Whitespace and perl developers
by j1n3l0 (Friar) on Feb 15, 2008 at 19:09 UTC | |
|
Re: Whitespace and perl developers
by pc88mxer (Vicar) on Feb 15, 2008 at 23:16 UTC | |
|
Re: Whitespace and perl developers
by Erez (Priest) on Feb 15, 2008 at 20:38 UTC |