🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.advocacy
Article #80

Re: Which one for Newbie (Java - Eclipse or JBuilder)

#80
From: Dale King
Date: Wed, 24 Jul 2002 15:34
55 lines
3904 bytes
"Ryan Breidenbach" <ryan_breidenbach@hotmail.com> wrote in message
news:55e900c9.0207231412.2ca51206@posting.google.com...
> > Believe it or not, there are some people who use proportional-width
fonts
> > for development, and spacing screws that all up. Hardly any of the
indents
> > match up.
> >
> > With tabs, they do.
>
> I don't see how things in a proportional-width font would be any
> different with tabs or spaces. Don't tabs just insert a configured
> number of spaces?
>
> As Dale has already mentioned, spaces are interpretted consistently
> everywhere. The same cannot be said for tabs. With that being true
> (and it IS), I can't see why you would want to use tabs.
>
> Personally, I indent my code 2 spaces, so I have my editor set to

2 spaces is too little for most people. I believe that there are studies
showing the optimum is liket 3 to 6. I use 4, but unfortunately work on a
project with people that use 3 and it is not fun when you have to change
their code.

> insert at most two spaces when I press the tab key. Sun, on the other
> hand, indents their code four spaces. Sun ALSO uses tabs in their
> code, and their tabbing is set to eight spaces. I don't mind that
> their indenting scheme differs from mine (2 vs 4 spaces) - that's
> their choice. BUT, it bugs the crap out of me that since I have my
> editor set to interpret tabs as two spaces, it shows up like this: (^^
> represents spaces as tabs)
>
>     public ArrayList() {
> ^^this(10);
>     }
>
> Obviously, this is not how they indented their code to show up.
> However, if they always used spaces, never tabs, their code would show
> up EVERYWHERE as indented correctly with no extra configuring as so:
>
>     public ArrayList() {
>         this(10);
>     }
>
> In order for me to see THEIR code properly, I have to go muck with MY
> configurations. This is why I say you should never use tabs.


Actually, if Sun only used tabs or only used spaces then the code would at
least be indented logically for any tab setting. Their mixture of tabs and
spaces is much worse. Then it only indents correctly at 8 character tabs and
a non-proportional font. The indenting is much worse with 4 character tabs.
--
  Dale King
Technical Details
Message-ID: <3d3ece2d@news.tce.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!newsfeed.cwix.com!pullfeed!news.tce.com!157.254.41.108
References: <7emX8.89256$p85.2379351@twister.austin.rr.com> <3D32F842.EC524346@geocities.com> <ImDY8.123314$q53.2997975@twister.austin.rr.com> <3D3399A2.60FE1538@geocities.com> <8mWY8.114665$eF5.3184024@twister.austin.rr.com> <ah1k6f$6v2$1@helle.btinternet.com> <55e900c9.0207161408.fb4c3b3@posting.google.com> <rs5bjuok6d7urbm0kl3pti3q18mknvsaur@4ax.com> <3d3c4db4@news.tce.com> <fJY_8.160787$eF5.4247098@twister.austin.rr.com> <3d3c79d7@news.tce.com> <Ns%_8.161160$eF5.4268956@twister.austin.rr.com> <55e900c9.0207231412.2ca51206@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fdb77,9881175998020bf0
X-Google-Attributes: gidfdb77,public
X-Google-Thread: 10a146,9881175998020bf0
X-Google-Attributes: gid10a146,public
X-Google-Thread: 10cf9d,9881175998020bf0
X-Google-Attributes: gid10cf9d,public
X-Google-ArrivalTime: 2002-07-24 08:34:50 PST
From: "Dale King" <KingD@TCE.com>
Newsgroups: comp.lang.java.advocacy,comp.lang.java.programmer,borland.public.jbuilder.non-technical
References: <7emX8.89256$p85.2379351@twister.austin.rr.com> <3D32F842.EC524346@geocities.com> <ImDY8.123314$q53.2997975@twister.austin.rr.com> <3D3399A2.60FE1538@geocities.com> <8mWY8.114665$eF5.3184024@twister.austin.rr.com> <ah1k6f$6v2$1@helle.btinternet.com> <55e900c9.0207161408.fb4c3b3@posting.google.com> <rs5bjuok6d7urbm0kl3pti3q18mknvsaur@4ax.com> <3d3c4db4@news.tce.com> <fJY_8.160787$eF5.4247098@twister.austin.rr.com> <3d3c79d7@news.tce.com> <Ns%_8.161160$eF5.4268956@twister.austin.rr.com> <55e900c9.0207231412.2ca51206@posting.google.com>
Subject: Re: Which one for Newbie (Java - Eclipse or JBuilder)
Date: Wed, 24 Jul 2002 10:34:33 -0500
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 157.254.41.108
Message-ID: <3d3ece2d@news.tce.com>
X-Trace: 24 Jul 2002 10:56:29 -0600, 157.254.41.108
Organization: Thomson Consumer Electronics
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!newsfeed.cwix.com!pullfeed!news.tce.com!157.254.41.108