PDA

View Full Version : Not recommended by Spring developers


Anonymous
02-01-2005, 07:30 AM
After looking at the documentation I've noticed a few places where the documentation says... "spring.net allows you to do this: blah blah blah... " but we don't recommend you do it. Do this instead: blah blah blah."

Case in point:

Note that the Spring.NET developers recommend that you use the explicit form of the event wiring syntax (i.e. not the regular expression style), since it makes your object definitions self documenting and quite clearly signals your intent to other developers.

Is there any reason why these poor practices couldn't be eliminated from spring.net to simplify the documentation and code base?

Mark Pollack
02-03-2005, 11:09 PM
Hi,

This is because there really isn't a consensus on these issues and people are very passionate about which side they take. Instead of taking sides and alienating some users, we leave it up to you to make you own choice. Our opinions are sometimes reflected in default values, for example autowire is by default turned off, but you can turn it on using the default-autowire attribute inside the <objects> element.

Sorry for the late reply - I somehow didn't notice your post until now. I'm thankful for the 'view unanswered posts' feature of phpbb ;)

Cheers,
Mark