Better HN
topnewbestaskshowjobs
Log inSign up

serious_habit

30 karma · joined Dec 20, 2021 (4y ago) · 4 submissions

Submissions

comment 4y ago · link · parent

Outrageous behavior is being glorified because it drives clicks.

So many of these Alex Jones wannabe 'anti-maskers invade a store protesters', schoolboard meeting ravers get publicized because they get people fired up and drive clicks and ad revenue.

It's normalizing that the way to handle disagreement is to act out.

I'm sorry to say that this onslaught of terrible behavior isn't because people are tired of lockdowns, it's because it's great for driving ad traffic & getting $ from voters.

comment 4y ago · link · parent

If I'm reviewing code and someone is implementing escaping that's an immediate, massive, red flag. It's SO HARD to get right and there are many MANY libraries for doing it correctly. The scary thing is how many bugs still make it into these libraries.

Strongly prefer using an established library and see designs such as https://web.dev/trusted-types.

comment 4y ago · link · parent

Even better- never sanitize your data.

You should only use templating systems which safely handle user data. Don't use innerHTML assignments, don't concatenate user data into SQL queries. Use existing, validated libraries for generating HTML and SQL.

comment 4y ago · link · parent

Are NFTs a joke?