Meeting 17: Unterschied zwischen den Versionen

Aus Java Student User Group Austria - Java + JVM in Wien Österreich / Vienna Austria
Wechseln zu: Navigation, Suche
(AdsCEHuKkNSbCtzTJm)
(zajmQxBttAVOCCO)
Zeile 1: Zeile 1:
Howdy, i read your blog from time to time and i own a similar one and i was just cuoiurs if you get a lot of spam comments? If so how do you protect against it, any plugin or anything you can advise? I get so much lately it's driving me crazy so any support is very much appreciated.
+
Basically, XML is to store data but not to store business logic. Data is coelmptely irrelevant to the business logic. Say, the java code may disappear one day, but the data handled by the code will still be there. So, it doesn't make much sense to combine xml and java code to implement business logic.To be an extremist, I don't store the business logic in the database to define the way java objects work.It's true that xml files in spring is supposed to be configurations. However, xml files are actually more than configurations because they defines run-time interactions of java objects. (IMHO, a configuration file defines the initial settings for a program.)I might be wrong, but please save those F words because they don't help debate

Version vom 16. Dezember 2012, 06:40 Uhr

Basically, XML is to store data but not to store business logic. Data is coelmptely irrelevant to the business logic. Say, the java code may disappear one day, but the data handled by the code will still be there. So, it doesn't make much sense to combine xml and java code to implement business logic.To be an extremist, I don't store the business logic in the database to define the way java objects work.It's true that xml files in spring is supposed to be configurations. However, xml files are actually more than configurations because they defines run-time interactions of java objects. (IMHO, a configuration file defines the initial settings for a program.)I might be wrong, but please save those F words because they don't help debate