Showing posts with label management. Show all posts
Showing posts with label management. Show all posts

Sunday, June 21, 2015

Employee Retention: The N = large vs N = 1 Problem

During a recent conversation a great analogy popped into my head on employee retention at companies that I thought I'd share.  It of course relates to my love of baseball. 

The Baseball N = Large Problem

The N = Large problem is quite basic.  Take data from a very large sample and use that data to determine some type of result (such as success/failure) with a new case not from the sample.  For those familiar with machine learning, this should sound very familiar.

The N = Large problem is widely used in professional sports.  In baseball, it is commonly used with the drafting/signing of amateur talent.  After analyzing the height, weight, speed, velocity of fastball, accuracy of throws, speed of swing, walk rate, strikeout rate, etc. of a player, teams can determine lots of things:


  • the probability of a player making it in the major leagues
  • the probability they will injure their arm throwing
  • the probability their performance will justify a $5 million dollar signing bonus
  • ... a $2 million dollar signing bonus
  • ... a $1 million dollar signing bonus

Teams are able to do this based on the large amount of historical data on players that have played in the league before and all the players that have played in the minor leagues and college.

The Baseball N = 1 Problem

In professional sports, especially baseball, each individual player's ability to succeed in the sport is never 100%.  The vast majority simply cannot jump from being an amateur to pro [1].  While the historical data can give you good guidance for the probability a player can succeed, individual coaching, mental training, physical training, and mentoring ultimately decide the level of success a player has.  Even for the most talented individuals, this can be the difference between a player making it to the big leagues or not.  This training is unique to each specific player.  Perhaps a player's swing is bad, or they need to get stronger to hit for more power, or their footwork needs to be better, or they need to learn how to throw a changeup, etc. 

As an example, in an article from ESPN they highlight minor league player Alex Yarbrough.  He is a reasonably talented player coming out of college.  However his throwing mechanics are so bad, he will never make it to the major leagues as a second basemen.  So the Angels must work on those mechanics to turn him into a major league capable second basemen.

This is the N = 1 problem.  Almost every amateur player has weaknesses that prevent them from playing at the major league level.  Each player's weaknesses are unique to them.  The work needed to fix them is unique to each player.  It requires special attention from coaches and trainers to deal with these weaknesses and help each player improve.

Employee Retention: The N = large vs N = 1 problem

In my opinion, there are two employee retention problems.  However, only one is often discussed.

The first retention problem is the N = large problem, retention programs to help all employees.  This is the most common type of employee retention issue that is discussed and the one most companies try to improve on.  It's easier to do and effects the most employees.  You can gather data about employees, conduct surveys, and determine best solutions for the employee population.  In all honesty, they are probably also the best bang for the buck retention ideas.  What are N = large retention solutions?

  • Lets give the employees a recreation room
  • Lets make ice cream parties for the employees
  • Lets add additional educational opportunities
  • Lets do an employee hackathon
  • Lets try to ...

etc.

However, there is an additional N = 1 problem to retention.  What is it?  It's concentrating on the needs that each individual employee has.  Every employee's pay, career goals, personal value in the work their doing, personal frustrations, etc. are all different.  And that must be managed employee by employee.  It's unlikely the efforts to solve retention in the N = large problem will apply here.

IMO, this is the retention problem that is typically not discussed or discussed very little.  After all, it's hard.  It requires managers and mentors (i.e. coaches) to look at each employee individually and determine what would be best to do for them.  That's really hard.  However, it may be the problem that needs to be discussed far more often.



[1] - According to Wikipedia, the last three players to do this were Mike Leake in 2010, Xavier Nady in 2000, and Jim Abott in 1989.  It's very rare.  Only 3 players in the last 26 years out of about 1000 players drafted a year.

Sunday, June 14, 2015

The Best Interview Answer I Ever Heard

There's been much written online about the best way to interview, the best candidates to look for, the qualities of top engineering talent, etc.

There is one singular quality I look for in any candidate, regardless if they are a system administrator, software engineer, or any technical position.  It's the ability to research and learn.

I was interviewing a system administration candidate for another group and the classic question I ask is, "When moving from administrating a few machines to 1000s of machines, what difficulties do you imagine you'll come upon?"

