Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: @Override Date: Mon, 30 Jul 2012 14:42:15 +0200 Organization: Netfront http://www.netfront.net/ Lines: 40 Message-ID: References: <75036e8b-8b5f-4ea4-aef7-c063249f5707@googlegroups.com> <500dce9e$0$6901$e4fe514c@news2.news.xs4all.nl> <500f1018$0$6873$e4fe514c@news2.news.xs4all.nl> <501040e1$0$290$14726298@news.sunsite.dk> NNTP-Posting-Host: 77.176.227.104 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1343652130 80955 77.176.227.104 (30 Jul 2012 12:42:10 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Mon, 30 Jul 2012 12:42:10 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: csiph.com comp.lang.java.programmer:16610 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 ---