News for hackers. Stuff that matters.
Re:Software Engineering principles to make teams better by tgb on Wednesday June 30, 2021 @04:43PM (#27693220)
How do you make something idempotent if one of the effects is sending an email?
Re:Software Engineering principles to make teams better by yen223 on Wednesday June 30, 2021 @04:56PM (#27693340)
You can't make everything idempotent.

You should still try and make most things idempotent.

Re:Software Engineering principles to make teams better by zentropia on Wednesday June 30, 2021 @05:39PM (#27693690)
Side effects go to the border of the app. You keep track if for some message X you have sended the email, so you garantie that you send it once.