3 ms·
> Seriously, the avoid-crashing-at-all-costs anti-pattern is what made HTML, JavaScript and PHP the messes that they still are Forgiving syntax made HTML and P
by indymike 3y ago
> Seriously, the avoid-crashing-at-all-costs anti-pattern is what made HTML, JavaScript and PHP the messes that they still are
Forgiving syntax made HTML and PHP easy, and because it was easy people were quick to learn and use them. Everything is trade-offs.
- HideousKojima 3y agoClear and sane error messages (i.e. something with the level of quality of Rust's compiler) could have accomplished the same thing without creating the insanity we have now.
- Aaargh20318 3y ago> and because it was easy people were quick to learn and use them and then went on to write a shitload of insecure code. Just because it's simple to use, doesn't mean that just anyone should be using it. The problem with PHP is that it can be used by someone with far below average programming skills to make something functional. But the flip side of how forgiving it is, is that it takes someone of above average skill to make something to use it to make something safe and performant. Making it easy to use wrongly also makes it harder to use it right. Simply because you lack any feedback when you do something dumb.