This particular candidate had actually setup and administered a small 16ish node cluster before and said something along the following:

When I setup this cluster, I realized FOO was running really slow.  I went online to see how other people solved the problem.  I found someone else who used pdsh to make FOO run better.  So I downloaded pdsh, set it up and FOO was working better.

I can't even remember what FOO was, but it was really irrelevant.  The candidate:

A) Realized something was running poorly or sub-optimal

B) Researched online a mechanism that would be better

C) Set it up/implemented the solution

D) The solution was deemed much better than the prior situation

Because my group had developed pdsh that was sort of bonus points for the candidate, but I absolutely loved this candidate's answer.  It was so simple and basic, yet illustrates exactly the quality that you want in an engineer.  Going online to research, learn, figure new things out, and find better solutions.  It's actually a quality that is often difficult to find in many candidates.

Wednesday, April 1, 2015

The Innovator's Dilemma ~ Employee Retention

Not so long ago I read The Innovator's Dilemma by Clayton M. Christensen.  It's a classic book on engineering and tech management.

The book basically discusses the dilemma that many tech and engineering companies go through.  Do you continue to work on your super profitable money maker when cheaper & less profitable challengers emerge?  Or should you move resources into the cheaper & less profitable space in case it becomes a hit?  If you move resources to the cheaper challenger, you could lose revenue/profit on your present big money maker or lose market share.  If the challenger becomes very successful and you're too late to the show, your company may lose out and go out of business.

The most recent tech example I could think of was Sun Microsystems.  In the 1990s Solaris was a giant and huge money maker.  When Linux emerged, it was a far cheaper and less profitable solution (and arguably a less feature rich and less useful solution).  So Sun had little incentive to invest resources into Linux.  Slowly but surely, Linux got better, took a hold of the market, began stealing market share, and Solaris profits went down.  Well ... the end of the story is well known.  At some point, Solaris wasn't really profitable and it was too late for Sun to catch up.

This is a dilemma that has tested tech and engineering management for decades.  The book highlights that many of the companies lose this battle due to internal management priorities.  It is natural that managers will desire to allocate resources (money, people, capital, etc.) towards their most profitable use.  When a "disruptive technology" emerges, that is often cheaper, less profitable, and less feature rich, it initially has much less market share and a much lower profit margin.  Managers are not likely to move resources in that direction ... until it is too late.

In the book, the authors say the corporate strategy solution to the Innovator's Dilemma is to create separate organizations to deal with the challenger technology.  May it be through an acquisition or a spin-out company or possibly investing in a startup competitor, let a separate organization deal with it and ensure that your primary money making division is left alone.   By creating a separate management hierarchy with different goals and different profit models and different everything, that separate entity can succeed or fail on its own.  If mixed into the current organization, it's simply too difficult to manage.  Managers will always want to prioritize resources back to the primary profit maker and new technology just isn't given the attention that's needed.

As I was reading the book, an analogy to this problem emerged in my head.  It related to employee retention at companies.  Employee retention in the tech arena is quite tough, as employees learn new skills or want to work on new projects or just want to move their career in a new direction.  With an ever changing technological landscape, it's natural that employees want to move on to new things to keep up with emerging technologies.

Their managers have to make a tough choice.

If you really need the employee to work on the project they're an expert in b/c it's super profitable or high priority, the employee may eventually decide the best way to try something new or different is to leave the company.

If you move the employee to work on a new project in the company to try and retain them, the current project where their skills/experience are needed suffers.

