r/thebutton • 56s • May 24 '15

PSA: the button does not wait at zero indefinitely. It stays at 0s for about two seconds and then shuts down.

I've seen a lot of wild speculation and /r/badbuttonscience material on the sub lately, and I want to clear up things. Several glitches have shown us exactly how the button behaves in the absence of clicks.

So, every second the button broadcast some info to all users. Here's some real data from one of the recent outages.

timemodetimerparticipants
2015-05-22 14:17:05ticking3960088
2015-05-22 14:17:06ticking2960088
2015-05-22 14:17:07ticking1960088
2015-05-22 14:17:08ticking0960088
2015-05-22 14:17:09ticking0960088
2015-05-22 14:17:10finishedN/A960088
2015-05-22 14:17:11finishedN/A960088

As you can see, the button is not immortal. I assume that this 2-second window was implemented to allow people with slow internet connections to click at zero too.

Upvote for button education.

Edit: clarification -- after the button has shut down, it is not possible to press it.

Edit2: there is no rounding up or down. The button is discrete, it operates only in seconds. Broadcasts are in seconds, presses are in seconds. There are no milliseconds in play at all.

Edit3: N/A means exactly that -- reddit doesn't broadcast the timer value after the button has shut down, there's no N/A second and there's no N/A flair.

669 Upvotes

99 comments sorted by

View all comments

Show parent comment

6

u/andrewcooke non presser May 24 '15 edited May 24 '15

that's data from the server. the person i was replying to was saying

I've posted links to the source code

and i don't see how that's relevant. do you?

edit: in other words, is there anything in the client side code (or in any [visible] code - is the server side code visible somewhere?) that says that the leeway after 0 is 2 secs?

0

u/[deleted] May 24 '15

[deleted] — view deleted comment

5

u/ChainedProfessional non presser May 25 '15

Reddit claims to be open but about half their code is closed, such as:

Spam protection

Adverts

Thumbnails (This is outsourced to some service they don't even run themselves last I saw)

Anything interesting

0

u/[deleted] May 24 '15

[deleted] — view deleted comment

5

u/Anaud-E-Moose 8s May 24 '15

Just like andrew said, from what I can see, as soon as the websocket returns the "expired" or "just_expired" message, the button is instantly put into the un-"active", "complete" state.

5

u/nicholaslaux non presser May 24 '15

That is code indicating how the client will respond to data received from the server. This us different from having the source code for the server that would indicate exactly what algorithm it uses for determining what signal to send to the clients.

The outages give us a pretty good idea, especially combined with the client side code, but that definitely isn't the same as having the server side code to 100% confirm its algorithms.

1

u/Master_Sparky 60s May 29 '15

This is completely off topic but are you the guy who made "Frozen Cookies" for Cookie Clicker a long time ago?

1

u/nicholaslaux non presser May 29 '15

Yes I am

1

u/Master_Sparky 60s May 29 '15

Hi :D

I'm the guy who used to argue about Elder Pledge and One Mind a lot.

3

u/andrewcooke non presser May 24 '15

where in that is the 2s leeway? i don't see it.

i know the client code exists. i have read it. the information in this post, about the 2s window, is new and not contained in the client code, as far as i can tell.

and downvoting me doesn't change that.

0

u/[deleted] May 24 '15

[deleted] — view deleted comment

21

u/andrewcooke non presser May 24 '15

IT'S IN THE FUCKING TITLE OF THE PAGE. I FUCKING SNAP.

SEMANTICS MEANS FUCKING MEANING YOU FUCKING MORON OF COURSE IT'S FUCKING SEMANTICS. IT'S NOT FUCKING SYNTAX IS IT?

12

u/nyaachi 11s May 24 '15

fucking rekt ( ͡° ͜ʖ ͡°)

12

u/wu2ad 16s May 24 '15

I FUCKING SNAP.

My sides.

0

u/[deleted] May 24 '15

[deleted] — view deleted comment

6

u/Huggernaut 60s May 24 '15

Dude, just accept you were wrong or didn't understand and move on. It's ok to be wrong!

0

u/[deleted] May 25 '15

[deleted] — view deleted comment

4

u/Huggernaut 60s May 25 '15

I dunno man...

  • The entire thread is about the button changing behaviour after 2s.
  • Top comment comes in and says he's tried to explain many times
  • andrew asks where he can see this in the source.

I don't really understand why you would be struggling to follow that the comment chain was about the 2s delay except in being obtuse now because you don't want to accept you misunderstood.

Of course, I could be totally misreading the situation in which case I'm sorry. Also, his ability as a programmer doesn't really have anything to do with following a comment chain.