Off Topic > Off Topic
Programming Megathread
<< < (91/241) > >>
Kingdaro:

--- Quote from: TheBlackParrot on February 09, 2016, 05:11:08 AM ---speaking of
i rewrote a static, 1,356 character long command today
https://github.com/TheBlackParrot/strimmer-redesign/commit/02efbf838d9b1a00dc9187677aea2f91b164ead0#diff-f16bfd5b13b9960879905cedef55d6c1L354

--- End quote ---

PHP is one hell of a drug.
Waru:

--- Quote from: Foxscotch on February 08, 2016, 11:31:20 PM ---was that intentionally messed up, as a joke, since we're talking about formatting? or what

--- End quote ---

yes


--- 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 ---

a question picker that picks questions in arrays based on a difficulty setting. 0-19 is easy, 20-29 is medium, etc

there's also a thing to make it not pick the same number twice in a row
$trinick:
why do you guys leave orphan lines with elses on them?

fn z() {
  if(someValueX == someValueY) {
    doSomething();
    doSomethingElse();
  } else {
    doSomethingEntirelyDifferent();
    return 1;
  }
}
Jairo:

--- Quote from: $trinick on February 09, 2016, 06:02:36 PM ---why do you guys leave orphan lines with elses on them?

--- End quote ---
cleanliness is next to managerialness
Foxscotch:

--- Quote from: $trinick on February 09, 2016, 06:02:36 PM ---why do you guys leave orphan lines with elses on them?

fn z() {
  if(someValueX == someValueY) {
    doSomething();
    doSomethingElse();
  } else {
    doSomethingEntirelyDifferent();
    return 1;
  }
}

--- End quote ---
I don't like that, either
it's another case of getting confused while skimming. the else being on the same line as the closing bracket makes me think it's just more code in the initial if
Navigation
Message Index
Next page
Previous page

Go to full version