Comment

Comment by naasking

> Aside: I'm really frustrated by the advice to validate all input. That's not useful advice and people should stop teaching it.

This suggests teaching what validation means, not abandoning the idea of validating. In other words, be especially aware that you're crossing a trust boundary when accepting input, and use proper validation algorithms, like proper parsing instead of ad-hoc pseudo-parsing using regexes.

parent naasking 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton