Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411526 Posts in 69381 Topics- by 58437 Members - Latest Member: GlitchyPSI

May 02, 2024, 02:51:51 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 ... 16 17 [18] 19 20 ... 27
Print
Author Topic: Post if you just laughed at your code.  (Read 86660 times)
kamac
Level 10
*****


Notoriously edits his posts


View Profile
« Reply #340 on: December 15, 2012, 03:30:58 PM »


Heh, you know how it is. YOLO.

 Durr...?
Logged

Quarry
Level 10
*****


View Profile
« Reply #341 on: December 15, 2012, 04:35:05 PM »

Code:
for (Human human : dHumans) {
humans.remove(human); // MUHEAUHAEHUAEUHUHAAHA
}

dHumans is the "human disposal" list, I shouldn't be awake...
Logged
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #342 on: December 15, 2012, 05:47:01 PM »

Code:
class EyeTest /* ha ha */ : public Module

...


Code:
void stripShuffle()

..?!
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>
JobLeonard
Level 10
*****



View Profile
« Reply #343 on: December 16, 2012, 04:21:27 AM »

Code:
for (Human human : dHumans) {
humans.remove(human); // MUHEAUHAEHUAEUHUHAAHA
}

dHumans is the "human disposal" list, I shouldn't be awake...
In my code a d-prefix almost always means "delta" or "derivative", so x, dx, ddx, dddx (yes I've used it). Still fits, kinda Tongue.
Logged
kiddRaddical
Level 0
***

ALT UNIVERSE SEGA SATURN DEV


View Profile WWW
« Reply #344 on: December 18, 2012, 04:49:37 AM »

This one is subtle :the super class for all of my player characters is named BasePlayer.cs.

I should just bookmark this page; I write some funny code  Cheesy
Logged

posting (too) regularly on Twitter: @EthanRedd
EthanRedd.com
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #345 on: December 18, 2012, 02:53:23 PM »

Quote
float hyp = corner.magnitude();
if (hyp <= 1.0f) reportError(L"Corners of eye must be outside eyeball!");

Eeeeeeewwwwwww  Blink
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>
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #346 on: January 05, 2013, 08:56:49 PM »

Code:
//An affliction caused by hypersaturation of air in the blood.
typedef std::vector<Bend> Bends;

I was writing a kinematics system and I surfaced a little too quick.  Corny Laugh
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>
toipot
Level 0
**


View Profile
« Reply #347 on: January 06, 2013, 05:19:20 PM »

Code:
//sound categories
enum sType {SCOLLIDE,SDAMAGE,SLASER,SCLICK, SEXPLODE};

...
Logged
Klaim
Level 10
*****



View Profile WWW
« Reply #348 on: January 07, 2013, 12:36:45 AM »

Code:
const LinkId& port( Port port ) const;

Each time I see this I remember "The internet is for porn...porn porn poooorn..."  Facepalm

I should change it, it's disturbing...
Logged

Dr. Cooldude
Guest
« Reply #349 on: January 07, 2013, 04:47:51 AM »

Code:
//sound categories
enum sType {SCOLLIDE,SDAMAGE,SLASER,SCLICK, SEXPLODE};

...

sType used SEXPLODE
It's super effective!
Logged
JobLeonard
Level 10
*****



View Profile
« Reply #350 on: January 07, 2013, 06:43:47 AM »

SCLICK SCLICK SLICK
Logged
SuperDisk
Level 2
**



View Profile
« Reply #351 on: January 12, 2013, 10:41:08 AM »

Code:
print("<INFO> Initializing server. . . ")
sleep(2) #Make the user think i'm doing something complex

Found this dandy in a game from 2011 (man, I sucked)  Facepalm
Logged
_Tommo_
Level 8
***


frn frn frn


View Profile WWW
« Reply #352 on: January 12, 2013, 12:12:20 PM »

Code:
//sound categories
enum sType {SCOLLIDE,SDAMAGE,SLASER,SCLICK, SEXPLODE};

...

this is why they invented _ !
Logged

Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #353 on: January 27, 2013, 11:39:39 PM »

Writing a map lookup routine in a Scheme variant for a class.

Code:
(if (equal? elem (car keys)) ...)

Lisp is hilarious.
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>
sublinimal
Level 8
***



View Profile
« Reply #354 on: January 27, 2013, 11:48:48 PM »

Code:
// TODO:
// -this todo
Logged
Quarry
Level 10
*****


View Profile
« Reply #355 on: January 27, 2013, 11:51:46 PM »

Code:
cPos[currPos].setX(cPos[currPos].z - 0.05f);

 Lips Sealed

Took me way too long to debug
Logged
Geti
Level 10
*****



View Profile WWW
« Reply #356 on: January 28, 2013, 12:24:18 AM »

^ been there  Big Laff
Logged

JobLeonard
Level 10
*****



View Profile
« Reply #357 on: January 28, 2013, 01:19:46 AM »

Code:
cPos[currPos].setX(cPos[currPos].z - 0.05f);

 Lips Sealed

Took me way too long to debug
Read your code backwards. No really, it helps finding bugs like this.
Logged
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #358 on: January 28, 2013, 09:13:08 AM »

Just make incompatible datatypes for orthogonal axes.  Tongue
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>
JobLeonard
Level 10
*****



View Profile
« Reply #359 on: January 28, 2013, 01:47:27 PM »

That might actually work in some languages...
Logged
Pages: 1 ... 16 17 [18] 19 20 ... 27
Print
Jump to:  

Theme orange-lt created by panic