Because I’m such a nice guy, I’m going to give you all a lame valuable algorithm for determining if you should friend someone or not. Naturally, it’s written in C++.


namespace LJ
{
  class User; // skip actual definition, because it’s not real
}

bool LJ::User::DecideFriend(LJ::User const &candidate)
{
  if(candidate.Name() == "shadwstalkr")
    return true;

  if(candidate.Offensiveness() > OffensiveThreshold())
    return false;

  float weight = 0.0;

  weight = candidate.PostingFrequency();
  weight *= candidate.AvgPostLength();
  weight *= NumFriends();

  if(weight < FriendThreshold())
    return true;
  else
    return false;
}