sit the guy in a room. Fire up sublime, emacs, vim, or whatever IDE. Give him an hour to write an app in C++ to solve something trivial that he does not know in advance, such as the 8 queens problem. End of debate. The guy most likely cannot code to save his life.