News for hackers. Stuff that matters.
Re:Be Careful when Speaking to Federal Agents - 18 U.S.C. Se... by kelnos on Friday September 16, 2011 @05:14PM (#3006350)
I would downvote myself for this comment that I'm making, but:

I generally dislike this sort of meta-discussion on HN. I believe the guidelines have something to say about this, as well: if you disagree with a posting, don't comment about it, just flag it and move on. Adding a comment saying "this doesn't belong on HN" does not at all add to the discussion. That is why I (and many others) will downvote you for your initial comment. It's not because we disagree, it's because the comment is extraneous noise.

Re:Be Careful when Speaking to Federal Agents - 18 U.S.C. Se... by BrandonM on Friday September 16, 2011 @07:18PM (#3006694)
This sort of meta-discussion sucks, but when the majority of the people responding to a comment are wrong[0] (as evidenced by jsdalton's numerous downvotes), then the necessity to educate the members outweighs the desire to avoid meta-discussion. The average commenter here has less than two years of membership[1]; many likely are not familiar with what HN is (was?) all about, and some of the longtime ones are likely getting sucked into interesting-but-vacuous discussion.

[0] I consider this to be undebatable. This is exactly the kind of submission pg wanted to avoid when he discouraged politics. See http://news.ycombinator.com/item?id=196547

[1] Just to redeem this post, the following code calculated this:

  import re, urllib2
  from BeautifulSoup import BeautifulSoup

  pg = BeautifulSoup(urllib2.urlopen("http://news.ycombinator.com/item?id=3005365"))
  user_re = re.compile(r'^user\?id=(.*)$')
  users = set(user_link.string for user_link in pg.findAll('a', href=user_re))
  created_days_ago = 0
  # Some error-handling code omitted for conciseness
  for user in users:
      profile = BeautifulSoup(urllib2.urlopen("http://news.ycombinator.com/user?id=" + user))
      created = int(profile.find(text="created:").parent.nextSibling.string.split(None, 1)[0])
      created_ago_days += created
  print created_ago_days / float(len(users)) # printed 624.666666667
(I've been doing a lot of C programming lately. To be able to do such a high-level task in 9 lines of code is ridiculously sexy.)