It's sort of like the Innovator's Dilemma.  Managers will naturally be biased to use their resources (in this case it's people) for their most profitable/important projects and/or goals.  Regardless of an employee's personal goals or interests, managers have their own goals to meet as well.  This action isn't malicious in anyway ... it's just natural.  As much as any manager wants to help an employee with their career goals, there will be natural (likely subconscious) bias involved.

So what's the solution?   How can we apply the Innovator's Dilemma solution to employee retention?  A separate organization or spin-out company certainly doesn't apply here.

However, a separated out internal transfer process is something that could work.

I remember not so long ago reading that Facebook  had an internal "internship" program for their full time employees.  Effectively, any full time employee could get a several month "internship" with another group if the group had an opening.

It was a healthy balance for Facebook's needs and helped with employee needs for retention.  The new group gets an engineer working right away instead of dealing with interviews, the engineer gets to see if they'll like it, the new group gets to see if the engineer works out, and there should be a backfill "internship" ready for the old group that just lost an engineer.  Facebook ends up retaining more employees than they would otherwise.

How did Facebook solve this with the "Innovator's Dilemma" solution?  To some extent they tried to remove management from the internal transfer process.  Because it's an "internship", their current management shouldn't be concerned that they are losing a person.  At worst they lose them for a few months.  In the time they lose them, another backfill internship may have trained up a replacement anyways.

Even for the Facebook example above, there are likely internal Facebook details that the article did not mention.  I don't want to suggest that their system is perfect.  However, there are steps that probably any organization can take to try and make things better and try to remove management from the process.  The idea that immediately came to mind is that every company can have a internal job posting site for potential internal transfers.  This is pretty common, but what this internal job posting site could do is list the contact information for the hiring manager.  Any employee with interest should be able to contact and talk to that hiring manager directly about the position and potential interview.  Any contact through their current management chain should just be skipped.



Saturday, March 21, 2015

Interviewing 1-on-1 or in Pairs

When I was interviewing for a new job sometime ago, a big style difference I noticed was that some companies interview candidates in pairs while others interview 1-on-1.  Over my lifetime, I think about 1/3rd of companies interview in pairs (or more) while others do 1-on-1 interviews.  As I was thinking about it, I think the pair interviewing is much better.  Here are some of the reasons.

Have More People Meet the Candidate

Its at the interest of both the company and the candidate to meet more people.  If the candidate only interviews with 3-4 people, it may be hard for the interviewee to get a gauge on the company and culture.  If you double that to 6-8 people, they can get a better feeling.  For the company, it may be best to do this to get more opinions on the candidate.  Even if they aren't people the candidate will be working with, it's still good to get more opinions from people around the company.

For example, I know of a group that regularly sends their admin/secretary to interview candidates too.  On atleast one occasion a candidate treated the admin/secretary with disrespect and blew off her questions.  I know of a similar situation when a young engineer was treated disrespectfully when interviewing an older engineer.  These probably weren't candidates you wanted to hire, so having an non-traditional team member interview the candidate ended up being a great idea.

Develop A Consistent Interview Style

There are many different styles in interviewing.  Some like to ask one big design question, while some like to ask tons of tiny quick questions.  Some like to jump in all the time in the discussion, while some like to just let the candidate do most of the talking.  Some like to be more aggressive while interviewing (a griller), while some are more passive (let the questions come).

None of the above is "bad" or "good", it's just different styles.  However, I think most would agree it's not "good" if all the interviewers are that divergent in style.  At the minimum, a candidate might wonder, "What exactly is the culture/style of this place?"  By pairing up the interviewers with other group members, a more consistent style can be developed over time.  This is somewhat related to ...

Help Train Younger Interviewers

Following the above, it's also a good way to train younger team members on good interview techniques or style.

Develop A Consistent Interview Judgement

I once interviewed at a company that did 1-on-1 interviews and one person who interviewed me started <b>that week</b>.  Now, I'm sure the interviewer was a good engineer and a good person.  However, he had certainly not developed a rapport with the manager and team members yet.  How much will you really value this person's opinion after the interview?  If they say, "The candidate is awful!" or "The candidate is awesome!", how much will you believe them?  It might be wise to pair up the interviewer with someone who has been with the company longer.

Give Consistent Information

As a follow up to the above, sometimes an interviewer doesn't know how to answer your questions about a certain topic.  Especially when they are really really new.  In a younger/startup kind of company, perhaps some of this is cannot be avoided.  However, for a larger/more established firm, the company perhaps does not want this to occur.  Interviewing in pairs can avoid some of this.

Saturday, March 8, 2014

The N=1 Problem

Recently read this article from ESPN about how the Angels are trying to rebuild their minor league system.

http://m.espn.go.com/mlb/story?storyId=10470778&src=desktop

One of the subtle reasons I love reading articles like this is that at the core, major league baseball teams are no different than other national or multi-national corporations.  All the same management, mentoring, training, recruiting, and retainment issues all organizations face are the same in baseball as everywhere.  It's just that when spoken about in a baseball context, the article is way more interesting than some droll tale of organizational synergy.
 
There's two chunks of the article I love the best:

Most of the lessons of the sabermetric revolution are based on what's called large-N analysis: looking at all the players who ever played and finding, in millions of data points, answers about player tendencies and optimal strategy, and meta-answers about the reliability of statistics. But developing a prospect is an N=1 problem: Each player's combination of skills, genes, experience, health, neurology, psychology, size and style makes him unlike any other player.
then later


How a coach teaches pitchers to back up a base isn't, ultimately, all that important. What's important is that no coach has to spend more than two minutes of his life thinking about it. That frees him to focus on the N=1 problems
In other words, if a coach has to waste his time dealing with "stupid stuff", then the coach can't concentrate on what's important, namely teaching the player what they need to be taught to reach the next level.

I can't help but think about this within the context of a lot of major companies.  Every employee will have different opinions on what are "annoyances" or "interruptions".  It's likely impossible to remove all of them for every employee, but the hope is that most organizations limit it to a N=2 or N=3 problem for most employees.  Unfortunately, I suspect many employees are dealing with N=9 or N=11 problems.



Monday, January 20, 2014

High performance through strange correlations

Awhile back I learned of a really interesting statistic in Malcolm Gladwell's book Outliers.

In some standardized tests, test administrators like to ask students survey questions before the test so they can try and correlate test performance to other social factors.  These questions are pretty normal, things about your social life, friends, and family.  However, this survey is so long and tedious that many students just give up and don't even complete the survey before taking the test.

What several researchers found was that there is a strong correlation between percent of the survey completed and performance on the test.  Students that complete a higher percentage of the survey perform better on the test.  Note that it's not how they answered the questions on the survey, simply the fact that bothered to complete to the survey.

The suggestion is that patience, diligence, and work ethic are actually more important than smarts.  If you can stomach through this tedious survey, you've probably stomached through a lot of homework assignments to be able to learn the material well.

Not so long ago, I was on a committee to review a contract for a procurement.  While reviewing the bids, I noticed that there were bids that were horrifically bad.  At the same time I noticed the bad bids were much shorter in length than the better bids.  In fact, by the time the committee was done with the selection process, the ranked order of the bids was strongly correlated to the thickness of the printed bids.  My recollection is that if only two bids had been flipped in their ranking, the correlation between thickness of printed bids & rank would have been perfect.

It got me thinking, the correlation was similar to the correlation with the standardized tests.  The companies that put in way more effort and time into their bids, probably cared about their bid a lot more.  At the end of the day, the fact that they cared about the bid a lot more, probably meant they wanted to win the contract a lot more, and meant they would care about fulfilling the contract a lot more.



Sunday, November 6, 2011

3 Nights in August

After going through the thrilling St. Louis Cardinals World Series ride and sadly seeing Tony Larussa retire, I was compelled to read this book. I needed something to feed my Cardinals high. I remember hearing about the book after the Cardinals won the World Series in 2006, so it's sort of fitting I read it now.

WARNING: THERE WILL BE SPOILERS IN THE BOOK HERE

For anyone who loves Moneyball, it's a great follow up. Tony Larussa is famed for his deep use of statistics for managing situations and creating matchups. However, unlike (as Buzz Bissinger calls them) Moneyballistas, Larussa feels that the statistics can only take you so far. He believes that there is a deeper component beyond it that can't be measured, things like confidence, focus, or stubbornness.

As an example, most sabermetrics fans believe that saves and the use of a specific 9th inning closers is completely overrated. It would be no less effective to have a rotating group of relievers pitch the 9th inning. However, Larussa feels that the a 9th inning closer is necessary for a confident bullpen and morale. Nothing can demoralize a team or bullpen more than losing in the ninth.

I love the individual tales of baseball plays and players told in the book. While the managerial problems are discussed in the context of baseball, they are good examples of how to manage (or not manage) in any profession.

My favorite tale is how Tony Larussa once yelled and took out his frustrations for a loss on Cardinals utility man John Mabry. While Tony later apologized to Mabry, he believes Mabry lost confidence in him, leading him to perform poorly. It's a parable that could mapped to virtually any environment. How many times does an employee become scared or bothered by a superior? So much so that the employee begins to watch their back or just wish to avoid trouble, rather then doing what is best?

There are tons of parables in the book that could mapped to regular jobs: building up the confidence of younger players, getting players on board with a plan, making your players trust you, defending your players, motivating players, etc. There are tales of jealousy between players, players being stubborn, and emotion or lack of focus that everyone can relate to.

Unlike Moneyball, I'm unsure how much non-baseball fans would like this book. It is clearly a baseball book. As a Cardinals fan, there is also a soft spot in this book for me that non-Cardinals fans may not appreciate. I know most of the players described in this book from articles and TV. I knew most of the stories in it at a high level (death of Darryl Kile, issues of Rick Ankiel), so it was very interesting for me to learn the subplots and details.

Friday, September 30, 2011

Getting Everyone On The Same Page

I was reading this article on TheDailyWTF.

http://thedailywtf.com/Articles/Get-to-da-COPPA!.aspx

Like many TheDailyWTF articles, it's a nice humorous story, but I love the last part of the story.

The short story is engineer Derek could not come to a reasonable compromise with engineer Steve on a solution to a problem. After many internal frustrations, Derek bypassed Steve's engineering team entirely, went to the software install team, and changed the install process for the software. The result? Derek implements his solution without ever involving the team that writes the software. The end of the article states, "Steve's team got to keep their constraint, and the customers didn't."

I love that last sentence.

"Steve's team got to keep their constraint, and the customers didn't."

The core engineering team will never see a setup (and will never know the setup for awhile) that the customers will always have. Long term, that can't be good.

While this is an extreme example, it got me thinking. How often do internal managers/staff not come to an agreement or get on the same page? As a consequence, staff begin doing whatever it takes to get the job done, bypassing teams, roles, procedures, etc. I think tiny versions of it happen all the time. Some amount of it we accept b/c we work with a lot of people, but how much of it can be made better?

Sunday, May 29, 2011

Puzzle/Brain-Teaser Interview Questions

I came upon an article (here) on Techcrunch about CS recruiting. There's this quote in it:

Like many of the hangovers that haunt modern software engineering, this is ultimately mostly Microsoft’s fault.2 Back when they were the evil empire where everyone secretly wanted to work, they were famous for their “brain-teaser” interview questions – Why are manhole covers round? – and, of course, they asked new university graduates about computer science theory; “Write me a binary search."

I remember reading a similar comment/article on theDailyWTF (here).

Although I personally don't like to give these kinds of questions in interviews, I personally do not think the brain-teaser questions are as bad as most people think they are. What they are is bad if executed improperly. I think most interviewers, at Microsoft or otherwise, do not know how to execute the question, the interview and judge the answers from candidates. Some examples:

A) Many interviewers want the right answer from the candidate, and will reject a candidate if they can't solve it. This is the wrong attitude. The question is trying to judge how a candidate thinks through a problem to solve it. Even arriving at the wrong answer is acceptable if the plan of attack was acceptable.

