How to get on the front page of Hacker News (in 7 lines of Python)
tommy.authpad.com
tommy.authpad.com
- "isgoodtime" is a magic variable that changes depending on when it is imported. It should therefore be either a function or method on an object.
- "if isgoodtime == True" should be "if isgoodtime:" (although this would probably change to "if isgoodtime():"
- words in functions should be separated by underscores, e.g., is_good_time, to_great_content
Also, I'm just terrible at writing code. See previous post on tommy.authpad.com
Sorry for being a pedant :)
It's a bit counter intuitive. Reminds me of learning to count cards in blackjack: if there are more high cards, doesn't that mean the dealer ALSO is more likely to get high cards?
People used to think the same thing about posting on Ask MetaFilter, and when people actually looked at real data, they determined that the number of people interacting with a post was roughly the same no matter when it was posted, because of the phenomenon I mentioned—in a community where everyone can post, times where the audience is bigger also mean bigger competition for attention.