[FRIAM] Whitespace
Giles Bowkett
gilesb at gmail.com
Tue Sep 12 13:19:35 EDT 2006
For what it's worth, I'm of the opinion a project should have a
clearly articulated style guide which code must conform to before
being checked in.
I like the idea of automating it, but I'm tempted to think imposing
the mental discipline and cultural norm on the team might be a better
approach. That way you're not stuck back at square one if you need to
collaborate on a particular piece of code (I like pair programming for
some things).
On 9/11/06, Owen Densmore <owen at backspaces.net> wrote:
> Wow, I LOVE this! I know Ken from Sun days and he's one of those
> refreshing thinkers.
>
> We (our multimedia team at Sun) attempted a nifty stunt briefly for a
> large C++ project: At SCCS/CVS/SVN "check-in" run the code through a
> pretty printer using a common format. It also allowed folks to
> format in their own style, but the "official" version had a base format.
>
> BTW: This was one of my main concerns with python: it cannot be
> pretty-printed, at least at the block level. There is no "format"
> key in the IDEs. Shutter! Interestingly enough, btw, some folks
> feel that python *does* just what Ken suggests...it produces errors
> if you badly indent!!
>
> -- Owen
>
> Owen Densmore http://backspaces.net
>
>
> On Sep 11, 2006, at 10:16 AM, Robert Holmes wrote:
>
> > So which is "better" coding style, foo[ 0 ] + bar[ 0 ] or foo[0]+bar
> > [0]? Where exactly should your block delimiters go and should they
> > be indented? Here's a chap who suggests bypassing whitespace
> > debates by building the coding style into the language: if you
> > don't follow the style you generate a compiler error. Might seem
> > crazy, but I actually find it quite compelling, particularly for
> > projects where I'm collaborating on common code.
> >
> > http://www.artima.com/weblogs/viewpost.jsp?thread=74230
> >
> > Robert
> > ============================================================
> > FRIAM Applied Complexity Group listserv
> > Meets Fridays 9a-11:30 at cafe at St. John's College
> > lectures, archives, unsubscribe, maps at http://www.friam.org
>
>
> ============================================================
> FRIAM Applied Complexity Group listserv
> Meets Fridays 9a-11:30 at cafe at St. John's College
> lectures, archives, unsubscribe, maps at http://www.friam.org
>
--
Giles Bowkett
http://www.gilesgoatboy.org
More information about the Friam
mailing list