B) The question is also meant to judge your communication ability. Can you talk about how you model the problem, or want to plan to attack the problem, etc. Compared to normal programming questions, you have to speak out of your element.

C) The question also judges your ability to work under pressure and/or show your willingness to not give up. Some candidates may (do?) break down in interviews. Is this the type of employee that will break down in front of a client, partner, or co-workers if presented something difficult or stressful?

D) The brain-teaser/puzzle questions should be given along with other normal technical questions and behavioral questions. It's shouldn't only be brain-teaser/puzzle questions. I interviewed with a company straight out of college that gave me around 10 C programming "puzzle" questions. I probably got 6-7 right, which was enough for them to understand that I really knew C well and got to the next round of interviews. I've known of other people that have been given ONE C puzzle question, and that one question determined if they knew C well enough or not for the job. It's a good example of how not to balance the interview.

Update (12/6/11)

One additional thought. There are also good puzzle/brain-teaser questions and bad ones. Some, such as "Why is a manhole cover round?", are terrible questions. There is little ability to get the candidate to think through the problem and reason it out. A question such as, "How many golfballs can you fit inside a school bus?" isn't that bad.

Friday, March 11, 2011

Roundpegg

I just learned about a company called Roundpegg, that is (as called by Techcrunch) the "eHarmony for jobs". They give you a personality test and use that to fit you to different companies/jobs with different types of corporate culture.  Similar to my discussion about Codility, these kinds of websites bother me.

