All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Härdeman" <david@hardeman.nu>
To: Andy Walls <awalls@md.metrocast.net>
Cc: Jarod Wilson <jarod@redhat.com>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	linux-media@vger.kernel.org
Subject: Re: [PATCH 1/5] rc-code: merge and rename ir-core
Date: Wed, 8 Sep 2010 23:12:17 +0200	[thread overview]
Message-ID: <20100908211217.GA13938@hardeman.nu> (raw)
In-Reply-To: <dciu6r836199wbxqd3ppo8xr.1283957431820@email.android.com>

On Wed, Sep 08, 2010 at 11:10:40AM -0400, Andy Walls wrote:
> Tag files and a decent editor are all one needs for full code 
> navigation.  The kernel makefile already has a tags target to make the 
> tags file.  

If you like to use tags, it won't be affected by many or few files so 
it's not an argument for either approach. 

> Smaller files make for better logical isolation of functions,limiting 
> visibilty/scope, 

Limiting visibility so that you'll have to add explicit declarations to 
ir-core-priv.h for inter-file function calls and functions that would 
otherwise be unnecessary (ir_raw_get_allowed_protocols() for example) 
doesn't sound like an advantage to me.

> and faster compilation of a file (but maybe at the expense of link 
> time).  

*sigh* compile times on my laptop:

rc-core.o		0.558s

ir-functions.o		0.321s
ir-sysfs.o		0.251s
ir-raw-event.o		0.397s
rc-map.o		0.265s

> That sort of isolation of functionality into smaller files also makes 
> the code more digestable for someone new looking at it, IMO. 

First of all, I personally find it much easier to grok a new subsystem 
if the relevant parts are gathered into one file, both when I'm new to a 
subsystem and when I'm used to it. drivers/input/input.c and 
drivers/input/evdev.c come to mind as good examples.

But more importantly, how about focusing on the people actually writing 
patches for ir-core rather than hypotetical people?

-- 
David Härdeman

  reply	other threads:[~2010-09-08 21:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08 15:10 [PATCH 1/5] rc-code: merge and rename ir-core Andy Walls
2010-09-08 21:12 ` David Härdeman [this message]
2010-09-09  8:20   ` Maxim Levitsky
  -- strict thread matches above, loose matches on Subject: below --
2010-09-07 21:51 [PATCH 0/5] rc-core: ir-core to rc-core conversion (v2) David Härdeman
2010-09-07 21:51 ` [PATCH 1/5] rc-code: merge and rename ir-core David Härdeman
2010-09-08 13:42   ` Mauro Carvalho Chehab
2010-09-08 14:10     ` Jarod Wilson
2010-09-08 21:42     ` David Härdeman
2010-09-09  4:44       ` Jarod Wilson
2010-09-02 20:29 [PATCH 0/5] rc-core: ir-core to rc-core conversion David Härdeman
2010-09-02 20:29 ` [PATCH 1/5] rc-code: merge and rename ir-core David Härdeman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100908211217.GA13938@hardeman.nu \
    --to=david@hardeman.nu \
    --cc=awalls@md.metrocast.net \
    --cc=jarod@redhat.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.