Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16764 > unrolled thread
| Started by | "Wanja Gayk" <wanja.gayk@1:261/38.remove-dpk-this> |
|---|---|
| First post | 2012-07-31 18:02 +0000 |
| Last post | 2012-07-31 18:02 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
Re: @Override "Wanja Gayk" <wanja.gayk@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000
| From | "Wanja Gayk" <wanja.gayk@1:261/38.remove-dpk-this> |
|---|---|
| Date | 2012-07-31 18:02 +0000 |
| Subject | Re: @Override |
| Message-ID | <50181D60.55732.calajapr@time.synchro.net> |
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 top | Article view | comp.lang.java.programmer
csiph-web