I wonder if #JavaScript people will get all mad at me if I stop using classes to
describe "Service Objects":
https://gist.github.com/coderbyheart/bf6d16c6bf3d08acd547642a4d7e3e07 >
2 replies
Because right now I do have Service Objects, which have a constructor where I
pass in dependencies, and I then use these dependencies in instance methods. But
the instance methods are side-effect free, meaning that basically all my object
members are declared as private readonly.
So, why not ditch the class shell as a "dependency holder" and only use
functions?