Most tech was made with good intentions; only later do the unintended consequences become clear.
The problems Facebook are facing today are the result of running into the future without considering unintended consequences, much like Microsoft and the Internet. There are clear solutions for the ad problem, but the filter bubble issue is much more fraught.
Moderating user-generated content is hard: it is easier, though, with a realistic understanding that the Internet reflects humanity — it is capable of both good and evil.
Meltdown and especially Spectre are vexing vulnerabilities, precisely because processors are working as designed. All we can do is muddle through.