Grouping code by indentation - feature or ******?

Antoon Pardon apardon at forel.vub.ac.be
Tue Mar 29 02:34:00 EST 2005


Op 2005-03-25, Diez B. Roggisch schreef <deetsNOSPAM at web.de>:
>> Normally one is the project leader. He decides.
>
> Whishful thinking.
>
> Another problem I have with code that is _not_ layouted the way I'm used to
> it is that the perception of what very code does gets more difficult to me.
> You seem to have the same troubles, I take that from your desire to reflect
> algorithmic structure different from syntactic. And I guess most people
> havo, otherwise the whose layout-thing wouldn't stir up so bad feelings all
> the time.

What I or you prefer carries very little weight. I know layout-things
stir up a lot of bad feeling, but I honostly think those people should
grow up. When I cooperate in a project, I adapt my style to the one
used in the project. I may use a tool to change between styles for
things I work on an back when I register my piece or I may just write
in the project style, depending on what goes easiest.

> And as not all code I read is code I'm supposed to write (might it be OSS
> that I dig into for debugging, or other 3rd party sources I can't control,
> e.g. different departments with different project leaders) I found that
> python's way of imposing a rather strict layout on _all_ coders out there
> means I've less trouble digging into other peoples code. Which is useful -
> and it seems that I'm not the only one with this feeling.

Well you can't control the languages used either. Personnaly I find
difference in style a very minor issue compared to difference of
language or difference of development environment. If you so
much need the strict layout python imposes, I start to question
whether you are flexible enough for programming.

-- 
Antoon Pardon



More information about the Python-list mailing list