Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411423 Posts in 69363 Topics- by 58416 Members - Latest Member: JamesAGreen

April 19, 2024, 02:57:16 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Post if you just laughed at your code.
Pages: 1 ... 17 18 [19] 20 21 ... 27
Print
Author Topic: Post if you just laughed at your code.  (Read 86571 times)
BorisTheBrave
Level 10
*****


View Profile WWW
« Reply #360 on: January 28, 2013, 03:26:49 PM »

I just try to avoid co-ordinate-wise code. You could have easily written:

Code:
cPos[currPos] += Vec3(0.05f, 0f, 0f);
Logged
Klaim
Level 10
*****



View Profile WWW
« Reply #361 on: January 28, 2013, 03:41:02 PM »

That might actually work in some languages...

Yeah you need strong types and operators and it's very helpful.
Logged

JigxorAndy
Level 6
*


Working on Dungeon Dashers


View Profile WWW
« Reply #362 on: February 05, 2013, 04:41:38 AM »

I was wondering why a one of my Global Variables was constantly set to 1920, causing bugs elsewhere. I had forgotten that I'd used that value to "temporarily" test that the screenwidth was correct.
Logged

Twitter / Dungeon Dashers: Website / Steam Store
locknic
Level 1
*

Dominic Mortlock


View Profile
« Reply #363 on: February 05, 2013, 07:09:53 AM »

This is more silly than anything but I accidentally typed out

Code:
pubic String display()
{

}
Logged

Klaim
Level 10
*****



View Profile WWW
« Reply #364 on: February 05, 2013, 07:41:40 AM »

Code:
pubic private String tight()
{

}
Logged

oodavid
Level 8
***


Discombobulate!


View Profile WWW
« Reply #365 on: February 05, 2013, 08:20:05 AM »

Accidentally referenced an object to itself with the property "it's magic" then realised I could do this:

Code:
o.itsmagic = function(){ log('you knooooow!') };
o = o;
o.o.o.itsmagic;
  >  you knooooow!

Man I love Pilot
Logged


Button up! - Out on Android and iOS

latest release: 13th March 2015
rivon
Level 10
*****



View Profile
« Reply #366 on: February 05, 2013, 09:45:17 AM »




(for those who don't know Pilot)
Logged
JobLeonard
Level 10
*****



View Profile
« Reply #367 on: February 05, 2013, 10:35:44 AM »

That actually produced a chuckle. Nice one.
Logged
rosholger
Level 1
*



View Profile
« Reply #368 on: February 05, 2013, 02:04:10 PM »

Accidentally referenced an object to itself with the property "it's magic" then realised I could do this:

Code:
o.itsmagic = function(){ log('you knooooow!') };
o = o;
o.o.o.itsmagic;
  >  you knooooow!

Man I love Pilot

haha wonderfull
Logged
JMickle
Level 10
*****



View Profile
« Reply #369 on: February 06, 2013, 03:23:30 AM »

Code:
G.enerat.e();
i do this shit all the time
Logged

Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #370 on: February 06, 2013, 09:11:43 AM »

Code:
G.enerat.e();
i do this shit all the time

You are a terrible person.
Logged

Creativity births expression.  Curiosity births exploration.
Our work is as soil to these seeds; our art is what grows from them...


Wreath, SoundSelf, Infinite Blank, Cave Story+, <plaid/audio>
d
Level 0
***


View Profile
« Reply #371 on: February 06, 2013, 06:06:40 PM »

Code:
// maybe we can use the handle itself to disambiguate?
// nope
Logged
JMickle
Level 10
*****



View Profile
« Reply #372 on: February 08, 2013, 05:15:23 AM »

You are a terrible person.
I need to keep it fresh, yo.
Logged

Pineapple
Level 10
*****

~♪


View Profile WWW
« Reply #373 on: February 11, 2013, 11:46:25 AM »

Code:
If i Print ":)" Else Print ":("

oh the joys of improvising weird code for the sake of debugging
Logged
RTLShadow
Level 0
*


I make the video games.


View Profile WWW
« Reply #374 on: February 12, 2013, 12:59:14 AM »

Code:
private var balls:Vector.<Sprite>; // huehuehuehuehue
heh. I'm apparently a bit childish still.
Logged
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #375 on: February 14, 2013, 06:45:21 PM »

Code:
	//One skeleton is scary enough.
if (a->_skeleton != b->_skeleton)
reportError(L"Cannot create Joint between different Skeletons.");
Logged

Creativity births expression.  Curiosity births exploration.
Our work is as soil to these seeds; our art is what grows from them...


Wreath, SoundSelf, Infinite Blank, Cave Story+, <plaid/audio>
makerimages
Level 2
**


Makerimages Studios


View Profile WWW
« Reply #376 on: February 15, 2013, 12:23:19 AM »

lol
Logged

Makerimages-Its in the pixel
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #377 on: February 16, 2013, 02:56:00 PM »

Code:
trans = a->_bone->children[ind].pos(trans);

Something about the concept of "bone children" freaks me out.
Logged

Creativity births expression.  Curiosity births exploration.
Our work is as soil to these seeds; our art is what grows from them...


Wreath, SoundSelf, Infinite Blank, Cave Story+, <plaid/audio>
rosholger
Level 1
*



View Profile
« Reply #378 on: February 22, 2013, 06:42:28 AM »

this made me chuckle
Code:
    
val transformerFactory: TransformerFactory
val transformer: Transformer
Logged
VortexCortex
Level 2
**


Engram Architect


View Profile WWW
« Reply #379 on: February 22, 2013, 11:23:24 PM »

In a CSS file of an existing web project:
Code:
/* A nice solid black body. */
body {
   color: #fff;
   background-color: #140804;
}
Hmm, technically, 'black' folks are brown?

Sprite draw routine for a person with customizable clothes.
Code:
CustomOutfit
{
   ...

   // The sock method: Only executed if no other option.
   sock = function( G2D g ) {
      ...
   }
}
Logged

Pages: 1 ... 17 18 [19] 20 21 ... 27
Print
Jump to:  

Theme orange-lt created by panic