This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the web-development category.
Last Updated: 2024-11-21
Imagine you were about to send emails to 10k people. What are the two biggest issues you should consider in your code?
# sample code, but don't read into this much
Sales.where('created_at > ?', 2.years.ago).map do |sale|
sale.email
end
Here are the two, potentially very damaging issues:
These two issues must always be accounted for in mailing list code.