[gst-devel] Re: [gst-cvs] alima gst-plugins-good: gst-plugins-good/ gst-plugins-good/ext/flac/ gst-plugins-good/gst/matroska/

David Schleef ds at schleef.org
Mon Feb 6 10:15:04 CET 2006


On Mon, Feb 06, 2006 at 02:24:38PM +0100, Benjamin Otte wrote:
> On Fri, 3 Feb 2006, David Schleef wrote:
> There seem to be quite some people that advocate such rules or even
> stricter ones. I remember the DBUS people requiring declarations being
> seperate from assignments in all their patches. I think they also require
> all declarations at the top of the function and not in other blocks )like
> if or while).
> 
> Is there a writeup of why this is good or not anywhere? I'd be interested
> in why it is worthwile to pose these restrictions  on developers.

IMO, it's so minor that is't not worth "restricting" others from
doing.  I happen to think that grouping code by functionality
(declarations/assignments/decisions) makes the code more readable,
and hope people reading think "hey, yeah, that's a good idea."  But
I think that "I can't be bothered" is an acceptable response, too.

I happen to really like the quality and consistency of style in
GStreamer right now.  It's not very often that I get hung up on
style issues when reading code.



dave...

-- 
David Schleef
Big Kitten LLC (http://www.bigkitten.com/) -- data acquisition on Linux




More information about the gstreamer-devel mailing list