This one for me, it's so apt for HN.
Edit. I'm laughing, didn't take long for the down vote!
Come on guys, take a joke will ya!
11–20 of 95 posts
This one for me, it's so apt for HN.
Edit. I'm laughing, didn't take long for the down vote!
Come on guys, take a joke will ya!
https://news.ycombinator.com/favorites?id=tptacek&comments=t
Related, I am learning to code and in the process I built this simple website that randomly shows the most upvoted HN comments: http://www.opusnota.com/hnbc
HN comment scores are not public, so I am unsure how you find the "most upvoted comments"
Edit: naturally, there is a strong bias for older comments in the list.
Code I use:
$(document).ready(function() {
var lasthours = "";
$("#refresh").on("click", function() {
var html = "";
var url = "https://hn.algolia.com/api/v1/search?tags=comment&numericFilters=points>120&page=";
var page = Math.floor(Math.random() * (20)) + 1;
url += page.toString();
var position = 0;
position = Math.floor(Math.random() * 20);
$.getJSON(url, function(json) {
var hits = json.hits;
var html = ""+hits[position].comment_text+"
Story: "+hits[position].story_title+"
comment by "+hits[position].author+"
";
$("#quote-text").html(html);
});
});
});
Best HN comeback: https://news.ycombinator.com/item?id=35079
Yes, it was probably the only block in the world with two Nobel Prize winners living on it.
Earlier quoted context omitted.
HN comment scores are not public, so I am unsure how you find the "most upvoted comments"
Algolia's API show votes for older comments (not sure how old is the line when it stops showing). Edit: naturally, there is a strong bias for older comments in the list. Code I use: $(document).ready(function() { var lasthours = ""; $("#refresh").on("click", function() { var html = ""; var url = "https://hn.algolia.com/api/v1/search?tags=comment&numericFilters=points>120&page="; var page = Math.floor(Math.random() *…
There have been quite a few good comments since then.
It is worse to make an incredibly biased list than no list at all.
Related, I am learning to code and in the process I built this simple website that randomly shows the most upvoted HN comments: http://www.opusnota.com/hnbc
HN comment scores are not public, so I am unsure how you find the "most upvoted comments"
Earlier quoted context omitted.
Algolia's API show votes for older comments (not sure how old is the line when it stops showing). Edit: naturally, there is a strong bias for older comments in the list. Code I use: $(document).ready(function() { var lasthours = ""; $("#refresh").on("click", function() { var html = ""; var url = "https://hn.algolia.com/api/v1/search?tags=comment&numericFilters=points>120&page="; var page = Math.floor(Math.random() *…
The Algolia API cutoff for comment scores is October 2014. (which I know because it was cut off after I made a blog post on the subject: http://minimaxir.com/2014/10/hn-comments-about-comments/ ) There have been quite a few good comments since then. It is worse to make an incredibly biased list than no list at all.