Job Description as runnable python UnitTest
github.com
github.com
The early ones were funky C compiler weirdnesses that exploited word size, endianness, binary format and other machine quirks. This one is practically readable.
print "2. Fork out this code, suggest improvements and submit those" [L141]
So fork the code and suggest something funkier.[L141] http://github.com/praekelt/careers/blob/master/software_engi...
There fixed it for you :)
LE: python 2.5 -> 2.4 (bconway was right)
A.) RHEL 5.x (by default) comes with Python 2.4, not 2.5.
B.) Yes you can. It is required in 3.x, though.
2) I'm annoyed by companies who think working for them is some great gift to me. Various wordings in this test exuded that attitude.
OTOH, I could have just been a bad mood that day.
Still, great idea! Coming up next -- Job Description as an infographic!
Also, it's more for fun then anything else. I mean, this could have been simply written on a pdf with: Django experience, >10, etc.
I like the infographic idea, any other suggestions?
select *
from job_candidates
where interest > 0
order by interest descAlso, why are you attempting to recruit people who are interested in a subject "in the broadest sense", as opposed to people who live and breath the damn thing?
Recruiting people of marginal interest and passing familiarity sounds like a recipe for mediocrity, imo.
Still, I think a tongue in cheek infographic could be pretty cool as a job description. True, maybe not so much for databases.
I just might do something like this with some html/css/javascript.
"10 years software development experience." is translated as
assert candidate.results['started_programming'] <= years_ago(10)
That reads like "10 years or less" rather than "10 years or more"; I'd be wary of applying to a place that can't even get that right (although maybe your first job can be fixing their ad).Edit: Reading more closely, perhaps years_ago(10) returns the numeric year that was 10 years ago now, and 'started_programming' is an absolute year as well, in which case this test makes more sense. However, it's not intuitive to read this way...
It's weird to me that the "candidate" referenced by FoundationEngineerTestCase is the same candidate instantiated at the bottom of the file, without ever being explicitly passed into an instance of that class. I would have expected:
test_program = CandidateTestProgram(candidate)
Furthermore, how is CandidateTestProgram connected to FoundationEngineerTestCase? Does it do a global search for subclasses of unittest.TestCase, then instantiate and execute them?As for the TestProgram, it's inheriting routines from the base class in the unittest module that do introspection to find all test fixtures.
BTW the position is in Cape Town?