Re:How to get on the front page of Hacker News (in 7 lines o...
by tomasien on Tuesday October 30, 2012 @12:05PM
(#4717931)
Oh my god it's TERRIBLE Python, it's just a joke.
Theoretically I have "written" is good time in another file and imported it here, checking to see if datetime.datetime(datetime.now()) is in a good time, but I just wanted to write it so it was understandable as a joke.
Also, I'm just terrible at writing code. See previous post on 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