Funny programming pictures, jokes & quotes

Discussion about everything. New games, 3d math, development tips...

Postby kazymjir » Sun Apr 10, 2011 4:34 pm

User avatar
kazymjir
 
Posts: 678
Joined: Sat Feb 20, 2010 4:05 pm

Postby ChaiRuiPeng » Fri Apr 15, 2011 10:04 pm

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 ;)
User avatar
ChaiRuiPeng
 
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..


Postby viejodani » Sat Apr 16, 2011 5:48 am

Image
-- Never lose your sense of wonder --
User avatar
viejodani
 
Posts: 32
Joined: Tue Nov 10, 2009 3:09 pm

Postby shadowslair » Sat Apr 16, 2011 4:31 pm

@viejodani: HAHA! So true... :lol:
Image
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
User avatar
shadowslair
 
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Postby ChaiRuiPeng » Sun Apr 17, 2011 12:01 am

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 ;)
User avatar
ChaiRuiPeng
 
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

Postby ent1ty » Sun Apr 17, 2011 7:11 am

ChaiRuiPeng wrote:world will never know...

Probably a good thing :P :lol:
Height2Normal v. 2.1 - convert height maps to normal maps

Code with brain, not heart.
- entity, a founding member of the Heartless Coders society
ent1ty
 
Posts: 950
Joined: Sun Nov 08, 2009 11:09 am

Postby Midnight » Mon Apr 18, 2011 3:36 pm

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.
User avatar
Midnight
 
Posts: 1767
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Postby ChaiRuiPeng » Mon Apr 18, 2011 4:21 pm

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 ;)
User avatar
ChaiRuiPeng
 
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

Postby Midnight » Mon Apr 18, 2011 6:54 pm

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!
User avatar
Midnight
 
Posts: 1767
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Postby viejodani » Tue Apr 19, 2011 3:47 am

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 --
User avatar
viejodani
 
Posts: 32
Joined: Tue Nov 10, 2009 3:09 pm

Postby kazymjir » Tue Apr 19, 2011 4:11 am

I see that not only I dream about code :D
User avatar
kazymjir
 
Posts: 678
Joined: Sat Feb 20, 2010 4:05 pm

Postby Radikalizm » Tue Apr 19, 2011 11:14 am

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
Radikalizm
 
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Postby Brainsaw » Tue Apr 19, 2011 12:39 pm

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 ;)
User avatar
Brainsaw
 
Posts: 1045
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Postby ChaiRuiPeng » Tue Apr 19, 2011 1:29 pm

: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 ;)
User avatar
ChaiRuiPeng
 
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

PreviousNext

Return to Off-topic

Who is online

Users browsing this forum: No registered users and 1 guest