It's not that Roundpegg isn't a good company.  I think their personality test is probably very good and would be very useful for companies and candidates.  Many companies use similar tests when employees apply for a job (Zappos comes to mind).  The issue is that there is a strong likelihood such a system could be abused will be used poorly.  The best way to use such a system is to use it to weed out the absolute worst candidates, not to find the best candidates. (Similar to the argument in my Codility argument.)

Update (3/15/11):

I suddenly had a thought. Similar to my comments in my Codility comments, how does Roundpegg recommend candidates to companies? Do they give a score like 0-100%? Or like many dating websites, do they give broad "strong match" vs. "maybe match" vs. "no match" grades? I suppose a more subjective grading criteria like the later might make a Roundpegg less susceptible to poor use.

Sunday, February 20, 2011

Expectations When You Support Open Standards

I've spoken about this topic with many engineers, managers, sales folks, etc. So I decided it might be interesting to post about this topic and my experience with it.

Organizations/vendors often advertise support for software or protocols based on open standards. However, I've had many experiences where it does not appear vendors understand the consequences of that advertisement. The following is an example of something I've encountered in my work.

I'm the co-author and present maintainer of FreeIPMI. If you're not familiar with what IPMI is, you can read about it in the FreeIPMI FAQ. For this discussion, the most important part to understand about IPMI is that it is an open standard which you can download here.

