|
| The latest, and not the first... | Mr. Furxheir, R.M.W. | February 16, 2005 - 11:13 | | D. N. Vercáriâ | February 16, 2005 - 16:46 |
| Parent message | | Mr. Furxheir, R.M.W. | February 16, 2005 - 11:13 |
| RE: The latest, and not the first...(#1098), posted by D. N. Vercáriâ, [IP Hidden], February 16, 2005 - 16:46. Viewed 789 times. |
|
D. N. Vercáriâ Group: citizens (4498 posts total) (last post: March 15, 2008 - 16:51) Citizen #20: Martí- Paìr Furxhéir | > > A theoretical question:
> >
> > Is it a wanted effect that by saying "the vote remains open until X days from today, or twenty-four hours after we reach a quorum of Y votes" it might happen, that the vote is over within 24 hours, given that the quorum is reached immediately after the vote opens?
>
>
> We continue until X days have elasped.
>
> We end when BOTH conditions have been met.
>
>
> So, if we reach Quorum within X days, we end after X days.
>
> If we do not, we continue until 24 hours after the Quorum.
I still understand it like
if ((elapsed_days <= X) || ((quorum_reached == 1) && (24_hours_passed == 0)))
continue_voting ();
else
announce_results();
- D. N. Vercáriâ |
|
| | Mr. Furxheir, R.M.W. | February 17, 2005 - 09:52 |
| Parent message | | D. N. Vercáriâ | February 16, 2005 - 16:46 |
| RE: The latest, and not the first...(#1106), posted by Mr. Furxheir, R.M.W., [IP Hidden], February 17, 2005 - 09:52. Viewed 657 times. |
|
Mr. Furxheir, R.M.W. Group: admins (1791 posts total) (last post: November 24, 2007 - 15:07) Citizen #20: Martí- Paìr Furxhéir |
> if ((elapsed_days <= X) || ((quorum_reached == 1) && (24_hours_passed == 0)))
> continue_voting ();
> else
> announce_results();
>
Actually, it would be :
if ((elapsed_days <= X) && (quorum_reached == 1) && (24_hours_passed_since_quorum == 0))
continue_voting ();
else
announce_results();
You need BOTH the elasped days AND the Quorum.
What does an elephant with Diarrhea need ?
Lot's of space...
|
|
| | D. N. Vercáriâ | February 17, 2005 - 10:29 |
| Parent message | | Mr. Furxheir, R.M.W. | February 17, 2005 - 09:52 |
| RE: This one might do better(#1107), posted by D. N. Vercáriâ, [IP Hidden], February 17, 2005 - 10:29. Viewed 695 times. |
|
D. N. Vercáriâ Group: citizens (4498 posts total) (last post: March 15, 2008 - 16:51) Citizen #20: Martí- Paìr Furxhéir | >
> > if ((elapsed_days <= X) || ((quorum_reached == 1) && (24_hours_passed == 0)))
> > continue_voting ();
> > else
> > announce_results();
> >
>
>
> Actually, it would be :
>
> if ((elapsed_days <= X) && (quorum_reached == 1) && (24_hours_passed_since_quorum == 0))
> continue_voting ();
> else
> announce_results();
>
>
> You need BOTH the elasped days AND the Quorum.
Yes, but you certainly meant to say:
if ((elapsed_days <= X) && ((quorum_reached == 0)||((quorum_reached == 1) && (24_hours_passed_since_quorum == 0))))
continue_voting ();
else
announce_results();
because in your algorithm quorum_reached == 0 would mean that the result of the whole boolean expression is 0 ("FALSE"), thus announce_results() would have to be performed. ;-)
- D. N. Vercáriâ |
|
| | Mr. Furxheir, R.M.W. | February 17, 2005 - 10:48 |
| Parent message | | D. N. Vercáriâ | February 17, 2005 - 10:29 |
| Actually...(#1108), posted by Mr. Furxheir, R.M.W., [IP Hidden], February 17, 2005 - 10:48. Viewed 719 times. |
|
Mr. Furxheir, R.M.W. Group: admins (1791 posts total) (last post: November 24, 2007 - 15:07) Citizen #20: Martí- Paìr Furxhéir |
> if ((elapsed_days <= X) && ((quorum_reached == 0)||((quorum_reached == 1) && (24_hours_passed_since_quorum == 0))))
> continue_voting ();
> else
> announce_results();
>
> because in your algorithm quorum_reached == 0 would mean that the result of the whole boolean expression is 0 ("FALSE"), thus announce_results() would have to be performed. ;-)
Actually, this is even better :
if ( elapsed_days <= X || quorum_reached == 0 || 24_hours_passed_since_quorum == 0 )
{
continue_voting ();
}
else
{
announce_results();
}
As long as ONE of the 3 conditions is true, we keep voting.
What does an elephant with Diarrhea need ?
Lot's of space...
|
|
| | Justice dal Navâ | February 17, 2005 - 17:58 |
| Parent message | | Mr. Furxheir, R.M.W. | February 17, 2005 - 10:48 |
| AGGGGGGGGGGGH!(#1110), posted by Justice dal Navâ, [IP Hidden], February 17, 2005 - 17:58. Viewed 756 times. |
|
Justice dal Navâ Group: admins (5222 posts total) (last post: March 14, 2008 - 13:43) Citizen #20: Martí- Paìr Furxhéir | >
> > if ((elapsed_days <= X) && ((quorum_reached == 0)||((quorum_reached == 1) && (24_hours_passed_since_quorum == 0))))
> > continue_voting ();
> > else
> > announce_results();
> >
> > because in your algorithm quorum_reached == 0 would mean that the result of the whole boolean expression is 0 ("FALSE"), thus announce_results() would have to be performed. ;-)
>
>
> Actually, this is even better :
>
> if ( elapsed_days <= X || quorum_reached == 0 || 24_hours_passed_since_quorum == 0 )
> {
> continue_voting ();
> }
> else
> {
> announce_results();
> }
NERD OVERLOAD! ARGH!
--------------------------------------
E isc al Arendra del Bún Úr. Fáden es fóclan gleðen fer brach. El Bún Úr fólat ëtfin cún sino synt prepar. Cún þis paset, þa omin isc fólen. Es lyþ was sár. -- vól Cúliðlaþ
Chirischtôval Curt Cavéir,
Dean of the Republic of Talossa
|
|
| | D. N. Vercáriâ | February 18, 2005 - 03:31 |
| Parent message | | Justice dal Navâ | February 17, 2005 - 17:58 |
| RE: Shush!(#1113), posted by D. N. Vercáriâ, [IP Hidden], February 18, 2005 - 03:31. Viewed 779 times. |
|
| | Justice dal Navâ | February 18, 2005 - 07:20 |
| Parent message | | D. N. Vercáriâ | February 18, 2005 - 03:31 |
| RE: Shush!(#1114), posted by Justice dal Navâ, [IP Hidden], February 18, 2005 - 07:20. Viewed 740 times. |
|
Justice dal Navâ Group: admins (5222 posts total) (last post: March 14, 2008 - 13:43) Citizen #20: Martí- Paìr Furxhéir | > :-)
Don't make me get the spray! If I fumigate thsi forum, all the nerds will die.
Wait a sec, that would leave... no-one...
--------------------------------------
E isc al Arendra del Bún Úr. Fáden es fóclan gleðen fer brach. El Bún Úr fólat ëtfin cún sino synt prepar. Cún þis paset, þa omin isc fólen. Es lyþ was sár. -- vól Cúliðlaþ
Chirischtôval Curt Cavéir,
Dean of the Republic of Talossa
|
|
| | D. N. Vercáriâ | February 17, 2005 - 12:08 |
| Parent message | | Mr. Furxheir, R.M.W. | February 17, 2005 - 10:48 |
| RE: Wahwah!(#1109), posted by D. N. Vercáriâ, [IP Hidden], February 17, 2005 - 12:08. Viewed 729 times. |
|
D. N. Vercáriâ Group: citizens (4498 posts total) (last post: March 15, 2008 - 16:51) Citizen #20: Martí- Paìr Furxhéir |
> Actually, this is even better :
>
> if ( elapsed_days <= X || quorum_reached == 0 || 24_hours_passed_since_quorum == 0 )
> {
> continue_voting ();
> }
> else
> {
> announce_results();
> }
>
> As long as ONE of the 3 conditions is true, we keep voting.
Wow, that's right. Now I know that Miestrâ's way to express this was correct, and that I was about to read something into her sentence that hasn't been there. Thanks, M.-P. :-)
- D. N. Vercáriâ |
|
|
|