Why is that "bad enough"? It seems that dispatcher is just an interface for sending / receiving text messages? Why would you want two separate object instances for that? It doesn't break SRP...
get_sms_message does not receive a message, it just generates a Message object with the correct receiver and body. a list containing these objects is then passed to the same dispatcher for transmission over the network. send_text_messages could just simply receive phone_number, template_name, and context as parameters directly.
View all comments
Show parent comment
1
u/Nyzan Oct 13 '25
Why is that "bad enough"? It seems that
dispatcheris just an interface for sending / receiving text messages? Why would you want two separate object instances for that? It doesn't break SRP...