JobLeonard
|
|
« Reply #300 on: November 17, 2012, 05:00:41 AM » |
|
*
I like how your tired self finds simpler writing that stuff rather than coming up with a decent solution Well, it was a (kind of) fractal, and nested for-loops aren't that hard to grasp. I still think it's conceptually not that difficult (if incomprehensible when approaching it from the resulting code).
|
|
|
Logged
|
|
|
|
Evan Balster
|
|
« Reply #301 on: November 17, 2012, 03:36:15 PM » |
|
Looking through a half-baked prototype I'm redoing for F uck This Jam float baffle; Uint32 action; String entry; Huh. Weird variable name. It doesn't do anything else. What was this variable even for?
|
|
|
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>
|
|
|
Code_Assassin
|
|
« Reply #302 on: November 17, 2012, 03:59:40 PM » |
|
snip
Lol
|
|
|
Logged
|
|
|
|
SuperDisk
|
|
« Reply #303 on: November 17, 2012, 04:23:58 PM » |
|
What was this variable even for? Baffling you.
|
|
|
Logged
|
|
|
|
moi
|
|
« Reply #304 on: November 17, 2012, 07:24:21 PM » |
|
What was this variable even for? scientists
|
|
|
Logged
|
subsystems subsystems subsystems
|
|
|
George Michaels
|
|
« Reply #305 on: November 19, 2012, 01:14:43 AM » |
|
Just finishing up the player management code I wrote while drunk last night and found these gems: // God I love linked lists <3 Buffer* b = new Buffer(id, first); first = b;
// Chuck a hissy fit if there's nothing for baby if(first == NULL) throw;
|
|
|
Logged
|
Yeah, that.
|
|
|
Quarry
|
|
« Reply #306 on: November 19, 2012, 09:25:24 AM » |
|
I think most of the things here are rigged
|
|
|
Logged
|
|
|
|
0x1A
|
|
« Reply #307 on: November 19, 2012, 11:41:37 AM » |
|
I think most of the things here are rigged
Or they're genuine dun goofd
|
|
|
Logged
|
Segmentation fault (core dumped)
|
|
|
Evan Balster
|
|
« Reply #308 on: November 19, 2012, 11:45:02 AM » |
|
I think most of the things here are rigged
Except where pointed out, my stuff is all legit. Comment humor is of course in a class of its own since it's a great way to give one's future self an unexpected giggle.
|
|
|
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>
|
|
|
JMickle
|
|
« Reply #309 on: November 20, 2012, 10:06:30 AM » |
|
var p:Point;
for (p in v /*lololol*/ ) { } shut up, me
|
|
|
Logged
|
|
|
|
Code_Assassin
|
|
« Reply #310 on: November 20, 2012, 10:23:17 AM » |
|
var p:Point;
for (p in v /*lololol*/ ) { } shut up, me Is that what I think it means LOL(pervert).I see what you did there.
|
|
« Last Edit: November 20, 2012, 10:35:03 AM by Code_Assassin »
|
Logged
|
|
|
|
Evan Balster
|
|
« Reply #311 on: November 20, 2012, 10:27:03 PM » |
|
Making an audio class that performs some signal analysis. I have a structure called "Feedback" which sends a waveform's worth of audio data back at a time from the realtime thread -- Bonus nerd points: when I giggled and said "that's going in the thread", my artist roommate knew what I was talking about.
|
|
|
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>
|
|
|
dr.crow
Level 1
|
|
« Reply #312 on: November 24, 2012, 01:58:08 AM » |
|
Went through a snake clone i wrote while i was still in high school. Stumbled upon this: void leggtiltoadd(int i) { toadd+=i; } void leggtilhvistoadd() { if(toadd) { toadd--; lengde++; } } When I programmed this, I had the amazing idea that programming in Norwegian would be useful because then i would know the difference between my own code and tutorial code. "legg til" means "add to", so basically my functions are named "addtotoadd" and "addtoiftoadd". So I guess they are kind of palindromes
|
|
|
Logged
|
|
|
|
Dr. Cooldude
Guest
|
|
« Reply #313 on: November 24, 2012, 02:54:40 AM » |
|
Went through a snake clone i wrote while i was still in high school. Stumbled upon this: void leggtiltoadd(int i) { toadd+=i; } void leggtilhvistoadd() { if(toadd) { toadd--; lengde++; } } When I programmed this, I had the amazing idea that programming in Norwegian would be useful because then i would know the difference between my own code and tutorial code. "legg til" means "add to", so basically my functions are named "addtotoadd" and "addtoiftoadd". So I guess they are kind of palindromes Heh, I'm danish and I could definitely see something was wrong with the method names, lol
|
|
|
Logged
|
|
|
|
Evan Balster
|
|
« Reply #314 on: November 27, 2012, 02:52:54 PM » |
|
The content of a reduntant file, "universe.cpp", which I finally got around to removing, follows... //#include <iostream> //#include "pg_universe.h"
//using namespace std; //using namespace plaidgadget;
//Alas! It is a great and lonely place
//The silence pierced only by
//My sighs |||||| ||||||
|
|
|
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>
|
|
|
impulse9
Guest
|
|
« Reply #315 on: November 27, 2012, 03:36:40 PM » |
|
this->buffer = buffer->buffer
|
|
|
Logged
|
|
|
|
Dr. Cooldude
Guest
|
|
« Reply #316 on: November 27, 2012, 11:38:46 PM » |
|
The content of a reduntant file, "universe.cpp", which I finally got around to removing, follows... //#include <iostream> //#include "pg_universe.h"
//using namespace std; //using namespace plaidgadget;
//Alas! It is a great and lonely place
//The silence pierced only by
//My sighs |||||| ||||||That was beautiful.
|
|
|
Logged
|
|
|
|
JobLeonard
|
|
« Reply #317 on: November 28, 2012, 07:35:27 AM » |
|
|
|
|
Logged
|
|
|
|
Evan Balster
|
|
« Reply #318 on: November 28, 2012, 02:23:42 PM » |
|
Continuing to clean out my engine codebase (Whose size surprises me!) and I keep finding little gems. This one bandaids a link error with boost::filesystem under MSVC++ -- #if _WIN32 //Template instantiations that are needed to pacify boost::filesystem... class VisualStudioIsDumb : public std::codecvt<wchar_t, char, int> { public: class MyFacet : public std::locale::facet {public: static std::locale::id id;}; std::locale loc, loc2; VisualStudioIsDumb() : loc("C"), loc2(loc, new MyFacet()) {} }; static VisualStudioIsDumb WhyIsVisualStudioSoDumb; static std::locale ThisIsAllVerySilly; std::locale::id VisualStudioIsDumb::MyFacet::id; #endif
|
|
|
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>
|
|
|
kiddRaddical
|
|
« Reply #319 on: November 30, 2012, 04:04:47 PM » |
|
So I'm making some lil monkeys in my game, and I store them in a generic List. I'm looping through them, with an index named 'c'. While checking if the current monkey in the list is null, the code ends up like: if(monkey[c]){//monkey do ...
|
|
|
Logged
|
posting (too) regularly on Twitter: @EthanRedd EthanRedd.com
|
|
|
|