The IPMI standard supports many things, one of which is the ability to read sensors off a motherboard. For example, it supports the ability to read CPU temperatures and report them back to the user in Celsius (e.g. 50 degrees Celsius). The types of sensors that could exist on a motherboard are very large and cannot always be handled by IPMI. So the IPMI specification supports the ability for vendors to add OEM extensions to read non-standard sensors. For example, I've encountered a motherboard where a CPU temperature sensor was not reported in Celsius, but instead reported by flags indicating "low", "medium", "high", or "overheat." This type of sensor is not defined by the IPMI specification and is specific to just one manufacturer's motherboard.

Normally, I (as potential motherboard customer) do not know how to read and interpret an OEM specific sensor. The question is, is it fair or unfair for a vendor to keep information about an OEM specific sensor closed/hidden/secret? Is it fair or unfair to only allow an OEM specific sensor to be readable by a vendor's software instead of third-party software?

In my opinion, it depends on the sensor. In the case of a OEM CPU temperature sensor above, I believe hiding this information to be unfair. A CPU temperature sensor is a standard IPMI supported mechanism. An OEM specific CPU temperature sensor is what I call a "minor permutation" from the specification. A user/customer of IPMI would expect they could read CPU temperature sensors using third-party IPMI software.

In contrast, suppose that a sensor on the motherboard supports the ability to read a sensor quite different than what is supported in the IPMI specification (i.e. it is not a "minor permutation"). In this case, I do not believe a user/customer would have reasonable expectation for third-party IPMI software to read the sensor. So in this case, I would consider it fair to keep the information closed/hidden and only readable by vendor software.

Now, you might ask, what are reasonable expectations of a customer/user? In my opinion, it comes down to how the product is advertised. Does the product brief say that you can read motherboard sensors via IPMI? Or does it say you can read them via software X? If a vendor says the former, they should be prepared to deal with questions from customers about third party software. If they say the later, I believe customers cannot have expectations of support for third-party software.

Why is this a conversation that always comes up for me? You may have guessed it by now, but many vendors do not wish to open up and share their OEM extensions with me for inclusion in FreeIPMI. As an example, the following are several IPMI standard mechanisms.

  • Configure MAC Address
  • Configure IP Address
  • Get firmware version
  • Get product name/serial number
  • Set LED

