Re:True hacker resume: CV as Python unit test
by generalk on Thursday July 15, 2010 @05:23PM
(#1519259)
Am I missing something?
[ Parent
| on HN ]
Re:True hacker resume: CV as Python unit test
by ElliotH on Thursday July 15, 2010 @06:00PM
(#1519385)
Yup, the companies namespace is theoretical (containing presumably every company in existence) and contains a class YourCompany - that represents the interviewer's company.
Because companies doesn't actually exist there is an import error. If you were to create a class to substitute in you'd need something like:
class YourCompany:
def unit_tests_code():
return True
...
Re:True hacker resume: CV as Python unit test
by studer on Thursday July 15, 2010 @05:44PM
(#1519321)
Yeah, you're so completely missing the point of his code that I have to question the intelligence of both yourself and everyone who's upvoted your message. Is this stupid night on Hacker News, or what's going on here?
(And yes, I'm 100% serious. Your reply is the dumbest thing I've ever seen on this site.)