Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Slightly OT, but I've been interviewing long distance recently, and I used the following 3 questions tasks (ffs). Bear in mind these are for web application development, so front end is important too.

  1. create a calculator using HTML/Javascript, that processes the entered equation through a Perl CGI script and displays the result. This tests JS usage and, the biggie, whether they untaint user input in the CGI before 'eval'ing. Also, use of CGI/Mason/Template Toolkit is examined (and mentioned in the original question).
  2. Compare two arrays and show the elements that exist in both (I actually screwed up in my live question, but the answers were still informative). This is a great question because it shows how someone thinks. Lower level devs use nested loops (I did, when this was thrown at me a few years ago). Smart people use hash slices. Really smart people use 'undef'd hash slices to save memory (or, rather, time - ty runrig).
  3. Search google for a particular search term and present the first ten results in a web page. Another good one to see how someone thinks. LWP is quick and dirty, the Google SOAP Perl API is elegant, yet non-intuitive if you haven't heard of it.

Maybe we should start a quiz section where these sorts of questions can be dumped? I'm sure there are many more that push you to think laterally - or use aspects of Perl that involve some interesting thinking.

cLive ;-)


In reply to Re: Homework question list by cLive ;-)
in thread Homework question list by displeaser

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-19 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found