Despite the fact that they are standard mechanisms, due to minor implementation differences, they have also been implemented as OEM extensions by some vendors (see ipmi-oem). The first two (configuring MAC and IP address) are particularly egregious OEM extensions, because the OEM extension (and possibly vendor specific software) are now required for basic setup and configuration of IPMI (let alone using all the features of IPMI). [1]

Hopefully, this illustrates the expectations a user/customer/software developer would have when a vendor supports an open standard. As an addendum, I do not wish to imply that companies with IPMI OEM extensions are being evil by keeping some of their OEM extensions hidden/closed/secret. Many companies I have worked with on IPMI have been very gracious in (eventually) opening up their OEM extensions for addition into FreeIPMI (see FAQ). I believe that initial resistance from vendors is often due to poor communication rather than evil intent. For many vendors, I am a strange corner case in their customer base. Support staff folks just aren't prepared to handle the kinds of support requests I make, so their initial reaction is naturally "No, we can't do that."

[1] - As an interesting aside, I once reported to a vendor that their standard IPMI MAC address configuration functionality was broken in their firmware. The vendor responded that it was working with their software, and the bug must of have been in FreeIPMI. After much back and forth, I was able to determine that their vendor specific software was configuring the MAC address using an OEM extension, not the standard mechanism. So in this particular case, the vendor support staff was completely unaware that their software used an OEM extension. Ugh ...

Friday, January 28, 2011

"Who Moved My Cheese"

I picked up this book at a book sale for a buck. I had seen it on enough bookshelves to warrant interest.

I'm glad I found it for only a buck. This isn't to say that it's bad. The book tells a small parable featuring anthropomorphic mice, and how the mice deal with challenges and change in their lives. Surrounding the parable is a fake dialogue amongst old highschool friends, how the parable reflects changes in real life, and how to handle those changes. The fake dialogue between friends is absolutely awful. However, the overall point of the story and book isn't too bad. It didn't particularly move me, but I can see some people liking it. It's certainly not worth the $19.95 cover price or ~$12 on Amazon.

I like to compare the book to Fish!. Fish! is a similarly short book featuring a fiction story about finding happiness (Who Moved My Cheese ~ 90 pages, Fish! ~ 100 pages). Fish! is far better written and more entertaining. While it is fiction, Fish! involves people and real jobs, so the story was more meaningful (and at a minimum I could relate to).

Saturday, January 15, 2011

Codility

I happened upon a website called Codility (codility.com) awhile ago. It's a website where employers can test candidates for a programming job through a programming "test" system of sorts.

On their blog, they have an interesting post (which points to another thread) titled, "Is Codility Fair?" The main point of contention is whether the "Codility System" is a fair mechanism for testing the programming abilities of a candidate. If the programming test description does not give enough detail on what is required, is it the fault of the programmer for not programming something properly?

The debate is on what a fair set of assumptions every programmer should make when writing their code. For example, is handling corner cases always a fair assumption? Is writing optimal code always a fair assumption? Codility suggests these are a set of assumptions that all good programmers make. If a programmer doesn't assume them, they are a weaker programmer.

Generally speaking, I agree with Codility's sentiments. However, where is the line drawn? What assumptions are reasonable for a person to have and what aren't? Is it setup in a manner that can actually help differentiate a good programmer from a bad one? I took the Codility demo test for a whirl to see how the system works. These are my impressions and some thoughts.

1)

I consider the test interface slightly unfair and bordering on bad. At the bottom of the programming test interface is a button called "verify". It tells you if the code you've programmed has passed or failed a set of test cases.

To me, this button strongly suggests that once you pass the verification button, you have passed the test and are done. However, this is not the case. There is an additional button called "submit task". After you submit your code, your code is then executed against additional test cases. You are then given a grade based on your results (if this was a real test from an employer, you wouldn't see the grade results).

I feel that this is a confusing interface. I believe many people will assume they've completed the assignment when they have in fact not. My first time through the demo I implemented a cheap and quick solution (normally I go back and optimize afterwards, the first pass is just to wrap my head around a problem). When I saw that I passed the tests via the "verify button", I went ahead and clicked "submit task" believing that I had passed the test and there was no need to continue. I wasn't aware that I would be given an additional grade. If you're taking a test from an employer you won't even see the grades, and will just assume you're done.

The lesson learned is if you are about to take a programming test on Codility (or a similar website), go through the demo and learn about how their system works before taking a test from an employer.

2)

