it's possible that "popular on HN and Reddit" is not a universal goal for writing code...

It isn't, but if you're sharing something and you care about people seeing/using it, they're the most "democratic" places to do it. Twitter/YouTube can work well but they're rich get richer platforms.