by ceejayoz · 14y ago · 0 comments
These tutorials need a massive red flashing warning saying "we've left critical stuff out, you will get your site defaced if you code like this".
Newbies don't need to be expected to know good code. That's no excuse for presenting actively dangerous examples to them with no warning.
Now, I would be all for W3Schools making their disclaimer more noticeable. It is there, though.
Not necessarily, and bad code can make dangerous tutorials.
W3Schools is not responsible for what devs do, and safe code means introducing more concepts that can leave the scope of a tutorial.
I agree the code sucks, but we're talking about minimizing time to understand something, not security. Save that for the security tutorials.
Following that tutorial introduces massive security holes into a site. Those security problems need to be discussed. At the very least they need a warning saying "Don't do this until you understand the security issues discussed in THIS OTHER GUIDE".
An unproductive comment, but I think it's a defensible one.
Languages cannot eliminate every subtlety in their use, and there will always be issues that call for more articles explaining how to sidestep them. Novices won't normally get to see this content, and it won't help them to shove it all down their throats at once back at the introductory level courses.
There's a reason most physics students hear about Newton first.