Menú Principal

Umor Geek

Iniciado por Bestiajez, Julio 22, 2011, 04:08:00 PM

Tema anterior - Siguiente tema

Baku

Supongo que ya la conocerás, pero está página nos proporciona grandes cantidades de entertainment a los del ramo:

http://thedailywtf.com/

It's very difficult todo esto.

Bestiajez

//Code sanitized to protect the foolish.
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Web.UI;

namespace Mobile.Web.Control
{
    /// <summary>
    /// Class used to work around Richard being a fucking idiot
    /// </summary>
    /// <remarks>
    /// The point of this is to work around his poor design so that paging will
    /// work on a mobile control. The main problem is the BindCompany() method,
    /// which he hoped would be able to do everything. I hope he dies.
    /// </remarks>
    public abstract class RichardIsAFuckingIdiotControl : MobileBaseControl, ICompanyProfileControl
    {
        protected abstract Pager Pager { get; }

        public void BindCompany(int companyId) { }

        public RichardIsAFuckingIdiotControl()
        {
            MakeSureNobodyAccidentallyGetsBittenByRichardsStupidity();
        }

        private void MakeSureNobodyAccidentallyGetsBittenByRichardsStupidity()
        {
            // Make sure nobody is actually using that fucking bindcompany method
            MethodInfo m = this.GetType().GetMethod("BindCompany", BindingFlags.DeclaredOnly |
                BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            if (m != null)
            {
                throw new RichardIsAFuckingIdiotException("No!! Don't use the fucking BindCompany method!!!");
            }
            // P.S. this method is a joke ... the rest of the class is fucking serious
        }

        /// <summary>
        /// This returns true if this control is supposed to be doing anything
        /// at all for this request. Richard thought it was a good idea to load
        /// the entire website during every request and have things turn themselves
        /// off. He also thought bandanas and aviator sunglasses were "fuckin'
        /// gnarly, dude."
        /// </summary>
        protected bool IsThisTheRightPageImNotSureBecauseRichardIsDumb()
        {
            return Request.QueryString["Section"] == this.MenuItemKey;
        }

        protected override void OnLoad(EventArgs e)
        {
            if (IsThisTheRightPageImNotSureBecauseRichardIsDumb())
            {
                Page.LoadComplete += new EventHandler(Page_LoadComplete);
                Pager.RowCount = GetRowCountBecauseRichardIsDumb();
            }
            base.OnLoad(e);
        }

        protected abstract int GetRowCountBecauseRichardIsDumb();
        protected abstract void BindDataBecauseRichardIsDumb();

        void Page_LoadComplete(object sender, EventArgs e)
        {
            BindDataBecauseRichardIsDumb();
        }

        // the rest of his reduh-ndant interface members
        public abstract string MenuItemName { get; set; }
        public abstract string MenuItemKey { get; set; }
        public abstract bool IsCapable(CapabilityCheck checker, int companyId);
        public abstract bool ShowInMenu { get; }
        public virtual Control CreateHeaderControl()
        {
            return null;
        }
    }
}

Zimm...

Este es genial, porque ademas puede ser muy util:



This seems to stop morons from messing my code...

// Autogenerated, do not edit. All changes will be undone.

I found it in the street/ At first I did not see/ Lying at my feet/ A trampled rose

Zimm...

Ja ja...



// Magic. Do not touch.
I found it in the street/ At first I did not see/ Lying at my feet/ A trampled rose

Bic

 Hostias, son buení­simos...


#define TRUE FALSE //Happy debugging suckers


P & L
Los libros son finitos, los encuentros sexuales son finitos, pero el deseo de leer y de follar es infinito, sobrepasa nuestra propia muerte, nuestros miedos, nuestras esperanzas de paz.

Bestiajez

// I dedicate all this code, all my work, to my wife, Darlene, who will
// have to support me and our three children and the dog once it gets
// released into the public.

Bestiajez

// somedev1 -  6/7/02 Adding temporary tracking of Login screen
// somedev2 -  5/22/07 Temporary my ass

Bestiajez

 /**
   * This method leverages collective synergy to drive "outside of the box"
   * thinking and formulate key objectives into a win-win game plan with a
   * quality-driven approach that focuses on empowering key players to drive-up
   * their core competencies and increase expectations with an all-around
   * initiative to drive down the bottom-line. I really wanted to work the word
   * "mandrolic" in there, but that word always makes me want to punch myself in
   * the face.
   */

Bestiajez


Agarkala


patillotes

Enorme.

Y por si no lo conoceis:

http://coderfacts.com/

Este lo tenia puesto en el proyector en las clases de FP:


A ver si les calaba por ciencia infusa.

patillotes

Los hay muy mongolicos:



----

Y como primo del primer enlace:

http://codegolf.stackexchange.com/questions/1536/hello-world-0-0



Retos de programacion con poco codigo. El de arriba es escribir "Hello world!":
I'm hoping to add a new twist on the classic "Hello World!" program.

Code a program that outputs Hello World! without:

    String/Charachter literals
    Numbers (any base)
    pre-built functions that return "Hello World!"
    RegEx literals

With the exceptions of "O"† and 0.

†"O" is capitalized, "o" is not acceptable.

Don Pésimo

Me cago en el Sistema Solar

Bestiajez

Cita de: Don Pésimo en Septiembre 04, 2011, 11:53:23 AM
¿Qué significa QA?

Quality Assurance.

Son los que intentan romper las cosas para encontrar posibles fallos antes del pase a producción.