Much of what gets posted online in web dev communities (esp. Twitter) is really bad advice being given by people who are too early in their career for them to be fully hit by the consequences of said bad advice.
Not sure what can be done about it. Refuting it all is impossible.