Does vBulletin do Code Reviews?

Discussion in 'vBulletin Discussions' started by Brandon, Mar 8, 2013.

  1. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    I see another thread 'locked' but still a VERY valid point..

    Shamil. posted this

    An honest question to vBulletin.

    Do you guys do code reviews?

    I mean, I just opened index.php, acting as a front controller, and after being faced with a wall of code with singletons (I'm going to try to find where a code was instantiated without a singleton or multiton), I saw something horrific..

    Code:
    switch ($controller) {
     
     
    case 'activity':
     
     
    $class = 'Activity';
     
     
    break;
     
     
    case 'admin':
     
     
    $class = 'Admin';
     
     
    break;
     
     
    case 'ajax':
     
     
    $class = 'Ajax';
     
     
    break;
     
     
    case 'auth':
     
     
    $class = 'Auth';
     
     
    break;
     
     
    case 'channel':
     
     
    $class = 'Channel';
     
     
    break;
     
     
    case 'conversation':
     
     
    $class = 'Conversation';
     
     
    break;
     
     
    case 'createcontent':
     
     
    $class = 'CreateContent';
     
     
    break;
     
     
    case 'poll':
     
     
    $class = 'Poll';
     
     
    break;
     
     
    case 'page':
     
     
    $class = 'Page';
     
     
    break;
     
     
    case 'test':
     
     
    $class = 'Test';
     
     
    break;
     
     
    case 'uploader':
     
     
    $class = 'Uploader';
     
     
    break;
     
     
    case 'search':
     
     
    $class = 'Search';
     
     
    break;
     
     
    case 'filedata':
     
     
    $class = 'Filedata';
     
     
    break;
     
     
    case 'registration':
     
     
    $class = 'Registration';
     
     
    break;
     
     
    case 'profile':
     
     
    $class = 'Profile';
     
     
    break;
     
     
    case 'style':
     
     
    $class = 'Style';
     
     
    break;
     
     
    case 'video':
     
     
    $class = 'Video';
     
     
    break;
     
     
    case 'link':
     
     
    $class = 'Link';
     
     
    break;
     
     
    case 'relay':
     
     
    $class = 'Relay';
     
     
    break;
     
     
    case 'privatemessage':
     
     
    $class = 'PrivateMessage';
     
     
    break;
     
     
    case 'report':
     
     
    $class = 'Report';
     
     
    break;
     
     
    case 'hv':
     
     
    $class = 'Hv';
     
     
    break;
     
     
    default:
     
     
    $class = 'Main';
     
     
    break;
     
     
    }
     
    $class = 'vB5_Frontend_Controller_' . $class;
     
     
     
     
     
    if (!class_exists($class))
     
     
    {
     
     
    // @todo - this needs a proper error message
     
     
    die("Couldn't find controller file for $class");
     
     
    }
    (forget about throwing exceptions here that we couldn't find the controller class), but die()?

    I can't imagine things getting any easier with 588k lines of code.
     
  2. BamaStangGuy

    BamaStangGuy Administrator

    Joined:
    Jun 23, 2009
    Messages:
    769
    Likes Received:
    549
    Location:
    Huntsville, AL
    I think we all know vBulletin's code is shit and they have no quality control or organization skills within the company. Not sure why people still post over there and ask questions they know the answer to. They aren't changing.

    It's like people who buy SimCity and then bitch about how terrible Electronic Arts is. It's not like that is a new development. vBulletin will never improve under Internet Brands. They will always fall at each important step of the development process and then have to go back and redo things that are now considered stable.
     
    DaUnknownAdm!n and Brandon like this.
  3. Alfa1

    Alfa1 Regular Member

    Joined:
    Jul 24, 2009
    Messages:
    303
    Likes Received:
    196
    I would not be surprised if IB / vBS would have been quite aware about the quality of the product, even before the first line of code was written.
     
  4. C H

    C H Regular Member

    Joined:
    Nov 9, 2011
    Messages:
    12
    Likes Received:
    2
    Location:
    Interwebz
    Oh... What the **ck. ... even I (I'm not a professional coder.) can see how bad it is. Is this even a code? Can piece of not working crap deserve for being called a code?
     

Share This Page