212 points · by fka · 7y ago · 114 comments
As someone who has changed careers and moved into web development I found w3schools.com did a nice job of complementing MDN as if I was unfamiliar with the concept (or just forgot entirely) w3 was a good "layman's terms" stop just to start. And if I needed a more technical / granular detail, MDN.
I really wouldn't want to use one without the other.
Many years ago I took some C programming classes in college. It was in the early days of the internet and it was very much a "here's the book, a bit of lecture, now sit alone at your computer and do it". MDN can feel that way at times where it's example is ultra specific and while nothing is technically wrong.... it's like learning a language with a dictionary. w3schools.com fills that gap nicely.
At the same time if I need the dictionary to figure out more precisely how something works and all my options, it's MDN all the way.
https://web.archive.org/web/20110117085131/http://w3fools.co...
I like them. MDN is great, but w3schools is better in giving examples on how to use stuff.
W3schools were so bad, essentially just a click farm promoting any old crap for the pageview, that it'll take a huge amount of correcting, improving, and newly found ethical standards to let me forgive them. Or forget there really was a need for w3fools. They always gave lots of examples, and they were often simply wrong.
Even when they apparently have the answer, until I can validate it on SO or some other place, I'll tend to not trusting...
Original comment:
There is still some complete nonsense on w3schools. For example, I wanted to know recently whether Python supports arrays. The first result on Google is this page: https://www.w3schools.com/python/python_arrays.asp
There is a small disclaimer at the top stating: "Note: Python does not have built-in support for Arrays, but Python Lists can be used instead."
Why the fuck is your page called "Python Arrays" if you don't plan to talk about arrays?
Then the rest of the page talks about lists, while erroneously calling them arrays, in complete defiance of the disclaimer. I imagine what happened is that someone who doesn't know what an array is wrote the page originally, then someone else came by later and realized it was wrong, but instead of actually fixing it, slapped that half-assed disclaimer on top.
I still don't know whether stock Python actually supports arrays. I ended up just importing Numpy.
"Today, W3Schools has largely resolved these issues and addressed the majority of the undersigned developers' concerns. For many beginners, W3Schools has structured tutorials and playgrounds that offer a decent learning experience. Do keep in mind: a more complete education will certainly include MDN and other reputable resources."
Compare https://www.w3schools.com/jsref/jsref_substring.asp with https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
The MDN doc allows you to run the code there and then - no jumping around to a "Try it yourself" page. Also, MDN gets to the syntax quickly - with w3schools, I have to search for the syntax in amongst a bunch of other junk that I really don't care about at that moment (like browser compatibility).
To a seasoned dev, MDN feels clear, w3s feels like a confusing mess. Maybe for early stage devs it's the other way round?
If I need the finer details and understand what i'm looking up, straight to MDN.
If I'm in over my head and want a bit more context, back up to w3.
And then sometimes back to MDN ;)
If you actually read the docs on MDN, you can write stuff that actually work instead of copying random snippets of code until it does what you want to do.
Seeing that many developers (including experienced professionals) thought the two entities were related, it seems obvious that they directly benefited from that confusion. Luckily this seems less relevant now that WHAT WG exists separately from W3C and ECMA/TC39 is more prominent.
[1] Just checked. Twenty years!
But it is pretty natural in how language works for people to see similar names and assume an association. And you can't reconsider an unconscious association, since it's unconcious.
TIL
I wonder how many folks using w3schools.com really know who w3.org really is ;)
W3schools is better when it comes to HTML+CSS with JS sprinkled on top questions IMHO.
MDN for the specifics.
My Stack Overflow post history contains three mentions of W3Schools, all of which involve W3Schools making an error:
* https://stackoverflow.com/q/20610930/1709587, about W3Schools stating falsely that it's necessary to explicitly add `type="submit"` to submit buttons in HTML to ensure cross-browser compatibility.
* https://stackoverflow.com/a/52355253/1709587, in which W3Schools makes false claims about the `colspan` attribute - both about what the specs say about it, and about how browsers implement it.
* https://stackoverflow.com/a/46866568/1709587, where W3Schools suggests a JavaScript function to shuffle an array which both technically invokes undefined behaviour under the ECMAScript standard and which does not fairly shuffle arrays in practice in real browsers.
None of these things are fixed. The fact that they tidied up the specific errors that the W3Fools team listed, in response to the biggest ever hostile PR campaign that W3Schools ever faced, does not mean that they are now a decent, error-free source. Far from it.
I'm pretty serious about web development, and yet I constantly find myself mildly frustrated with whatever MDN resource I find when I'm looking for a solution to my problem.
If I had to guess why I get frustrated, it's probably because MDN seems to focus on being a comprehensive reference at the expense of offering examples and solutions to those who don't immediately care about the nitty gritty.
I think fetch() is a perfect example of this. Back when I googled how to use it, I ended up on MDN and it wasn't too helpful. I had to scroll down and click on another link to get an example, and while that example was for JSON, it immediately made it clear where I should look if I'm dealing with some other kind of response.
Not that W3Schools is better. It sends me here: https://www.w3schools.com/js/js_ajax_examples.asp
But what I'm really missing here is a php.net style website that gives me some concrete examples that solve the most common use-cases, and either offers more in-depth material if I want to properly understand it, or references MDN. I totally understand how for many situations W3Schools is that resource.
Fundamentally, W3Schools is a content mill for technical material, and they prioritize SEO over accuracy.
In the second post https://stackoverflow.com/a/52355253/1709587, W3Schools gave you the information litterally from teh HTML4 spec. It's hardly W3's fault that it wasn't followed as designd. This is the type of pedantic nit-picking bullshit i'm talking about.
And on your third link, I checked the W3Schools page and it literally says "Note: Only Firefox supports colspan="0",..." Contrary to what is in your StackOverlflow post, I assume you only read the Attribute Values and not the whole page. Blaming W3Schools for your lack of reading comprehension is shameful.
I should probably go back to the first two questions and see what else you just didn't read, but were quick to blame they didn't have the "right answer". People just need to learn to read, imho.
Note that W3Schools is not the W3, and have no official affiliation.
> They are dumb because it really makes no difference. ... getting butt hurt because of a "Tip"
It does make a difference. If that tip had been true, it would mean I'd been writing HTML that only worked in a subset of browsers the whole time, and I would've needed to go over all HTML forms I'd ever written and correct them to ensure browser compatibility, and educate my colleagues who also left off the attribute. Are you suggesting that I should read something like that, that if true would mean that all the forms I've written are broken, and just ignore it? Or blindly trust it, and demand that my colleagues change their code style on the basis of an unsubstantiated "tip"? What was I meant to do other than dig deeper to try to find out the truth?
> W3Schools gave you the information litterally from teh HTML4 spec
Yes. Which has been obsolete for years, and yet their page isn't updated.
> I checked the W3Schools page and it literally says "Note: Only Firefox supports colspan="0",..." Contrary to what is in your StackOverlflow post
I literally quote the same passage in my post and note, explicitly, that it is untrue. Firefox's behaviour is just like all the other browsers.
Also, a moment ago you were berating me for taking an aside seriously. Now you're also berating for not scrutinising every aside for caveats that contradict the main documentation? It's unclear that there's any approach to reading W3Schools that will satisfy you, other than magically divining the truth from their docs even when what they write is wrong.
> People just need to learn to read
Evidently.
Today, W3Schools has largely resolved these issues and addressed the majority of the undersigned developers' concerns. For many beginners, W3Schools has structured tutorials and playgrounds that offer a decent learning experience. Do keep in mind: a more complete education will certainly include MDN and other reputable resources.
I personally stopped visiting w3schools when I started finding more answers that were simply wrong than ones that were right.
Glad to hear that it has improved since then, though.
https://addons.mozilla.org/en-US/firefox/addon/hide-w3school...
Google insists on having my information so they can "serve me content tailored to my wishes". Well, Google ... drop the w3schools already!
https://addons.mozilla.org/en-US/firefox/addon/ddg-hide-unwa...
I Google loads of stuff each day. I want to drop w3schools from all my results, automatically.
If you wanted to exclude example.com just add
-example.com
to your search query.Makes me wonder if that’s built into the ranking algo some how.
W3schools may have questionable content. It may have content that is not trendy or latest/greatest. The security concerns are important, but if we're really being honest with ourselves most of the vitriol is pedantic superiority complex attitude that permeates tech conversation.
W3schools is a gateway to learn web technologies. If you go to the homepage, above the fold is tutorials, learn HTML, learn Javascript in plain sight. MDN is a search bar.
I learned PHP in high school from w3schools. I don't use it now; I use the PHP docs. I learned how to host an HTML site from w3schools; now I reference Apache docs because I know what even a webserver is. I once got a CD from McDonalds that kickstarted me being a lifelong fan of one of my favorite artists. I'm sure all of the "hardcore" fans would look down on me for that too.
Anyone serious about web dev pulls for multiple sources all of the time; probably from w3schools and mdn at the same time. People grow. Sites like this are important, although imperfect.
jQuery is not sexy or modern, but w3school's supposed tutorials are ancient, teach bad practices (find me an XHR example that doesn't use ready State), and work objectively less well than their framework (or modern JS) counterparts. For the market they're serving, they're leading to _worse_ software being built.
> find me an XHR example that doesn't use ready State
I absolutely see no problem with using readystate.
> and work objectively less well than their framework (or modern JS) counterparts
Come on, that's silly. What's called modern JS and what those super heavy framework use are in no way objectively better. To confront beginners with all their overhead (build tools for JS! Just crazy) is in no way helpful.
https://github.com/mdn/interactive-examples/pull/1266
Like the page literally, have a screenshot of a old school OS alert box?
https://developer.mozilla.org/en-US/docs/Web/API/Window/aler...
1) meaning w3schools not the w3fools parody site
People who have a hate hardon for w3schools are the kind of people who will judge you for the kind of dish soap you use.
I'm certain w3schools will claim the domain in short order.