Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Opinions on Bold Method Names in 3.0 M3
Opinions on Bold Method Names in 3.0 M3 [message #91731] Wed, 03 September 2003 08:29 Go to next message
Eclipse UserFriend
Originally posted by: faust.acm.org

Has anybody turned on Bold style for Method Names
(Window->Prefs->Java->Editor->Syntax:Method Names/Bold checkbox)? I'm a fan
and I'd like this to be on by default. Opinions?


Randy
Re: Opinions on Bold Method Names in 3.0 M3 [message #91792 is a reply to message #91731] Wed, 03 September 2003 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Randy Faust <faust@acm.org> wrote:
> Has anybody turned on Bold style for Method Names
> (Window->Prefs->Java->Editor->Syntax:Method Names/Bold checkbox)?
> I'm a fan and I'd like this to be on by default. Opinions?

Bolding in syntax highlighting is a bad idea in general, in my view - I
turn it off everywhere immediately. The reason? It breaks the
non-proportionality of fonts.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Re: Opinions on Bold Method Names in 3.0 M3 [message #91807 is a reply to message #91792] Wed, 03 September 2003 10:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Adalbert.Homa.metavante.com

Jon Skeet wrote:

> Randy Faust <faust@acm.org> wrote:
> > Has anybody turned on Bold style for Method Names
> > (Window->Prefs->Java->Editor->Syntax:Method Names/Bold checkbox)?
> > I'm a fan and I'd like this to be on by default. Opinions?

> Bolding in syntax highlighting is a bad idea in general, in my view - I
> turn it off everywhere immediately. The reason? It breaks the
> non-proportionality of fonts.
Why ? I have it bold and it does not break the proportionality. What font
you have ?
Re: Opinions on Bold Method Names in 3.0 M3 [message #92063 is a reply to message #91731] Thu, 04 September 2003 03:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon+eclipse.tardell.se

"Randy Faust" <faust@acm.org> wrote in message
news:bj4mp9$b8l$1@eclipse.org...
> Has anybody turned on Bold style for Method Names
> (Window->Prefs->Java->Editor->Syntax:Method Names/Bold checkbox)? I'm a
fan
> and I'd like this to be on by default. Opinions?

IMHO syntax colouring method names is low priority -- it is immediately
obvious from context that a method name is a method name, it drags around a
pair of parenthesis. Syntax colouring is a rare goods in the sense that too
much of it will make your code look like a christmas tree (an American
christmas tree...;), so it seems wise to apply it when it really adds
something of value only.

It is more important to colour things that are not so obvious, e.g. the
scope of a variable or if a type is an interface, abstract or concrete class
(shameless plug: Vote 30154
https://bugs.eclipse.org/bugs/show_bug.cgi?id=30154 and 36789
https://bugs.eclipse.org/bugs/show_bug.cgi?id=36789!).

Now, since it is an option I can always switch it off if you turn it on by
default, but I vote to leave it off.

Simon

Simon Tardell, simon@tardell.se
Re: Opinions on Bold Method Names in 3.0 M3 [message #92276 is a reply to message #91807] Thu, 04 September 2003 10:03 Go to previous messageGo to next message
Eclipse UserFriend
AH <Adalbert.Homa@metavante.com> wrote:
> > Bolding in syntax highlighting is a bad idea in general, in my view - I
> > turn it off everywhere immediately. The reason? It breaks the
> > non-proportionality of fonts.

> Why ? I have it bold and it does not break the proportionality. What font
> you have ?

The default font for the Java editor under Windows. Bold letters are
naturally wider than plain fonts - so either the font ends up looking
cramped in bold, or the bold strings are wider than their plain
counterparts.

I've just tried it under Eclipse 2.1.1, and although in the preview
pane it doesn't break non-proportionality (it just looks cramped), when
you apply it to the actual editor, it does.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Re: Opinions on Bold Method Names in 3.0 M3 [message #92964 is a reply to message #92063] Fri, 05 September 2003 18:12 Go to previous message
Eclipse UserFriend
"Simon Tardell" <simon+eclipse@tardell.se> wrote in message
news:bj6puq$chj$1@eclipse.org...
> Syntax colouring is a rare goods in the sense that too
> much of it will make your code look like a christmas tree (an American
> christmas tree...;), so it seems wise to apply it when it really adds
> something of value only.

I spent over a year working daily with the Source Insight IDE, and it made
heavy use of systax decoration. It was capable of assigning patterns to
hierarchies of syntax elements. The end result was that every element in a
file had a different combination of color, size and font style (bold,
emphasis, etc.) The one thing that was stable was your choice of font. It
had sophisticated algorithms for emulating monofont spacing when using
proportional fonts, so your code always lined up as intended.

This sounds like the Christmas Tree mentioned above, and indeed it looked
like it. But two things made it an exceptional feature that I miss quite a
bit:

1) A single keystroke toggled all decoration on and off. The transition was
instantaneous, so I used the feature quite often. This helped when you
worked in a fairly busy file.

2) You quickly get used to certain decorators and color having important
meaning. I particularly paid attention to the scoping stuff -- specific
colours and font styles were assigned to global, module and local variables,
so it was obvious immediately if you were not referring to the right var.

3) Ok ... I said 2, but there is a third. Highly emphasized method names
provide an extra level of structure that really helps when scanning a file.
I know that the outline view handles this, but I always prefer scrolling the
actual code. Just a personal quirk.

One really kinky feature is that you could, in addition to bold or italic,
adjust the size of a token. I had method names showing in dark blue, bold
text at 110% normal size. I think the default was 120%. This worked out
really well and I'd love to be able to set this stuff up in Eclipse. Since
Eclipse is already so good at tracking the meaning of specific tokens, maybe
the feature could be made completely generic instead of just method names? I
guess that would require a lot of someone's time :-)

Anyway, I am a fan of powerful syntax hilighting.

> It is more important to colour things that are not so obvious, e.g. the
> scope of a variable or if a type is an interface, abstract or concrete
class
> (shameless plug: Vote 30154
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=30154 and 36789
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=36789!).

As mentioned above, this is exactly the area where most of the benefit was
realized in the Source Insight implementation. I personally feel that a
generic implementation is far more useful in the long run though ....
Previous Topic:Debugging org.eclipse.jdt.core.tests.model
Next Topic:Eclipse based product crashes (javaw.exe generated an error...)
Goto Forum:
  


Current Time: Tue May 06 19:19:05 EDT 2025

Powered by FUDForum. Page generated in 0.04559 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top