Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • "And it appears that if I validate that parameter in every function breaks the SRP." - I guess you were conflating the SRP with the DRY principle? Please clarify. And please tell us more about the validation - what exactly are you going to do when the specifified directory does not exist? Is it always the same action in every function? Commented Jan 24, 2022 at 6:47