The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

boyarsky (67) [Avatar] Offline
#1
page 27/28 - I think the non-DI way is unfairly represented. Having separate classes for Dev/QA/Prod was poor practice in the before DI was popular too. The best practice approach was to use property files or some externalization technique. But then the book says with Spring "with only a different configuration file for each environment." Yes, Spring does this. And it injects the values rather than making the code read the file. But implying we had separate code before and now we just have a file is misleading.
martijn.verburg (86) [Avatar] Offline
#2
Re: property files before DI
Hi Jeanne,

This is a fair observation, I will need to think of a more appropriate example. Again this is something that will be likely to be changed a little further down the track.

Cheers,
Martijn