[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Naming conventions?
From:       Michael Pyne <pynm0001 () unf ! edu>
Date:       2004-10-13 23:19:17
Message-ID: 200410131919.21849.pynm0001 () unf ! edu
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/alternative)]


On Wednesday 13 October 2004 03:39 pm, Jason Keirstead wrote:
> On October 13, 2004 11:38 am, Guillaume Laurent wrote:
> > Except that most of the times, even if you use tabs you still indent
> > with a combination of tabs and spaces.
> >
> From my experience the only times when that happens is when someone with
> their editor set to spaces edits a tab-indented file, or vice-versa.

What about stuff like (you'll need a fixed-width font for this demonstration):

Namespace::type ClassWithALongName::fooMethod(bool argument_1,
                                              int argument_2, etc...

    ^        ^         ^          ^

How are you going to indent the int so that it is (always, no matter what tab 
setting you use) directly under bool by using tabs alone?  Even if you are a 
tabs kind of programmer, this has to be done using spaces to look right.  
Unfortunately most editors aren't good enough to realize that some lines must 
be spaced out, even in tab mode, and so the code still looks bad for people 
with different tab settings.

Regards,
 - Michael Pyne
[Attachment #7 (text/html)]

<html><head><meta name="qrichtext" content="1" /></head><body \
style="font-size:10pt;font-family:Andale Mono"> <p><span \
style="font-family:Monospace">On Wednesday 13 October 2004 03:39 pm, Jason Keirstead \
wrote:</span></p> <p><span style="font-family:Monospace">&gt; On October 13, 2004 \
11:38 am, Guillaume Laurent wrote:</span></p> <p><span \
style="font-family:Monospace">&gt; &gt; Except that most of the times, even if you \
use tabs you still indent</span></p> <p><span style="font-family:Monospace">&gt; &gt; \
with a combination of tabs and spaces.</span></p> <p><span \
style="font-family:Monospace">&gt; &gt;</span></p> <p><span \
style="font-family:Monospace">&gt; From my experience the only times when that \
happens is when someone with</span></p> <p><span style="font-family:Monospace">&gt; \
their editor set to spaces edits a tab-indented file, or vice-versa.</span></p> \
<p></p> <p><span style="font-family:Monospace">What about stuff like (you'll need a \
fixed-width font for this demonstration):</span></p> <p></p>
<p><span style="font-family:Monospace">Namespace::type \
ClassWithALongName::fooMethod(bool argument_1,</span></p> <p><span \
style="font-family:Monospace">                                              int \
argument_2, etc...</span></p> <p></p>
<p><span style="font-family:Monospace">    ^        ^         ^          ^</span></p>
<p></p>
<p><span style="font-family:Monospace">How are you going to indent the int so that it \
is (always, no matter what tab setting you use) directly under bool by using tabs \
alone?  Even if you are a tabs kind of programmer, this has to be done using spaces \
to look right.  Unfortunately most editors aren't good enough to realize that some \
lines must be spaced out, even in tab mode, and so the code still looks bad for \
people with different tab settings.</span></p> <p></p>
<p><span style="font-family:Monospace">Regards,</span></p>
<p><span style="font-family:Monospace"> - Michael Pyne</span></p>
</body></html>


[Attachment #8 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic