I had this request once from Microsoft. They supplied the question/spec to code to, and wanted to see if I could code something, I suppose. Unfortunately before the interview I realized I wasn't a good fit and backed out, so I never heard any feedback on the code I'd submitted.

IMO, don't stress and do what you normally do. The last thing you want to do is try to change styles or jump into some modules you're not at all familiar with, just because you think it'll impress someone.

One approach might be if you Imagined yourself teaching a perl course, for example, what sorts of examples would you use to demonstrate the features of the language that most appeal to you.

Also even if you can't take the code home, you should be able to capture a feel for what you've done. Then imagine yourself teaching those courses to a vendor. YOu wouldn't show them everyline of code, perhaps, but you'd probably show them the tricky parts. Write those into small subprograms that demonstrate the same principles.

Good luck!

PS> Code samples can be highly subjective to the opinions of the folks that work there. Don't take it personally if someone doesn't like your style. I've heard people criticize perl programmers, for example, for being "too clever" and at the same time, you get criticized if you're not "Perly" enough. So Again, don't go about attempting to become something you're not.


In reply to Re: About 'Show me your Code' by raybies
in thread About 'Show me your Code' by MishaMoose

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.