I highly recommend this page by WebAIM on it: https://webaim.org/techniques/alttext/
Reply on news.ycombinator.com