I already read the answers in this similar question, but I believe my needs are different.
I have a class A
in my Domain layer, one of its methods getValue
needs to read from a file to get a certain value, so I thought about creating a helper class to do the file reading and keep the getValue
as clean and minimal as possible.
Since I'm using DDD for the first time, and based on the humble knowledge I have, I think the helper class can be put in the Domain Layer since it's where it is going to be used.
Does putting the helper class in the Domain Layer a wise choice? if No, Is there any better solution that is DDD compliant ?