Edit Page
This is a talk page. New posts should be placed at the bottom of the page/relevant topic. Please remember to sign your posts using four tildes (
~~~~
).The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
If you are undoing an edit that is not vandalism, explain the reason in the edit summary rather than using only the default message.
Latest revision | Your text | ||
Line 20: | Line 20: | ||
:::Or maybe no one get nothing :| [[User:Foo|'''Foo''']] 11:05, 3 January 2007 (CST) |
:::Or maybe no one get nothing :| [[User:Foo|'''Foo''']] 11:05, 3 January 2007 (CST) |
||
:Courious as to what programming language that is. Im use to BASIC my self, so it would be a if...then...else statement. Either way if i programed it i would evoid everyone getting a hat if the total vote was 0 because of lack of participation. Sort of like if scoreTotal 0 then endif else if scoreDwayna > scoreGrenth... and so on. Other then that though i do not no how it would be a tie.--[[User:68.102.128.17|68.102.128.17]] 17:04, 4 January 2007 (CST) |
:Courious as to what programming language that is. Im use to BASIC my self, so it would be a if...then...else statement. Either way if i programed it i would evoid everyone getting a hat if the total vote was 0 because of lack of participation. Sort of like if scoreTotal 0 then endif else if scoreDwayna > scoreGrenth... and so on. Other then that though i do not no how it would be a tie.--[[User:68.102.128.17|68.102.128.17]] 17:04, 4 January 2007 (CST) |
||
β | ::It would not be hard to program an exception in for same score in the rare occasion that it could/would happen, I doubt it did ever happen though so we shall never find out what would have happened. If anyone actually cares that much anyway. --''<font color="Green">[[User:Lemming64|Lemming64]]</font>'' 17:23, 4 January 2007 (CST) |
||
:::My example was Java. I corrected where my semicolons were. Anyway, while it's a good practice to account for every possible case (ties, zero participation as you have, etc.), my simple code would account for these cases to allow the program to continue flowing. But if you had a "if scoreDwayna == scoreGrenth" case, you'd have to creatively think of something for Dwayna and Grenth to say if they tied. Since it likely won't happen (and hasn't happened ever yet) the developers have probably found it easier to have a simple if-else (or if-then-else depending on language) instead of a long tree of near 0 probability cases. Also, just a comment about your proposed flow--it's better to put the most likely cases at the top of an if tree. 0 participation isn't as likely, and should be near the bottom. |
:::My example was Java. I corrected where my semicolons were. Anyway, while it's a good practice to account for every possible case (ties, zero participation as you have, etc.), my simple code would account for these cases to allow the program to continue flowing. But if you had a "if scoreDwayna == scoreGrenth" case, you'd have to creatively think of something for Dwayna and Grenth to say if they tied. Since it likely won't happen (and hasn't happened ever yet) the developers have probably found it easier to have a simple if-else (or if-then-else depending on language) instead of a long tree of near 0 probability cases. Also, just a comment about your proposed flow--it's better to put the most likely cases at the top of an if tree. 0 participation isn't as likely, and should be near the bottom. |