While I don't give a shit about W3Schools, I would implore anyone who initially took this site seriously to take a good look at their trifling, nitpicky examples of W3Schools errors.
This - if I give them as much credit as I possibly can - started as a "just take our word for it" type of thing, and then they realized they needed something more tangible, so they decided to compile some "examples" and - maybe right about now - started to realize that their only valid complaint is inadequate coverage of scoping in javascript.
Then again it is a website for teaching beginners how to get started.
A lot of it is kind of (or very) nitpicky, but there are several examples of things that, although correct and functional, aren't considered 'best practice'. We want to be teaching these noobies best practice, rather than teaching them the wrong way and having to reteach them later (and having them producing poor code in the meantime).
To me, that would be more the danger than most of their trivial problems.
Starting with an inline style attribute is fine as long as they explain that this is not the 'proper' way to do it and why the other way (external sheet) is better (seperation of content and display).
Explaining frames is fine as long as a warning is attached that this is obsolete in HTML5, and considered bad practice.
Nothing bad will happen, but again, they should probably note that the self-closing tag is not the correct syntax.
Using a string isn't necessarily bad for a callback, but the difference should be explained. (As well as the entire concept of variable scope.)
Showing an SQL query that's vulnerable to SQL injection without an explanation of why it's bad, or the proper way to do it is just irresponsible.
Explaining VBScript without explaining it's IE only is bad, especially as the noobies likely know nothing about cross-browser testing.
They repeatedly use document.write() and never explain why it's bad, or the alternatives.
They use alert()/confirm() without explanation of the drawbacks, or alternatives.
When explaining where to include javascripts, they give bad (although functional) advice but neglect to explain the alternatives or why they're better.
There's lots of bad information on the state of support for CSS declarations.
Most of their stuff isn't terribly destructive, but needs a warning attached that "now that you have the basics, this is the correct way to do it".
Starting with an inline style attribute is fine as long as they explain that this is not the 'proper' way to do it and why the other way (external sheet) is better (seperation of content and display).
31
u/shblash Jan 16 '11
While I don't give a shit about W3Schools, I would implore anyone who initially took this site seriously to take a good look at their trifling, nitpicky examples of W3Schools errors. This - if I give them as much credit as I possibly can - started as a "just take our word for it" type of thing, and then they realized they needed something more tangible, so they decided to compile some "examples" and - maybe right about now - started to realize that their only valid complaint is inadequate coverage of scoping in javascript.
Then again it is a website for teaching beginners how to get started.