Re: [git pull] PCI pull request for 2.6.27

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Wednesday, July 16, 2008 - 5:38 pm

On Thu, 17 Jul 2008, Maciej W. Rozycki wrote:

I don't actually like that one very much either.

It's perfectly readable when looking at things closely, but it's not very 
nice when quickly "scanning" code visually. It looks like two separate 
indents.

Btw, that "code scanning" is not necessarily a bad idea. It's actually 
pretty interesting to print code out in a 2-point font (or just open a 
terminal and do "ctrl -" several times to make the code basically 
unreadable). See if the code flow makes sense from 10,000 feet - you can 
pick up overlong functions and various other dubious practices really 
clearly (#ifdef's in code etc).

(IOW, the whole point of the exercise is to _not_ be able to actually read 
the code, but just look at the _shape_ of it).

Btw, that commit also did things like change the coding style to a 
non-kernel coding style by changing

	static int function(xyz..)

to

	static int
	function(xyz..)

just to make lines shorter. Again - introducing bigger problems than it 
actually fixes.

				Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] PCI pull request for 2.6.27, Jesse Barnes, (Wed Jul 16, 4:39 pm)
Re: [git pull] PCI pull request for 2.6.27, Linus Torvalds, (Wed Jul 16, 4:50 pm)
Re: [git pull] PCI pull request for 2.6.27, Jesse Barnes, (Wed Jul 16, 4:54 pm)
Re: [git pull] PCI pull request for 2.6.27, Maciej W. Rozycki, (Wed Jul 16, 5:23 pm)
Re: [git pull] PCI pull request for 2.6.27, Linus Torvalds, (Wed Jul 16, 5:28 pm)
Re: [git pull] PCI pull request for 2.6.27, Linus Torvalds, (Wed Jul 16, 5:38 pm)