News for hackers. Stuff that matters.
Re:True hacker resume: CV as Python unit test by DanielStraight on Thursday July 15, 2010 @04:15PM (#1519010)
Maybe I'm being a little picky, but I don't find this very compelling. There are plenty of spelling and consistency errors. "Colaboration" is misspelled. The names "can_use_editor" and "is_acceptable_workstation" are inconsistent. It would be better to use "is_acceptable_editor" (or "can_use_workstation") for consistency. Actually, since those are calls on a company object, a name like, "allows_editor" would make a lot more sense. Coding style doesn't follow Python conventions (spaces around equals sign and after commas). The test "DynamicLanguagesAreInUse" doesn't clearly test what it says it's going to test. Also, the line numbers and lines don't match up in my browser.
Re:True hacker resume: CV as Python unit test by digitallogic on Thursday July 15, 2010 @06:07PM (#1519414)
Yes, this is quite embarrassing, especially the typos. I sent this to my buddy without expressing that it was still a work in progress, and he overzealously posted it here.

I've noticed the line number issue with certain browsers myself. I haven't determined if it is the css/html from pygments (the library I used to generate the html) or something I'm doing. Needless to say since I am still trying to flush out the idea, matching line numbers was low on my list, but if you can give me your browser/os I can see if it can test it out and possibly drop a patch to pygments.

Re:True hacker resume: CV as Python unit test by DanielStraight on Friday July 16, 2010 @08:51AM (#1520957)
I can appreciate that. I think we've all accidentally made something public at least once. I'm running Firefox 3.6.6 on Windows XP.
Re:True hacker resume: CV as Python unit test by unshift on Thursday July 15, 2010 @04:26PM (#1519040)
not to mention his assertTrue's in testSystemsUpAndRunning are completely invalid. never in my life would i hire this person.

this should be a lesson: if you're going to do a "hacker" resume, it should be perfect and actually parse/compile and run. otherwise it looks like some lame gag.

and is putting things in "code" ever cute, clever, or funny? i submit it is not.

Re:True hacker resume: CV as Python unit test by gaius on Thursday July 15, 2010 @05:38PM (#1519306)
And he should stick to one font in his real CV, it looks very amateur.
Re:True hacker resume: CV as Python unit test by enjo on Thursday July 15, 2010 @04:45PM (#1519118)
My big issue is that he comes across as an ideologue... I want flexibility from developers, not someone who makes very specific demands of our methodology.
Re:True hacker resume: CV as Python unit test by masklinn on Thursday July 15, 2010 @05:15PM (#1519226)
Wait, he comes across as an ideologue for asking for an internal bug tracker and a source control system? Or that code be reviewed?

Wow...

Re:True hacker resume: CV as Python unit test by jarek on Thursday July 15, 2010 @08:46PM (#1519800)
"Windows? shudders", on the other hand...
Re:True hacker resume: CV as Python unit test by digitallogic on Thursday July 15, 2010 @06:13PM (#1519431)
Do you think you could elaborate? Coming off as inflexible or dictatorial was something I actually worried about.

The point I am trying to make is that there are certain minimum requirements I have of any employer, just as almost every job ad I've seen has a list of expected minimum skills. Would you work on software for a company that doesn't use version control? Being on HN is enough to convince me that you're smart enough not to.

Re:True hacker resume: CV as Python unit test by astrec on Thursday July 15, 2010 @08:37PM (#1519780)
On the other hand I wouldn't hire anyone who wasn't inflexible about having source control, defect tracking, CI, or code reviews.

What is important to me, however, is that you demonstrate a little pragmatism about us using Mercurial over Git, Hudson over CC, Jira over Bugzilla, <insert tool we use> vs. <your favourite tool this week>.

Although it would reflect better on you if your unit test were valid given an appropriate companies module, I really don't think you should be to worried.

Re:True hacker resume: CV as Python unit test by studer on Thursday July 15, 2010 @05:16PM (#1519227)
> this should be a lesson: if you're going to do a "hacker" resume, it should be perfect and actually parse/compile and run.

It does parse/compile and run. Try it.

Re:True hacker resume: CV as Python unit test by generalk on Thursday July 15, 2010 @05:23PM (#1519259)

  Traceback (most recent call last):
    File "/tmp/resume.py", line 2, in <module>
      from companies import YourCompany
  ImportError: No module named companies
Am I missing something?
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.)

Re:True hacker resume: CV as Python unit test by famousactress on Thursday July 15, 2010 @05:33PM (#1519288)
Yeah, in general I find the code not all that readable, despite that being the point.. This is a pretty bold, maybe even snarky, bit to pull.. and if you're going to pull it off it better be Beautiful Code.
Re:True hacker resume: CV as Python unit test by ErrantX on Thursday July 15, 2010 @05:46PM (#1519331)
The linked resume is even worse. That would be straight in the rejected pile, sadly.
Re:True hacker resume: CV as Python unit test by joeld42 on Thursday July 15, 2010 @04:35PM (#1519075)
This isn't a resume or CV, it's a list of requirements for a potential employer. The actual 'resume' part was poorly formatted and overlong.

It would be much better if the resume was in code, that would be a cute gimmick. (i.e. self.knowsLanguages( ['Python', 'C++', 'Ruby'] ) )

However, tricks like this are great if other programmers are reading it, but can confuse HR people and easily get the resume tossed out.

Re:True hacker resume: CV as Python unit test by pbjorklund on Thursday July 15, 2010 @09:19PM (#1519864)
Totally agree. Having seen a fair share of CV's that would put a flair to it, but also make the HR lady who's screening the CV's at BigCo go huh?.

Im all for redoing the whole CV as commenter suggests here and targeting the right people with it whilst making the "real" CV shorter and easier to read.

Point here is that both CV's should stand out from the stack, but in different ways based on the recipient

Re:True hacker resume: CV as Python unit test by mccutchen on Thursday July 15, 2010 @04:26PM (#1519041)
Shouldn't the

  company = YourCompany()
boilerplate at the top of each test method be factored out into

  def setUp():
      self.company = YourCompany()
Re:True hacker resume: CV as Python unit test by diN0bot on Thursday July 15, 2010 @04:33PM (#1519068)
mos def! it's a small thing, but maybe it says something about what he thinks about and values. seems like abstraction and code maintability and extensibility are not as high on the list as testing. tests are super important, of course, but anyway can write tests. quality, IMHO and in all code including tests, comes from good design.
Re:True hacker resume: CV as Python unit test by cldwalker on Thursday July 15, 2010 @05:22PM (#1519248)
In a similar vein, here's my executable cover letter in ruby, http://tagaholic.me/resume.html. Running it opens my resume in your browser (on a Mac). Got the idea from http://macournoyer.com/blog/2010/02/23/how-to-apply-to-a-job...
Re:True hacker resume: CV as Python unit test by isamuel on Thursday July 15, 2010 @06:42PM (#1519514)
Clever. I love how the code is itself prose, but is also executable and brings up the resume when you run it. Nice work.
Re:True hacker resume: CV as Python unit test by ErrantX on Thursday July 15, 2010 @05:49PM (#1519343)
I wish more people sent me resumes like yours. Good work.
Re:True hacker resume: CV as Python unit test by iron_ball on Thursday July 15, 2010 @04:52PM (#1519145)
Ugh, he uses Yoda conditions. If two, the value is less than, Jedi you will become.
Re:True hacker resume: CV as Python unit test by subwindow on Thursday July 15, 2010 @05:10PM (#1519207)
Oh, I didn't realize that had a name! My boss does that, and it is incredibly irritating.
Re:True hacker resume: CV as Python unit test by acangiano on Thursday July 15, 2010 @05:52PM (#1519355)
Not in this case, but Yoda conditions can be useful. The most common case is preventing accidental assignment when you are trying to check for the equality of values.

Say that you mean to do:

    if (something == 2)
If you forget an equal sign, the resulting code can lead to subtile bugs:

    if (something = 2) // Not what we meant
If you are using a Yoda condition and forget an equal sign, you'll get an error right away (so that you can correct it):

    if (2 = something) // Error
There are other use cases, particularly related to nil values, but this should show you the gist of it.
Re:True hacker resume: CV as Python unit test by masklinn on Thursday July 15, 2010 @06:01PM (#1519394)
> Not in this case, but Yoda conditions can be useful.

Not in Python. Assignments as anything but stand-alone (potentially chained) statements are syntax errors.

The parser will not let you write

    if something = 2:
in the first place.
Re:True hacker resume: CV as Python unit test by acangiano on Thursday July 15, 2010 @06:13PM (#1519435)
That's why I said "not in this case". There are languages affected by this though (typically C-based ones). Ideally, their compiler will give you a warning about it, but that's not always the case.
Re:True hacker resume: CV as Python unit test by moe on Thursday July 15, 2010 @05:55PM (#1519366)
May be irritating for some but good practice regardless.

Putting the constant left in a conditional means you will never miss an accidental = instead of ==.

Re:True hacker resume: CV as Python unit test by masklinn on Thursday July 15, 2010 @06:00PM (#1519386)
> Putting the constant left in a conditional means you will never miss an accidental = instead of ==.

That's only useful for dumb languages

    >>> a = 5
    >>> if a = 3: print 'ok'; else: print 'nok'
      File "<stdin>", line 1
        if a = 3: print 'ok'; else: print 'nok'
             ^
    SyntaxError: invalid syntax
Python simply does not allow assignments in conditional contexts.
Re:True hacker resume: CV as Python unit test by moe on Thursday July 15, 2010 @06:12PM (#1519427)
Dumb is a strong word, young padawan.

The difference between theory and practice is smaller in theory than in practice.

Re:True hacker resume: CV as Python unit test by masklinn on Friday July 16, 2010 @01:49AM (#1520404)
> Dumb is a strong word, young padawan.

I carefully weighted my words, and I rest my case.

Re:True hacker resume: CV as Python unit test by 146 on Thursday July 15, 2010 @09:12PM (#1519850)
> That's only useful for dumb languages

The compilers/interpreters I know that don't do this are PHP and Perl (C/C++ will do it if you use -Wall, which you should be using anyway).

So yeah, you're pretty much right. /snark

Re:True hacker resume: CV as Python unit test by chromatic on Thursday July 15, 2010 @10:40PM (#1520029)
Perl does indeed warn about the use of = instead of == in a conditional.
Re:True hacker resume: CV as Python unit test by 146 on Friday July 16, 2010 @01:57PM (#1521894)
You're right; I didn't know about the -w setting. I guess that just leaves PHP.
Re:True hacker resume: CV as Python unit test by subwindow on Friday July 16, 2010 @11:13AM (#1521368)
That's like wearing a helmet while walking down the street because you might accidentally fall and hit your head.

Don't be an idiot in the first place and you won't have to do idiotic things to prevent damage from your idiocy.

Re:True hacker resume: CV as Python unit test by moe on Friday July 16, 2010 @12:29PM (#1521604)

    Good judgement is the result of experience.
    Experience is the result of bad judgement.  <-- You are here
Re:True hacker resume: CV as Python unit test by leftnode on Thursday July 15, 2010 @05:51PM (#1519352)
Until you're system is crippled by a bug as a result of not using them.
Re:True hacker resume: CV as Python unit test by masklinn on Thursday July 15, 2010 @06:02PM (#1519396)
This is something that cannot happen in Python. Yoda conditions are entirely pointless in that language.
Re:True hacker resume: CV as Python unit test by moe on Thursday July 15, 2010 @06:19PM (#1519450)
A good programmer looks both ways before crossing a one-way street.
Re:True hacker resume: CV as Python unit test by 146 on Thursday July 15, 2010 @09:11PM (#1519846)
A better programmer uses -Wall and lets the compiler check for him.
Re:True hacker resume: CV as Python unit test by moe on Friday July 16, 2010 @02:22AM (#1520458)
Confidence, n.: The feeling you have before you understand the situation
Re:True hacker resume: CV as Python unit test by Timothee on Thursday July 15, 2010 @05:19PM (#1519238)
I didn't know it had a name either. Because of that I read the line wrong the first time. (even though I knew what to expect…)
Re:True hacker resume: CV as Python unit test by joshklein on Thursday July 15, 2010 @06:13PM (#1519432)
OP is right that this is a true hacker resume, in the sense that it's both technically interesting and ignorant of the social realities of applying for a job.

Also: the downloadable CV is more incomprehensible than the code. Bullets, people. Good employers are looking at hundreds of resumes for good jobs. If that one landed on their pile, they would not read it.

Re:True hacker resume: CV as Python unit test by butterfi on Thursday July 15, 2010 @06:26PM (#1519475)
poor guy... having a little fun with his CV only to get mauled by the HN crowd. :-)

On a more serious note, not sure this resume would have made it past our HR person, who is not a programmer and wouldn't have understood this at all.

Re:True hacker resume: CV as Python unit test by j_baker on Thursday July 15, 2010 @04:40PM (#1519097)
I actually used to write my resume in Python. It got me in the door easily, but I think I ended up giving the impression that I was a one-trick pony who could only do Python. I have a "regular" resume now.
Re:True hacker resume: CV as Python unit test by pgbovine on Thursday July 15, 2010 @05:01PM (#1519173)
perhaps you could create a polyglot resume:

http://en.wikipedia.org/wiki/Polyglot_%28computing%29

Re:True hacker resume: CV as Python unit test by bockris on Thursday July 15, 2010 @03:41PM (#1518904)
It's cute but it's probably not going to result in a job.
Re:True hacker resume: CV as Python unit test by agconway on Thursday July 15, 2010 @04:10PM (#1518992)
Well, as is pointed out, it will only result in a job if all the tests pass
Re:True hacker resume: CV as Python unit test by abstractbill on Thursday July 15, 2010 @04:53PM (#1519148)
The tests passing is apparently necessary, but by no means sufficient.
Re:True hacker resume: CV as Python unit test by doki_pen on Thursday July 15, 2010 @04:39PM (#1519091)
It's to bad that there is a glaring typo in the first sentence. If you are reading this, fix the spelling!

Or maybe it's a clever filter for people who focus on the wrong thing. ;-)

Re:True hacker resume: CV as Python unit test by pgbovine on Thursday July 15, 2010 @04:47PM (#1519124)
It's to bad that there is a glaring typo in the first sentence.

If you are reading this, fix the spelling!

(sorry, cheap shot!)

Re:True hacker resume: CV as Python unit test by doki_pen on Thursday July 15, 2010 @09:58PM (#1519940)
I have horrible grammar, so I was trying to help out my brethren! I hate that word. Its biggest problem is that it's a conjunction without an apostrophe. ;-)
Re:True hacker resume: CV as Python unit test by acangiano on Thursday July 15, 2010 @05:59PM (#1519382)
Re:True hacker resume: CV as Python unit test by gabrielroth on Thursday July 15, 2010 @05:49PM (#1519347)
Recursion!
Re:True hacker resume: CV as Python unit test by isamuel on Thursday July 15, 2010 @06:39PM (#1519510)
Recursion!
Re:True hacker resume: CV as Python unit test by run4yourlives on Thursday July 15, 2010 @05:12PM (#1519214)
It's rather presumptuous and obnoxious though isn't it? A CV is a listing of your accomplishments and achievement, really. It's your platform to sell yourself to others.

This page comes of to me more as "Are you good enough for me"? which to be very honest sets the wrong tone to me when I wear my employer hat.

I'm not suggesting that shouldn't be a part of the process, but as an opening line it's a little off-putting even if we do meet the standard.

Re:True hacker resume: CV as Python unit test by Shorel on Thursday July 15, 2010 @05:17PM (#1519229)
He also has a very standard resume here:

http://dibon.homelinux.org/~mark/test/MarkRoddyResume.pdf

Re:True hacker resume: CV as Python unit test by city41 on Thursday July 15, 2010 @05:35PM (#1519294)
Ugh. I hate to criticize this guy some more, but that's one wordy resume. In my experience it'll at best get a quick glance. To the point resumes are much more effective.
Re:True hacker resume: CV as Python unit test by zackattack on Thursday July 15, 2010 @09:23PM (#1519871)
I recommend http://www.jobspice.com - a YCombinator company.
Re:True hacker resume: CV as Python unit test by afhof on Thursday July 15, 2010 @04:57PM (#1519158)
I would be more impressed by a CV submitted in Brainfuck.
Re:True hacker resume: CV as Python unit test by cag_ii on Thursday July 15, 2010 @05:12PM (#1519213)
Clearly, Whitespace* would be a better choice.

* http://en.wikipedia.org/wiki/Whitespace_%28programming_langu...

Re:True hacker resume: CV as Python unit test by arthurdent on Thursday July 15, 2010 @05:13PM (#1519217)
non PEP8 for mixedCase instead of CapWords for classes.
Re:True hacker resume: CV as Python unit test by j_baker on Thursday July 15, 2010 @05:18PM (#1519237)
The class is CapWords. Of course the method names aren't PEP 8 compliant, but neither are the method names in the built in unittest library.
Re:True hacker resume: CV as Python unit test by clistctrl on Thursday July 15, 2010 @04:47PM (#1519126)
Do programmers need gimmicks? Last time I looked for a job, it took 1 week. Certainly I'm no one special either.
Re:True hacker resume: CV as Python unit test by ndimopoulos on Thursday July 15, 2010 @04:32PM (#1519064)
Despite the spelling errors I really think that this is a very creative idea and would definitely result in a job.

Creativity is often the reason one is hired.

I liked it!