— It's just an extra instance prop
Doesn't really matter since assertExists is mostly a pure function, but the ideal way is to dependency-inject everything
— But what is the advantage of passing it as a prop instead of defining it on the class?
— Or what is the disadvantage of using it as static class method
— Defining it like this is direct coupling
— Means:A) The instance can't be constructed with a different assertExistsB) assertExists can't be mocked
Message permanent page
— I use one assertExists utility for all classes
— Anyone use arch linux here?
— Yes i
— I know
— Hey guys I need some quickly recovering... My laptop has been injected by forasom /berost viruses please guys help me
— Https://howtoremove.guide/remove-forasom-file-virus/ for forasom