>DansTonCode();

Tous les codes sources "Blague"page 8

Java
  3 August, 2014 à 08:01
#202
try {

}
catch (SQLException ex) {
    // Basically, without saying too much, you're screwed. Royally and totally.
}
catch(Exception ex)
{
    //If you thought you were screwed before, boy have I news for you!!!
}
JavaScript
  2 August, 2014 à 08:38
#204
#Christmas tree initializer  
toConnect = []  
toRead =   [  ]  
toWrite = [    ]   
primes = [      ]  
responses = {}  
remaining = {}
C++
 29 July, 2014 à 12:50
#192
class God // Okay this is going well
{
private:
    static God* m_God; // Point to yourself, eh? Pretty narcissistic. 

public:
    God &getSingleton() { if(!m_God) { m_God = new m_God(); } return m_God(); } // Woah woah. Only one of you? Poor design. 

    World *createWorldFromNothing() { return WorldManager::makeNewWorld(); } // You didn't really create a world from nothing, God... you just borrowed it.
     
    const bool wasItGood(World* world) { return true; } // DA FUCK God?! You didn't even check! It could be garbage for all you know! It's a pointer!
    God() { ; }
    ~God() { ; }
};

God* God::m_God = 0; 

int main(...)
{
    World *world = God::getSingleton()->createWorldFromNothing(); 
 
    while(God::getSingleton()->wasItGood(world)) // Dude. This goes forever. You know that right?
    {
        world->update(); 
    }

    return 0; // THIS NEVER CALLS. DA FUQ GOD. 
}