Lurker News

Comments (308) 66 threads

Earlier comments
nabakin4 replies#
This is a great idea! I don't know why I hadn't thought of it beforehand! I looked through your code and it looks like you replace the HTML of the page. Have you considered appending "-site: -site:...etc" to the end of the search query instead? This way, the user still gets a full page of relevant search results.

I'm not sure how flexible extensions are, but maybe you could intercept all request attempts to google search, append the blacklisted URLs to the search query, then hide them on the loaded page so that the user doesn't have to see the long list of appended, blacklisted URLs.

davehcker1 reply#
Thanks. No that has the potential issue of assuming that results from your blacklist are complete crap. That'd be equivalent of removing the search results based on the blacklist entirely (right?). Based on a comment here on HN as well, I think that's not necessarily a good idea. You don't know what you don't know, so may be a blacklisted website may return a valid result (unlikely but probable, so I'm letting that assumption be there).

And feel free to contribute on Github if you like :)

nabakin1 reply#
It removes all blacklisted URLs from the search results. Isn't that what your extension does?

Continue this thread — 4 replies

monadic2#
In my experience the site filters are usually limited by query length.
vanderZwan1 reply#
> "-site: -site:...etc"

I actually have a keyworded URL in my Firefox bookmarks for that, IIRC there is a limit (a very low one if you really want to get rid of all the spam options) for how many sites you can block this way

nabakin#
Oh cool! Have you figured out a way to avoid going over the max query length?
joshspankit3 replies#
Honestly, at this point Google themselves should be offering this.

Not only would it keep people coming back for actually valuable results, but it would feed them with an up-to-the minute listing of sites people don’t trust.

sneak1 reply#
Google does offer this, it's just a filter list to benefit Google, and not you.
joshspankit#
You misunderstand: I’m saying they should be offering a way for users to set their own blacklists.
Meekro1 reply#
Even better, let people subscribe to block lists, like ad blockers do. Instead of putting together my own list of shit sites (which will be perpetually out of date), I'd be happy to outsource that to some group I trust.
davehcker#
It's an enhancement issue I've already added to the repository on Github. Planning to roll it out in the next update :) Honestly, I didn't know how big of a pain it was to a lot of people until now.
aendruk1 reply#
They did! Then of course killed it.
joshspankit1 reply#
When?? How did I miss that?

Continue this thread — 1 reply

Nightshaxx5 replies#
As someone who just graduated college and found geeksforgeeks, cplusplusreference, and w3schools quite helpful for Algorithms, c++ Syntax, and learning some basic web design stuff (respectively).....what should I be using? I see a lot of people hating on them....but they all seemed alright to me. Is it just because they are too basic? (I used a lot of these things for just learning basic things I either forgot the syntax for or needed a quick introduction).

I'd especially like to know for c++.

GeneralMayhem1 reply#
The complaints about these sites is usually that (a) they're literally wrong just often enough that you don't want to rely on them, which defeats the point of a reference, or (b) they try to "teach" things that are not recommended best practices. With w3schools in particular, there's the added "ick" that they try very hard to make it look like they're an offical W3C source, and sell scammy certifications based on that confusion. They also provided (past tense, because I haven't looked at it in years) some very questionable practices with PHP that would lead to trivially insecure code.

cppreference.com is what I usually use for C++. It's well organized, well cross-linked, and uses exact standards language whenever possible. It's also very good about showing the differences between successive versions of the C++ standard libraries, which is invaluable if you're working with any sort of legacy code and wondering why something looks funny.
For HTML5/JS, MDN (Mozilla) was my default when I did front-end, but it's been a little while. I'm sure Mozilla is still great, but there might also be something easier to traverse.

Nightshaxx#
Ahhhh.....you know what, now that I think about it, I remember last semester for a class I had to do a bunch of PHP + SQL for a Backend (my first time really using either). I basically just googled a bunch of stuff and I ended up just writing the queries in as strings basically because that's what I saw on a site (very possibly one of the ones in question).

I felt it was wrong because I was concerned about SQL injection, but my professor really didn't care about security so I wasn't too too concerned. Later on my professor mentioned that pre-compiled statements (I think that's what they are called) and I facepalmed because that would have been way more secure and been 5x easier anyways.
So yea, I guess they still are giving bad advice.

ghayes#
For me, the information tends to be incomplete that it’s hard to use as a reference, which is often why I am searching in the first place. For example look at JavaScript Array reduce function in w3schools [0] and MDN [1] and try to decide the exact result when you pass only one argument to the function. MDN is very precise about the behavior and w3schools basically forces you to test and see.

[0] https://www.w3schools.com/jsref/jsref_reduce.asp [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

zests#
The're basic but that's not the real problem. Plenty of articles are basic but also offer unique perspective or insight. The real problem is that these articles are often uninspired and seemingly only written for the purpose of writing an article. Full of keywords to maximize google search potential. And then your technical search gets bogged down by these SEO friendly articles and you can't find what you need.

Its a lot worse for python than, say, kotlin. That was one of the biggest things I noticed when changing languages recently.

inetknght#
For C++, I use cppreference.com and stackoverflow almost exlusively
_slyo#
If I installed this extension, cplusplus.com would be the very first thing to go on my blacklist. I always want cppreference.com.

Load more comments