4 ms·
I agree that in general Postel's law is bad practice but I think that it also makes sense under certain contexts. For example, if you have an email input field,
by miguelmota 6y ago
I agree that in general Postel's law is bad practice but I think that it also makes sense under certain contexts. For example, if you have an email input field, it's better to trim spaces from the user input before sending it to the server instead of showing an error that there's spaces needing to be trimmed. In this example the input field is liberal in what it accepts and conservative in what it sends to the server.
- noobermin 6y agoThat might be the issue, what is "liberal" and "conservative" needs to be quantified. Taking Postel's law or any law/adage to an extreme is a bad idea.