News for hackers. Stuff that matters.
Re:Rube Goldberg machine in HTML forms by mizzao on Thursday April 28, 2016 @12:14AM (#11586528)
I don't understand how this is a Rube Goldberg machine. Everything that happens is triggered by a Javascript setTimeout call, not from the action that happened before.
Re:Rube Goldberg machine in HTML forms by yolesaber on Thursday April 28, 2016 @12:41AM (#11586591)
A Rube Goldberg machine is a contraption, invention, device or apparatus that is deliberately over-engineered to perform a simple task in a complicated fashion, generally including a chain reaction [from wikipedia]. In this example, the simple task is displaying the email button. And most computing operations are Rube Goldberg state machines if you think about it, no?
Re:Rube Goldberg machine in HTML forms by joshschreuder on Thursday April 28, 2016 @01:09AM (#11586665)
I think the point was that it's not really a chain reaction as each action has its own timer and will happen regardless of if any other action completes or doesn't complete.

Which is not to say I didn't thoroughly enjoy it :)

Re:Rube Goldberg machine in HTML forms by yolesaber on Thursday April 28, 2016 @11:32AM (#11589596)
It's an asynchronous embarrassingly parallel Rube Goldberg machine ;)
Re:Rube Goldberg machine in HTML forms by oxguy3 on Thursday April 28, 2016 @12:15AM (#11586530)
It's meant to look like one, even if it technically isn't implemented as one.
Re:Rube Goldberg machine in HTML forms by ErikAugust on Thursday April 28, 2016 @12:57AM (#11586625)
Would be cool if it used a huge callback or promises chain. Still cool/fun concept.
Re:Rube Goldberg machine in HTML forms by akita-ken on Thursday April 28, 2016 @12:47AM (#11586604)
I wonder if it was intentionally implemented this way, would memory have been an issue with the amount of callback chaining required?
Re:Rube Goldberg machine in HTML forms by BinaryIdiot on Thursday April 28, 2016 @12:59AM (#11586631)
> would memory have been an issue with the amount of callback chaining required?

Unlikely; you gotta hit a really deep stack to really kill something with callback chaining.

It could have used a start button that sets focus to the first one and then each focus change makes it go to the next but without the setTimeouts it would go by so far it wouldn't be nearly as fun.

Re:Rube Goldberg machine in HTML forms by perilunar on Thursday April 28, 2016 @03:27AM (#11587047)
You could still add a delay function with a setTimeout, but you'd only need one.
Re:Rube Goldberg machine in HTML forms by lexhaynes on Thursday April 28, 2016 @01:13PM (#11590401)
A bit of a party pooper :).