Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse "too helpful"
Eclipse "too helpful" [message #224659] Fri, 24 February 2006 10:49 Go to next message
Anders Biehl Norgaard is currently offline Anders Biehl NorgaardFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

http://blogs.zdnet.com/Burnette/?p=16

I agree completely with the post, an IDE should support good/best practices
but it should also to some degree enforce them. It should not support
harmful practices.

I think this is the first time I see something I don't approve of in
Eclipse.

Does anyone know if a bug has been file to ask for the removal of this
feature? (I didn't find one in a quick search for "remove braces" or "if
block statement")

Thanks
Anders
Re: Eclipse "too helpful" [message #224678 is a reply to message #224659] Fri, 24 February 2006 09:40 Go to previous messageGo to next message
Johnnie Hougaard Nielsen is currently offline Johnnie Hougaard NielsenFriend
Messages: 20
Registered: July 2009
Junior Member
Anders Norgaard wrote:
> http://blogs.zdnet.com/Burnette/?p=16
>
> I agree completely with the post, an IDE should support good/best practices
> but it should also to some degree enforce them. It should not support
> harmful practices.

Well, any type of code style change is going to be seen as harmful by
someone with a different belief system. As long as the brief style takes
deliberate action, I do not see much of a problem.

IMO, one reason to insist on always having braces is the eye-scan alien
standard of having the start brace at the end of the line preceding the
block.

Allowing a programmer to switch code style with less work is IMO *much*
less harmful than, say, code reformatting blasting efforts to make code
easy to read.
Re: Eclipse "too helpful" [message #224730 is a reply to message #224659] Fri, 24 February 2006 22:40 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Anders Norgaard wrote:
> Hi,
>
> http://blogs.zdnet.com/Burnette/?p=16
>
> I agree completely with the post, an IDE should support good/best practices
> but it should also to some degree enforce them. It should not support
> harmful practices.
>
> I think this is the first time I see something I don't approve of in
> Eclipse.
>
> Does anyone know if a bug has been file to ask for the removal of this
> feature? (I didn't find one in a quick search for "remove braces" or "if
> block statement")
>

With all due respect, extraneous braces are just that, extraneous. For many who choose to
consistently put the leading brace on a new line and maintain good indentation policies,
those braces are really superfluous. They don't make the code more full-proof in any way.

I'm in favor of this feature. Please keep it there. If you don't want it, don't use it. You
have every right to consider it's use bad practice. Just don't go around thinking that
everyone else share that opinion.

Kind Regards,
Thomas Hallgren
Re: Eclipse "too helpful" [message #224754 is a reply to message #224659] Fri, 24 February 2006 23:34 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Anders Norgaard" <anders.norgaard@gmail.com> wrote in message
news:dtmh9s$fpm$1@utils.eclipse.org...
> Hi,
>
> http://blogs.zdnet.com/Burnette/?p=16
>
> I agree completely with the post, an IDE should support good/best
> practices
> but it should also to some degree enforce them. It should not support
> harmful practices.
>
> I think this is the first time I see something I don't approve of in
> Eclipse.
>
> Does anyone know if a bug has been file to ask for the removal of this
> feature? (I didn't find one in a quick search for "remove braces" or "if
> block statement")


If there is any constant star in the night sky of software development, it
is developers' ongoing arguments about braces and whitespace. I vaguely
remember arguing about blank-comment punch cards in the 1970s.

The argument could be easily solved, of course, if everyone would simply see
reason and adopt my own, obviously correct, point of view ;-)

Barring that solution, though, if we wish to make the Eclipse IDE enforce
good programming practices, there are probably more fruitful areas to begin.
For instance, how about making the new-project wizards automatically set up
version control?
Previous Topic:jdt apt for eclipse 3.2M4
Next Topic:Java class added through fs is seen, and compilable, but not seen by debugger
Goto Forum:
  


Current Time: Fri Apr 26 07:22:50 GMT 2024

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

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

Back to the top