Jump to content

There's a pretty good thread on this on stackoverflow: link.

It's hilariously long and I have yet to read all of it, but some of my favourites so

far are (not just from that thread, also from other sources):

 

Exception up = new Exception("Something is really wrong.");throw up; //ha ha
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 I have news for you!!! }
// If you're reading this, that means you have been put in charge of my previous project.// I am so, so sorry for you. God speed.
// // Dear maintainer:// // Once you are done trying to 'optimize' this routine,// and have realized what a terrible mistake that was,// please increment the following counter as a warning// to the next guy:// // total_hours_wasted_here = 42// 
stop(); // hammertime!
And probably my favourite:
//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;        }    }}
The author of that last one is Dan McKinley, link here. It's quite a nice story, full of despair and frustration :lol:

BUILD LOGS: HELIOS - Latest Update: 2015-SEP-06 ::: ZEUS - BOTW 2013-JUN-28 ::: APOLLO - Complete: 2014-MAY-10
OTHER STUFF: Cable Lacing Tutorial ::: What Is ZFS? ::: mincss Primer ::: LSI RAID Card Flashing Tutorial
FORUM INFO: Community Standards ::: The Moderating Team ::: 10TB+ Storage Showoff Topic

Link to comment
https://linustechtips.com/topic/15696-funniest-comments/#findComment-176808
Share on other sites

Link to post
Share on other sites

There's a pretty good thread on this on stackoverflow: link.

It's hilariously long and I have yet to read all of it, but some of my favourites so

far are (not just from that thread, also from other sources):

 

Exception up = new Exception("Something is really wrong.");throw up; //ha ha
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 I have news for you!!! }
// If you're reading this, that means you have been put in charge of my previous project.// I am so, so sorry for you. God speed.
// // Dear maintainer:// // Once you are done trying to 'optimize' this routine,// and have realized what a terrible mistake that was,// please increment the following counter as a warning// to the next guy:// // total_hours_wasted_here = 42// 
stop(); // hammertime!
And probably my favourite:

//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;        }    }}
The author of that last one is Dan McKinley, link here. It's quite a nice story, full of despair and frustration :lol:

 

Haha 

 

throw up; //ha ha

 Thats funny :P

Best regards Zahlio,
Unity asset developer - Game developer (http://playsurvive.com) - Computer Science student

Link to comment
https://linustechtips.com/topic/15696-funniest-comments/#findComment-177152
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×