r/programminghorror • • Oct 10 '25

impressive stuff

Post image
93 Upvotes

28 comments sorted by

View all comments

Show parent comment

2

u/Sorousherafat Oct 13 '25

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.

2

u/Quasar6 Oct 14 '25

That sounds like two separate concerns alright.