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


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

Re: @Override

From "Wanja Gayk" <wanja.gayk@1:261/38.remove-rf4-this>
Subject Re: @Override
Message-ID <5016CF47.55645.calajapr@time.synchro.net> (permalink)
Newsgroups comp.lang.java.programmer
Date 2012-07-30 19:00 +0000
Organization tds.net

Show all headers | View raw


  To: Arne Vajhøj
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

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


Thread

Re: @Override "Wanja Gayk" <wanja.gayk@1:261/38.remove-rf4-this> - 2012-07-30 19:00 +0000

csiph-web