I have been doing all my function development in individual ps1 files for ease of testing. I.e. I have a Reg-Functions file, which contains all my Registry manipulation functions, and I have some script level code at the bottom to test the functions. I had planned to then put all the helper functions together in a single module, but smaller files are a little easier to get around in, so now I wonder if having 10 or 12 different modules is a better way to go?
Also, I can see some of them having shared dependencies. So A.psm1 & B.psm1 both depend on Z.psm1. Can I load Z.psm1 in both without trouble when I then load both into script.ps1? Or is there bad juju there? I know, this is one I should just test rather than asking the question, but I am away from the Windows VM at the memento and just had the thought.
Gordon