Showing posts with label code. Show all posts
Showing posts with label code. Show all posts
September 23, 2013
August 06, 2013
July 11, 2013
no refac
feels like a rubbish bin surgeon - adding a significant feature in a stinky code that will go down the toilet in one year
March 08, 2013
January 03, 2013
January 10, 2011
January 06, 2010
buggy ride
It's tempting to think that the current bump is the last obstacle and that thereafter you can turn the cruise control on.
October 29, 2008
Cruelest code ever
void ExecWithIO::kill_child()
{
  if (running() > 0) {
   int status = kill(child_pid, SIGKILL);
   if (status < 0) {
    std::cerr << "error " << strerror(errno) << " (" << errno
    << ") killing " << child_pid << std::endl;
    }
  }
}
//Just received the code from my supervisor - it has to deal with piping or smthn, but essentialy this method just got me rofling for a while :).
{
  if (running() > 0) {
   int status = kill(child_pid, SIGKILL);
   if (status < 0) {
    std::cerr << "error " << strerror(errno) << " (" << errno
    << ") killing " << child_pid << std::endl;
    }
  }
}
//Just received the code from my supervisor - it has to deal with piping or smthn, but essentialy this method just got me rofling for a while :).
Subscribe to:
Posts (Atom)