Page 21 of 30

Posted: Sun Apr 10, 2011 4:34 pm
by kazymjir

Posted: Fri Apr 15, 2011 10:04 pm
by ChaiRuiPeng

Posted: Sat Apr 16, 2011 3:01 am
by pippy3

Posted: Sat Apr 16, 2011 5:48 am
by viejodani
Image

Posted: Sat Apr 16, 2011 4:31 pm
by shadowslair
@viejodani: HAHA! So true... :lol:

Posted: Sun Apr 17, 2011 12:01 am
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...

Posted: Sun Apr 17, 2011 7:11 am
by ent1ty
ChaiRuiPeng wrote:world will never know...
Probably a good thing :P :lol:

Posted: Mon Apr 18, 2011 3:36 pm
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.

Posted: Mon Apr 18, 2011 4:21 pm
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 :)

Posted: Mon Apr 18, 2011 6:54 pm
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!

Posted: Tue Apr 19, 2011 3:47 am
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

Posted: Tue Apr 19, 2011 4:11 am
by kazymjir
I see that not only I dream about code :D

Posted: Tue Apr 19, 2011 11:14 am
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

Posted: Tue Apr 19, 2011 12:39 pm
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 ;)

Posted: Tue Apr 19, 2011 1:29 pm
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.