All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ppc4xx: Read pipeline depth set to 4 for	PPC440SP/SPE, PPC405EX, PPC460EX/GT/SX processors
Date: Wed, 13 Aug 2008 13:44:15 -0500	[thread overview]
Message-ID: <48A32B7F.20106@freescale.com> (raw)
In-Reply-To: <20080813183108.9B4F3248AC@gemini.denx.de>

Wolfgang Denk wrote:
> In message <20080813171332.GC24225@ld0162-tx32.am.freescale.net> you wrote:
>>> But then, you are changing good TAB chanracters that  were  used  for
>>> vertical  alignment  into spaces. This is incorrect - please read the
>>> Coding Style requirements.
>> Where?  I see no mention of alignment in the coding style documentation.
> 
> See http://www.denx.de/wiki/U-Boot/CodingStyle, bullet 4.2:
> 
> 	Use TAB characters for indentation and vertical alignment, not
> 	spaces

OK, I was looking at the Coding Standards section of the README.

>> I know it's common practice, but could someone please explain *why* TABs
>> are mandated for alignment?  It makes sense for indentation, as it allows
>> adjusting the tab size[1], requires fewer keystrokes to change
>> indentation level, and conveys meaning with respect to the structure of
>> the code.
> 
> The very same reasons apply for vertical alignment.

They do not.  It specifically *disallows* changing the tab size, and has 
no correlation to code structure.

>> The only thing that using TABs for vertical alignment gets you is some
>> slight compression of the source code when not compressed by other means,
>> an annoying 1/8 chance of the column shifting by 8 characters when the
>> code to the left is changed, the removal of flexibility with respect to
> 
> That's 8 times better than the 100% chance that it will shift when
> using spaces for alignment.

I disagree.  It's much easier to edit when I know how many spaces I'll 
have to add/remove beforehand.

-Scott

  reply	other threads:[~2008-08-13 18:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-13  4:43 [U-Boot] [PATCH] ppc4xx: Read pipeline depth set to 4 for PPC440SP/SPE, PPC405EX, PPC460EX/GT/SX processors fkan at amcc.com
2008-08-13  5:37 ` Wolfgang Denk
2008-08-13  6:26   ` Stefan Roese
2008-08-13  6:44     ` Wolfgang Denk
2008-08-13 13:59     ` Prodyut Hazarika
2008-08-13 14:24       ` Stefan Roese
2008-08-13 17:13   ` Scott Wood
2008-08-13 18:31     ` Wolfgang Denk
2008-08-13 18:44       ` Scott Wood [this message]
2008-08-13 19:04   ` prodyut hazarika
2008-08-13 19:16     ` Prodyut Hazarika
2008-08-13 20:08       ` Wolfgang Denk
2008-08-13 20:19         ` Prodyut Hazarika
2008-08-13 20:56           ` Wolfgang Denk
2008-08-13 20:01     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2008-08-13 18:10 fkan at amcc.com
2008-08-13 20:10 ` Wolfgang Denk

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=48A32B7F.20106@freescale.com \
    --to=scottwood@freescale.com \
    --cc=u-boot@lists.denx.de \
    /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.