Jump to menu and information about this site.

Friday·10·February·2006

A question one might ask at a technical interview:

Explain how high volume and a load-balanced environment can affect one’s coding approach.

My answer would be

  1. one might resort to caching of data (perhaps with Memcached, perhaps with Memoized).
  2. one might cache database handles (with Apache::DBI) or try to pool them
  3. one might create static content as much as possible and certainly be sure to have Apache serve all parts of a page which are static such as images.
  4. one might replicate the database
The actual questions:
  1. Given a text file with a full name on each line, print the 10 most common last names in the file… also do this in SQL.
  2. what does use strict do
  3. what variable controls inheritance in Perl
  4. a sub that modifies a hashref - trick question: they made a copy of the hashref in the modifying sub
  5. parse a URL
  6. simple INNER JOIN
  7. composite indexing question
  8. how to check if a slave is up
  9. hOW TO to see which processes heavy
  10. how to see disk activity
  11. How to see disk usage?
  12. how to check if apache is up?
  13. Design a couple of pages for a yearbook website

Monday·30·January·2006

MySQL in-depth: Architecture Type Questions

  1. What is the lost update problem and how does MySQL solve it?
  2. What is a deadlock? Does it happen with a SQL approach to the lost update problem?
  3. How can you solve it without logical units of work?
  4. Discuss relation normalization and denormalization
  5. What is a primary key and for InnoDB tables discuss how the physical ordering of data relates to the primary key

Friday·20·January·2006

Garth’s test

sort

Sort these: ( [2005,6],[2005,8],[2004,2],[2002,12] ) (note: a good second question might be: what sort algorithm does Perl use and what alternatives are there)

iterator

write a sub that returns a closure, that when invoked, returns the successive elements of a passed-in array.

Artur’s test

The monk climbs the mountain from 6am to 6pm. And the next day while he is descending from 6am to 6pm, a priest climbs. The priest gets to the top at 6pm, which is the same time that the monk gets to the bottom.

Is there a time that they are ever at the same height?

I solved this equationally at shopzilla somehow. I solved it graphically at shopzilla. The next day, I realized, that the picture of someone going down the other side was a red herring: if I had only reflected the downward trip on the upward trip, I would have noticed that they would cross paths!

My second technical test at IMDB

  1. If a SELECT is running too slowly how would you debug it?
  2. why not index a bunch of individual fields in a database
  3. Class::DBI iterators - how are they implemented? Are they efficient?
  4. how does CDBI differ from other DBIx::*
  5. least favorite Perl feature
  6. what are you going to learn next about Perl?

Perl Software Design Blog

About...

This is the weblog of the Perl Software Design Group.

Who We Are

Terrence Brannon
Matthew Sisk
Brock Wilcox
Gary Aston-Jones


Calendar

← 2025 →
Months
Jun
Jul Aug Sep Oct Nov Dec
← June →
Mo Tu We Th Fr Sa Su
           
26 27 28 29
30            

Search


Advanced Search


Categories

Blogroll

People I know personally




Blogging Software Blogs