TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask pg: avg = karma per submission or karma per comment?

5 pointsby iamelgringoover 15 years ago
Just wondering.

2 comments

pgover 15 years ago
<p><pre><code> ; Ignore the most recent 5 comments since they may still be gaining votes. ; Also ignore the highest-scoring comment, since possibly a fluff outlier. (def comment-score (user) (aif (check (nthcdr 5 (comments user 50)) [len&#62; _ 10]) (avg (cdr (sort &#62; (map !score (rem !deleted it))))) nil))</code></pre>
blasdelover 15 years ago
Pretty damn sure they're combined, despite being representative of entirely different values.<p>You can get more considered stats using <a href="http://searchyc.com" rel="nofollow">http://searchyc.com</a>