Elastic tabstops
TK Soh
teekaysoh at yahoo.com
Sat Jul 15 16:43:18 CEST 2006
--- Tony Balinski <ajbj at free.fr> wrote:
> Quoting Thomas Orgis <thomas-forum at orgis.org>:
[snip]
> > if(something)
> > {
> > code
> > }
> >
> > (4 spaces) is not really different from
> >
> > if(something)
> > {
> > code
> > }
> >
> > (2 spaces) but it may appeal more to a programmer's taste.
> >
Personally, I prefer 4 spaces. It provide a better visual presentation of code
blocks, especially when I'm browsing through many lines relatively quickly, without
taking up to much screen area.
[snip]
> I have no issue with that, in fact, I like the idea. Just make sure
> anybody who touches your code afterwards uses the same discipline -
> that's where the problems arise! In my experience people aren't that
> disciplined and don't really care whether they're inserting tabs or
> spaces. In this case emulated tabs which insert ONLY spaces will keep
> the results bearably tidy... then again, you have to convince them to
> turn this on: when that happens you find the editor they use doesn't
> allow emulated tabs, or that it's not their problem, or that they're
> not aware of the problem etc. If you can't impose strict guidelines,
> you're stuck.
To be fair, sometimes it's just lack of education. I noticed in my profession that
most programmers (or those brought up to be one in a hurry) simply are not aware of
such thing called indentation.
[snip]
> > PS: When I talk to friends about this issue, there are some who are
> > really quite ignorant to all of this since they run a code beautifier /
> > automatic formatter over their stuff to get the style right and don't
> > bother while writing:-/
now that sounsd like lack of discipline to me ;-)
[snip]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Discuss
mailing list