Off Topic > Off Topic
Programming Megathread
Foxscotch:
--- Quote from: Waru on February 08, 2016, 10:59:58 PM ---
--- Code: ---if difficulty == "easy" {
randomize();
randval = irandom_range(0,19);
while randval = old_randval {
randomize();
randval = irandom_range(0,19);
}
showquestion = question[randval];
old_randval = randval;
}
else if difficulty == "medium" {
randomize();
randval = irandom_range(20,39);
while randval = old_randval {
randomize();
randval = irandom_range(20,39);
}
showquestion = question[randval];
old_randval = randval;
}
--- End code ---
--- End quote ---
was that intentionally messed up, as a joke, since we're talking about formatting? or what
also I was wondering what language used brackets for if statements but didn't require parentheses around the condition, apparently it's that game maker thing, and that's kinda gross
--- Quote from: Kingdaro on February 08, 2016, 11:30:04 PM ---Made it more readable for you. But what the hell is it?
--- End quote ---
:(
Kingdaro:
--- Quote from: Foxscotch on February 08, 2016, 11:31:20 PM ---:(
--- End quote ---
kek
BluetoothBoy:
--- Quote from: Kingdaro on February 08, 2016, 11:42:37 PM ----ide-
kek
--- End quote ---
Gotta love Atom. :)
Glass Joe:
you people can nitpick about where the first brace should go and all, but the people who really need to go to hell are the people who pile all their code in one line
TheBlackParrot:
--- Quote from: Glass Joe on February 09, 2016, 03:40:55 AM ---you people can nitpick about where the first brace should go and all, but the people who really need to go to hell are the people who pile all their code in one line
--- End quote ---
speaking of
i rewrote a static, 1,356 character long command today
https://github.com/TheBlackParrot/strimmer-redesign/commit/02efbf838d9b1a00dc9187677aea2f91b164ead0#diff-f16bfd5b13b9960879905cedef55d6c1L354