Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #16764

Re: @Override

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail
From "Wanja Gayk" <wanja.gayk@1:261/38.remove-dpk-this>
Subject Re: @Override
Message-ID <50181D60.55732.calajapr@time.synchro.net> (permalink)
X-Comment-To Arne Vajhøj
Newsgroups comp.lang.java.programmer
X-FTN-AREA COMP.LANG.JAVA.PROGRAMMER
X-FTN-MSGID 1:261/38 1c2afe5e
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98]
Lines 52
Date Tue, 31 Jul 2012 18:02:31 GMT
NNTP-Posting-Host 69.21.70.65
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1343757751 69.21.70.65 (Tue, 31 Jul 2012 13:02:31 CDT)
NNTP-Posting-Date Tue, 31 Jul 2012 13:02:31 CDT
Organization tds.net
Xref csiph.com comp.lang.java.programmer:16764

Show key headers only | View raw


  To: Arne Vajhøj
From: "Wanja Gayk" <wanja.gayk@1:261/38.remove-rf4-this>

  To: Arne Vajhoj
From: Wanja Gayk <brixomatic@yahoo.com>

In article <501040e1$0$290$14726298@news.sunsite.dk>, arne@vajhoej.dk says...

> Many people prefer annotations over all those XML config files.
>
> But I am also in disagreement about it.
>
> A central XML config file is a cleaner solution than annotations
> spread out in a large number of classes.

It highly depends.

I like XML when it contains some data which is central for the application that 
needs to be configurable without building the product, but I'd rather prefer it 
written and read by the application itself, so you'd use it as a config file 
that is accessible through the application's configuration menu.

On the other hand there are loads of things, like for example database- 
mappings, where I prefer annotations, simply for the narrow scope - I dislike 
to have to keep several files in sync, as I'm just lika every human, doomed to 
forget it once in a while - and as Murphy said: in the worst possible moment.

And sometimes XML is just not funny at all: When I see hundreds of lines of 
Maven config XMLs, that contain several plugins and their configuration, quite 
frankly, it disturbs me like a god class.

Kind regards,
Wanja

--
"I'm going to put something to you here, and I think you'd better listen to 
this: If we race, if we two race, we could end up with nothing, so it's up to 
Eddie. If we don't race each other, we've got an opportunity to get first and 
second." [Damon Hill, Spa '98, being chased by Ralf lapping 5s faster than him]

-+- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net
-+-

-+- BBBS/Li6 v4.10 Dada-1
 + Origin: Prism bbs (1:261/38)
-+- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

Re: @Override "Wanja Gayk" <wanja.gayk@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000

csiph-web