4 ms·
I didn't know companies actually wanted you to copy-paste: they should consider your proudest code is closed to them, especially if you've worked at other place
by Jach 16y ago
I didn't know companies actually wanted you to copy-paste: they should consider your proudest code is closed to them, especially if you've worked at other places before.
My understanding was that such questions were more correctly phrased as "Tell us about a project you've worked on that you're proud of" (and I've had something like this a couple of times), in which case you briefly mention some details of a project that "spans an MVC architecture and three different platforms" or something else. If they want some specific code, you tell them you developed it at another company and cannot give any source, but you can describe the overall function of the software. (If it's open source, say you can link them to a repo.)
They probably want you to tell a story about the code and reveal loads of information about yourself, and it may help to do so, but you should only do that when you really know what type of story the hiring person wants to hear. I'd keep it strictly to the purpose of the software, and even something as innocent as "I made an abstraction that replaced 700 lines of Java with 40" can be taken many ways: "He's awesome, we want people who can make abstractions, let's hire him!"; "He coded 700 lines and didn't see the abstraction until then? He must suck."; "He's not afraid to make fairly large changes to teammates' code?[good or bad]"; "He thinks lines of code are awesome metrics?"; "Ew Java."
If they really, really want code, and it has to be a simple function or something, you could throw in a simple Scheme implementation of the map function and go off about map/reduce.
- relix 16y agoI've had several run-ins with literal "paste here some code you're proud of" textareas. As you said, when they're asking to describe something you're proud of, like how Y-Combinator does it, it's a lot easier and relaxed. The several ways of interpreting such an innocent lines are revealing, thanks for the heads-up!
- dpritchett 16y agoI always figured it was best to paste a URL to some code repo.