Entre bebes y Geeks

Entre bebes y Geeks

Hace unos dias me entere que voy a ser Padre, y mas alla de todos los sentimientos que esto genera y lo feliz que me hace.

Cuando comente esto con algunos amigos geeks me dio gracia que uno de ellos, Agustin Dotta, me pregunto “Che asi que hiciste Zend_Baby::getInstance()?”.

Esto me dio tanta gracia que termino en mi nic de Gtalk.

Gonzalo Gorosito se sintio inspirado por esta frase y creo el objeto Zend_Pablo. Aca comparto lo geeks de este tipo de gente, y gracias.

  1.  
  2. <?php
  3. class Zend_Pablo extends Zend_Factory {
  4.    private $_instance;
  5.    private $_marriedStatus = array(‘eslinda’ => ’soltero’ , ‘esFea’ => false );
  6.    private $_realMarriedStatus = false;
  7.  
  8.    protected function __construct( $action ){
  9.        try {
  10.                $this->doAction( $action );
  11.        } catch ( Exception $e ) {
  12.                print $e->getMessage();
  13.                die( ‘fuck off ‘);
  14.        }
  15.  
  16.        $pablosWife = new Zend_Pablo_s_Wife();
  17.  
  18.        if( !is_null( $pablosWife ) ){
  19.                $this->_realMarriedStatus = true;
  20.        }
  21.        $minitaQa
  22.    }
  23.    public static function getInstance() {
  24.        if ( is_null( self::$instance ) ) {
  25.            self::$instance = new self;
  26.        }
  27.        return self::$instance;
  28.    }
  29.    public function doAction( Action_Object $action ){
  30.        switch( $action ){
  31.    
  32.            case ‘levantar’:
  33.            case ‘iracasa’:
  34.            case ‘dormir’:
  35.            case ‘trabajar’:
  36.            case ‘comer’:
  37.            case ’salir’:
  38.            case ’salirconamigos’:
  39.                $this->ponerla();
  40.                break;
  41.            default:
  42.                $this->ponerla();
  43.                break;
  44.        }
  45.    }
  46.    private function ponerla(){
  47.        if( $this->_realMarriedStatus ){
  48.            $this->baby = new Baby();
  49.            return true;
  50.  
  51.        } else {
  52.  
  53.            $minita = new Minita();
  54.            $minitaQa = $minita->getQuality();
  55.  
  56.            if(  $this->_marriedStatus[ $minitaQa ] == ’soltero’ ){
  57.                    $sex = new Zend_FastSex();
  58.                    $sex->doAction( true );
  59.            }
  60.  
  61.            //always return false this case……
  62.            return false;
  63.  
  64.        }
  65.    }
  66.  
  67. }
  68. ?>
  69.