Ask HN: What are these low quality “code snippet” sites?
594 pointsWhenever i am trying to google a code issue i have, there is countless low quality sites just showing SO threads with no added value whatsoever.
It is so annoying it actually drives me mad.
Does anyone know what's up with that?
I am really disappointed because the guys creating these sites (i guess for some kind of monetization) must have some relation to coding. But i feel this is an attack against all of us. Every programmer should be grateful for the opportunity to find good quality content quickly. Now my search results are flooded with copy & paste from SO.
They are killing that.
Am I the only one experiencing this or being that annoyed by it?
P.S: I don't name URLs because if you don't know what I am talking about already, you probably don't have that issue.
Comments (316) 81 threads
Earlier commentsIt's impossible for them to understand. Clearly they have zero people working and living in countries other than their own. /s
I didn't notice SO being this bad.
With ublock origin I have not seen any modal logins.
For example this article on red black trees: https://www.geeksforgeeks.org/red-black-tree-set-1-introduct... does not seem that horrible with proper references to CLRS and everything
OP is talking about ugly looking automated Stack Overflow copies. No idea how those end up so high in rankings.
The other sites, every page is a mirror of an SO page, with worse CSS. Maybe you haven't encountered them yet!
Not surprised it shows higher than the actual spec. I think the HN community is just getting to the greybeard stage (I'm still cutting out grays), and this is our version of JUST READ THE MAN FILE
It has. It is nowhere near the quality of MDN, but also nowhere nearly as bad as it used to be.
W3Schools has less information than MDN. This is bad for the experienced, but a relief for people who are entering the trade.
As an example, consider an inexperienced web developer that wants to do something when a button is clicked. They google for it and find these two pages:
- https://www.w3schools.com/jsref/event_onclick.asp . Right there in the middle of the page is an example snippet that will get the job done. If I scroll down I see other ways to do it, all of them fully contained (i.e.: I can copy-paste it to some website and they will work).
- https://developer.mozilla.org/en-US/docs/Web/API/Element/cli... . There's a table of things I don't understand (Bubbles? Cancellable?), two lengthy discussions about weird edge cases in some browsers, and (finally!) a single not-so-simple example that is not even enclosed in
If there is a pattern it doesn't recognize, you end up on the MDN search results page.
edit: More info. about how it works is available here: https://github.com/tayler/tomdn
DDG also has !bangs for this specific purpose and !mdn does, as expected, lead you to MDN.
Bangs are great, just shorter again to use tomdn.com: - `!mdn array.map` leads me to https://developer.mozilla.org/en-US/search?q=array.map, which I have to scan the results and click on. - tomdn.com?array.map leads me to the exact page in the docs. https://developer.mozilla.org/en-US/docs/Web/Javascript/Refe...
This may or may not be valuable, but I like saving the extra steps for something I do many times a week. Basically this calculation (https://xkcd.com/1205/) works out for me + the fun of working on a new project.
edit: >I don't have to run my searches through an unknown third party
Very sympathetic to this concern. Feel free to host yourself -- it's a single html file. https://github.com/tayler/tomdn
Continue this thread — 2 replies
Stupid w3schools was the first hit. The official library reference documentation on python.org (which was what I was looking for) didn't turn up until nearly the bottom of the 2nd page of search results!! Beyond frustrating.
Continue this thread — 1 reply
Continue this thread — 2 replies
Google is the goto search engine today, the competition is virtually non-existant, so they don't have to compete anymore. Hence the quality of their search engine going down hill, conflict of interests and what not. It's not shortsighted, it would take billions to compete with Google search and even Bing isn't even trying anymore.
When I look at a Google search page result today I see loads of ads, then their shopping stuff, image search stuff, a list of questions related or not to my search and their answers extracted from third party web pages, then only when I scroll 1 page I see actual search results. Google search wasn't like that 15 years ago.
Googlers are working so that Google makes more money, and Google is an ad company first and foremost.
Continue this thread — 1 reply
A lot has changed since then, but I doubt that Google has decided these kinds of content farms are suddenly OK. It should also give pause to people asking for "open ranking algorithms." Without some amount of secrecy, content farms will pop up for literally every keyword they can sell ads against, and they'll know how to rank more often rather than just blindly guessing.
I have a feeling there is a way to introduce randomness to this search engine in a way that smooths out the game theoretic arms race of gaming an algorithm. This goes against our natural urge to have a fully deterministic algorithm which always brings the most pertinent sites right at the top. However, because humans are trying to bring order to things for their own benefit, throwing in chaos could prevent people from even trying to game the algorithm
Introducing random elements just makes it worse for everyone.
Continue this thread — 2 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.