The instructions are not unfair, but I have a hard time believing that the Codility System is properly setup to handle all possible interpretations and assumptions. Or in other words, it's a fair system, just not a good one.

As an example, suppose a question is asked to write a function called mystrlen() that measures the length of a string. Which of the below handles the NULL pointer corner case correctly?

int mystrlen(const char *str) {
    if (!str) return -1;
    /* ... rest of code */
}

int mystrlen(const char *str) {
    assert(str);
    /* ... rest of code */
}

I would argue that either of the above handles the NULL pointer corner case perfectly fine. Unless the description states specifically which one Codility wants, which one is correct? Will Codility accept either one as a solution?

Of course, one can also argue that not checking for NULL is fine as well. After all, the standard GNU libc implementation of strlen() doesn't check for it. My recollection is that most libc implementations don't check for it. It's defined (by Posix?) as undefined behaviour and documented as such. Would the following be considered something by a poor programmer?

int mystrlen(const char *str) {
    /* documentation states str behavior undefined for NULL */
    /* ... rest of code */
}

(Update: I originally screwed up the examples above by having the functions return size_t's. Those are unsigned types, so I changed it to ints. I suppose having a prototype returning a signed vs unsigned could suggest how a corner case could/should be handled, but please don't nit-pick on that point, think of the general argument in its entirety.)

3)

After the test is completed by job candidates, what does Codility give the employer? Do they give the employer the actual code submitted by the candidate? Or do they only give the employer a grade?

One commenter said that Codility gives employers a report something like this:

Candidate Bob: 100%
Candidate Sam: 100%
Candidate Joe: 100%
Candidate Max: 98%

So it looks like Bob, Sam and Joe will get an interview, but Max is out of luck. Those 2 percentage points are hardly enough to suggest that Max is a poorer programmer than the others. Given the issues I describe above under #1 and #2, I would bet that several poorer scoring programmers could have been equally skilled but just made a few incorrect assumptions. They weren't bad assumptions, just not the assumptions Codility wanted.

4)

After taking the demo test, I couldn't help but think of the famed Barometer Question. Does Codility want you to answer the question? Or do they want you to give them the answer they want? I'm leaning towards the later. That's why in-person programming questions (or even IM sessions) are really the best way to do a programming interview. You can deal with all the assumptions and see how the person really programs. As with the mystrlen() example above, the candidate can explain their assumptions and elaborate on why they made their assumption.

However, I believe Codility could be used as a general weedout mechanism. While I do not believe a 95% truly differentiates someone who scored a 90%, I do believe that someone who scored a 95% is better than someone who scored a 5%. Whenever I ask programming questions during an interview, the goal is not to determine if a candidate is a good programmer or an incredible programmer. The goal is to determine if the programmer is a terrible programmer or not-terrible programmer. I think that's the way employers should approach using Codility.

Update (1/28/11):

I suddenly had a thought. Is Codility treating the candidate like a customer treats a software developer/vendor? After mulling over it, I think the answer is no. With a customer, an engineer/developer has a set of requirements to meet. The requirements may not always be known ahead of time, so assumptions can be made about them. However, ultimately you are coding towards those requirements. Even if you are a brilliant programmer, some portion of Codility is testing your assumption making capabilities, not your coding or engineering ability.

Is testing assumption making capabilities proper for evaluating a candidate? I think it's a perfectly valid judgement of a person's engineering ability. However, I don't believe it is under a Codility system. As I describe above, there are many valid and good assumptions, it may not simply be what Codility wanted and how it will grade you. Subsequently, a recruiter from a company won't see your assumption making abilities. All they see is a score.

Wednesday, December 15, 2010

Yahoo Layoffs Before the Holidays

There have been rumors for months of layoffs at Yahoo, and they finally occurred yesterday.  Reports are around 4% of staff (~600 people).  Everyone has an opinion on what Yahoo should be doing to move forward, or if Carol Bartz is doing a decent job, but I'll leave those opinions for another day.