Funny programming pictures, jokes & quotes

Discussion about everything. New games, 3d math, development tips...
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

Post by kazymjir »

ChaiRuiPeng
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

Post by ChaiRuiPeng »

ent1ty wrote: success is a matter of concentration and desire
Butler Lampson wrote: all problems in Computer Science can be solved by another level of indirection
at a cost measure in computer resources ;)
pippy3
Posts: 155
Joined: Tue Dec 15, 2009 7:32 am

Post by pippy3 »

viejodani
Posts: 32
Joined: Tue Nov 10, 2009 3:09 pm

Post by viejodani »

Image
-- Never lose your sense of wonder --
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

@viejodani: HAHA! So true... :lol:
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
ChaiRuiPeng
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

Post by ChaiRuiPeng »

some comment i found from one of my first c++ projects a few months ago..

:shock:

Code: Select all

 ///@todo: this is a hacky fix, fix the hacky fix to fix the problem which is of causing
what was causiung!??!

:shock: :shock:

world will never know...
ent1ty wrote: success is a matter of concentration and desire
Butler Lampson wrote: all problems in Computer Science can be solved by another level of indirection
at a cost measure in computer resources ;)
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

ChaiRuiPeng wrote:world will never know...
Probably a good thing :P :lol:
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps

Step back! I have a void pointer, and I'm not afraid to use it!
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

Lambda wrote:
Geomaster wrote:I personally like this piece of code:

Code: Select all

void Woman::toBathroom()
{
     while (true) { }
}
^^
This one is better :D

Code: Select all

void CWoman::InitBathroom()
{
	CWoman* pFriend = 0;
	CWoman* pHuman = CBaseHuman::FindNextHuman( EHT_GIRL );

	while( pHuman )
	{
		if( pHuman->IsFriend( this ) )
		{
			pFriend = pHuman;
			break;
		}

		pHuman = CBaseHuman::FindNextHuman( EHT_GIRL );
	}

	while( true )
	{
		if( pFriend )
			pFriend->ProcessMisteriousThings();

		ProcessMisteriousThings();
	}
}

void CWoman::ProcessMisteriousThings()
{
	//! Who knows...
}
Looks like a sims mod script.
ChaiRuiPeng
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

Post by ChaiRuiPeng »

tonight i feel i dodged a bullet :)

look at this method

Code: Select all

IPlatformAnimatorVisualDebugger::getAnimator()
well IPlatformAnimatorVisualDebugger is kind of an injective class, draws lines to oultine animation paths, dervied from ISceneNode. good thing i made it getAnimator() and not getAnimators(), since that is an irrlicht method and could cause mayhem.. when some irrlicht internals call that...
:shock:

8) i dont know how thats funny but i laughed creepy when i realized i should make that method name more specific to my class. now off to go eat breakfast.. or a midnight snack... or whatever time it is..

EDIT: probbly good time for sleep too :)
ent1ty wrote: success is a matter of concentration and desire
Butler Lampson wrote: all problems in Computer Science can be solved by another level of indirection
at a cost measure in computer resources ;)
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

ChaiRuiPeng wrote:tonight i feel i dodged a bullet :)

look at this method

Code: Select all

IPlatformAnimatorVisualDebugger::getAnimator()
well IPlatformAnimatorVisualDebugger is kind of an injective class, draws lines to oultine animation paths, dervied from ISceneNode. good thing i made it getAnimator() and not getAnimators(), since that is an irrlicht method and could cause mayhem.. when some irrlicht internals call that...
:shock:

8) i dont know how thats funny but i laughed creepy when i realized i should make that method name more specific to my class. now off to go eat breakfast.. or a midnight snack... or whatever time it is..

EDIT: probbly good time for sleep too :)
idk about a bullet, if one class injects into another I image the worst that would happen is a BSOD and maybe loss of unsaved work.. but when you compile with an IDE is saves at compile time and that code wouldn't do anything until it were executed anyway. I'm not sure how that's funny either, must have to have been there or care or something.

lmfao at breakfast or a midnight snack though!
viejodani
Posts: 32
Joined: Tue Nov 10, 2009 3:09 pm

Post by viejodani »

you know you need to go stop coding an hour before going to sleep when you dream of something like this

Code: Select all

bool Me::WakeUp()
{
     if(m_bladder->IsFull())
         GoPee();
     WashFace();
     return true;
}
And it can be worse if you dream in Debug mode
Last edited by viejodani on Tue Apr 19, 2011 5:28 am, edited 1 time in total.
-- Never lose your sense of wonder --
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

Post by kazymjir »

I see that not only I dream about code :D
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

kazymjir wrote:I see that not only I dream about code :D
I've actually solved some really nasty bugs in my dreams, and amazingly enough the fixes used in the dream mostly work in real life too :D
Brainsaw
Posts: 1183
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

Radikalizm wrote:
kazymjir wrote:I see that not only I dream about code :D
I've actually solved some really nasty bugs in my dreams, and amazingly enough the fixes used in the dream mostly work in real life too :D
I know that ;) . Been struggling to get a piece of sh ... so ... software running for a day or two at work and didn't find the solution to the problem. When I was asleep at night I suddenly woke up and thought to myself: "Damn ... **of course this can't work**"". Went back to work the next day and fixed the problem.

Unfortunately this does not happen that often ;)
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
ChaiRuiPeng
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

Post by ChaiRuiPeng »

:wink: ocassioanaly i will be in pseudo sleep and thinking about my project.. then i will think of something ingenius, a solution or something, and can't sleep until i at least get on my computer and fix.
ent1ty wrote: success is a matter of concentration and desire
Butler Lampson wrote: all problems in Computer Science can be solved by another level of indirection
at a cost measure in computer resources ;)
Post Reply