News for hackers. Stuff that matters.
Re:The People Who Ruined the Internet by LtWorf on Wednesday November 01, 2023 @08:05PM (#38107157)
If you call "working" showing me an endless stream of blogs of some dude, an automatically translated russian clone of stackoverflow, a completely unrelated stackoverflow question, above the actual official documentation that it should be showing me… sure then it works.
Re:The People Who Ruined the Internet by itishappy on Wednesday November 01, 2023 @08:10PM (#38107195)
I bet more people are looking for blogs than docs.
Re:The People Who Ruined the Internet by LtWorf on Thursday November 02, 2023 @02:26PM (#38117917)
My suspicion is that blogs have ads and documentation doesn't, and that's why the results are like this.
Re:The People Who Ruined the Internet by itishappy on Thursday November 02, 2023 @03:25PM (#38118713)
Totally agree! My point is that they both probably contain the same answer and I bet that's all most people care about. I think most of us here have strong preferences for picking the "most appropriate" source, but frankly, I suspect we're weird.
Re:The People Who Ruined the Internet by LtWorf on Thursday November 02, 2023 @06:16PM (#38121080)
In my experience, blogs are mostly young students trying to build an online presence or something similar, and contain bad advice and wrongness.
Re:The People Who Ruined the Internet by THENATHE on Wednesday November 01, 2023 @08:47PM (#38107478)
If I wanted the docs, I would get the docs. The blogs are useful because the documentation is largely unhelpful due to being overly simplicity or extremely nondescript. The blogs are where it's at because you can see how someone else used that thing
Re:The People Who Ruined the Internet by smcin on Thursday November 02, 2023 @12:52AM (#38109143)
That's too generalized and IME not even true for say, Python docs, or regexes, or Gnu tools, or HTML. Most bootcamp/academy/coder-type blogs/copycats are aimed at giving only a tiny fraction of the information, but with examples (sometimes only very simple ones that cover only the most basic use-cases, and no links or mention of the other missing 90% of information (e.g.: "to read more about regexes, see ...").

"site:docs.python.org/3/ term" gets much better results. (You have to add the site: qualifier, due to SEO it's no longer just enough to say "Python docs". Hence "If I wanted the docs, I would get the docs." is not as trivial to do as you suggest. Things actually went beyond annoying to downright dangerous when searches for "Python 3.10 <topic>" were drowned out by older e.g. (3.6-3.8) version SEO stuff, instead of the latest Python docs.)

Queries like "awk by example" or "egrep by example" or "jq by example" seem to hit the sweetspot between completeness and working example: they give you third-party non-commercial unaffiliated expert bloggers not stuffed with upsell links to a bootcamp. Just pure information sites.

Having mentioned all this, now I've probably inadvertently cursed those sites...

Re:The People Who Ruined the Internet by photonthug on Wednesday November 01, 2023 @09:04PM (#38107620)
To me what this shows is that it's really painful to try and use an "intelligent" algorithm for "content mediation" as if it were an actual search engine. Anything that spectacularly fails the "exact substring match" use-case is well on the way to becoming a content-mediator, and potentially as bad a content-moderator/thought-police/etc.

Unfortunately even before anyone started talking about "semantic web" or whatever, substring-match was declining in utility due to spam, so a substring-matcher was only as useful as it's ranking algorithm. So some cleverness in ranking is necessary, but when ranking becomes too clever, or irrelevant due to the arms race with spam, it's an almost inevitable slide from necessary rankers to mediators.

Since all the search/spam arms race is pretty much played out with giants like twitter/google anyway at this point, it is kind of hard to understand why we can't get and keep a separate and truly basic internet search engine that just works. I don't have a handy example, but in my experience even DDG & friends seem to routinely fail the "exact substring match" test for unusual phrases that I know I read verbatim last week.

What I (and I think others) really want is just substring-match tool plus a very minimal amount of extra cleverness for basic stuff like spelling variations, some fuzzing for dates/digits, directly adjacent stuff according to a simple thesaurus. Not my area of expertise, but I would guess that there's a combination of problems that prevent this tool from existing.

a) Other search companies are all trying to do fancy-but-fuzzy "semantic distance" searches to emulate Google b) It's still true in 2023 that just keeping an up to date index is a super hard problem no matter how many crawlers are in your army c) Despite bots everywhere, the deeper web in social-media is just too login-walled for the rule-abiding crawlers to deal with d) There's just no money in do-what-i-say-not-what-i-mean search tools

Re:The People Who Ruined the Internet by galangalalgol on Wednesday November 01, 2023 @09:14PM (#38107703)
DDG seems unusually susceptible to highly ranking AI-generated overly verbose garbage. I can't recreate the same issue with google or bing, so I am not sure where it pulls it from. I can find those same results in google, it's just they are on the 2nd or 3rd page.
Re:The People Who Ruined the Internet by Aunche on Wednesday November 01, 2023 @09:33PM (#38107842)
I've never really found docs particularly useful. Usually, I just want a few simple examples to get the gist of how something works and docs tend to be very bad job of that. Meanwhile, the W3Schools SEO spam HN disdains tends to good job of that.

These days I use ChatGPT though.

Re:The People Who Ruined the Internet by algorias on Wednesday November 01, 2023 @09:47PM (#38107964)
Eh, I've had the opposite experience. If you search for anything slightly obscure in a language like Java, you'll get dozens of spam sites aimed at beginners that answer a much more basic question than the one you asked. That's because Java searches cater to a large population of people who can barely code.
Re:The People Who Ruined the Internet by jrumbut on Thursday November 02, 2023 @12:15AM (#38108917)
Java is particularly rough because there are several populations of Java users (students, Android developers, enterprise developers, among others) and their coding standards are universes apart.
Re:The People Who Ruined the Internet by gureddio on Thursday November 02, 2023 @06:50AM (#38111619)
That and it's been around so long that the language and it's standards have been through so many iterations
Re:The People Who Ruined the Internet by LtWorf on Thursday November 02, 2023 @01:22PM (#38116939)
> These days I use ChatGPT though.

I usually get non-working code snippets that pass the wrong parameters.

Re:The People Who Ruined the Internet by nicbou on Friday November 03, 2023 @08:09AM (#38127521)
uBlocklist removes a lot of the crud, thankfully