Comment on: NPC Programming
Must be.
System.Out.Println
I figured they'd go for Python, way more trendy.
Comment on: Question about logic fallacy in programming algorithms
The above doesn't parse because I have no fucking clue what specific "cause-effect chain" you are talking about, and if I did, I probably would still have no clue where you think a zero is treated as -1 or what, if anything, you think the solution is to the problem that you still haven't convinced me exists in the first place.
This must be how an exceptional programmer like Torvalds feels interacting with the rest of the world.
Comment on: Question about logic fallacy in programming algorithms
This is the only time you've use the word "implemented" in this thread, and there is a corresponding DownRatio function just like the UpRatio function.
Comment on: Question about logic fallacy in programming algorithms
Useless or harmful to what? Spammers? It's supposed to allow users to filter out garbage.
Logic is math and you're not providing enough information for anyone to actually use logic to determine whether your statements are valid.
Comment on: Question about logic fallacy in programming algorithms
He said a case with no upvotes and no downvotes wasn't handled, but didn't say where he saw it.
I looked quickly and found it handled in some places using a ternary operator, but who knows whether those are even related to the places he mentioned.
Comment on: Question about logic fallacy in programming algorithms
You may need to be more specific.
I didn't chase through every file because I'm on my phone, but here's a member function of "score" that handles the "no votes" case.
public double UpRatio
{
get { return (Total != 0 ? Math.Round((double)UpCount / (double)Total, _roundingDecimals) : 0); }
}
Comment on: Question about logic fallacy in programming algorithms
Dude I'm a programmer, and I answered your question, and I still don't know what you are talking about.
I'm not going to sit here and read the source looking for it, so stop being a cock and tell us what it is.
Comment on: Question about logic fallacy in programming algorithms
They can keep a job and produce working things by following patterns made by smarter people.
A strong understanding of logic is only necessary if the code needs to behave predictably in all possible situations, or if you are dealing with low-level code.
Consider a construct like a switch statement. At the end is a default case. If the default behavior breaks nothing, then nobody might ever notice you fucked up.
Comment on: Master/Slave Terminology Was Removed from Python Programming Language
I'm amused by the term "powerbottom". Does it have a corresponding part with a funnier name than "top"?
Extremely, despite all efforts to get faggots to stop doing it?