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 :).
Re:Rube Goldberg machine in HTML forms by tonyle on Thursday April 28, 2016 @01:06AM (#11586652)
This is really cool,though I really wish I didn't look at the source code.
Re:Rube Goldberg machine in HTML forms by azazqadir on Thursday April 28, 2016 @03:13AM (#11586992)
CSS and Javascript mixed with HTML, that's a pain to look at.
Re:Rube Goldberg machine in HTML forms by robotnoises on Thursday April 28, 2016 @08:28AM (#11588272)
Yeah, I guess. This is art, not software, IMO.
Re:Rube Goldberg machine in HTML forms by BinaryIdiot on Thursday April 28, 2016 @01:02AM (#11586638)
Neat though its code could have been significantly simplified through the usage of some focus events and using tabindex to iterate over each field (to a degree; some items would require a little bit more fancy-ness but not much).

Also this page has the biggest html table I've seen in years :)

Re:Rube Goldberg machine in HTML forms by jordanlev on Thursday April 28, 2016 @09:49AM (#11588786)
People are already complaining that the code isn't Rube Goldberg enough as it is, and you want to simplify it even further?! :)
Re:Rube Goldberg machine in HTML forms by yolesaber on Thursday April 28, 2016 @12:35AM (#11586574)
This is genius. So simple yet so amazing. Reminds me of the Blue Ball Machine
Re:Rube Goldberg machine in HTML forms by kalleboo on Thursday April 28, 2016 @12:46AM (#11586602)
> Blue Ball Machine

Oh god, that brings be back. What was that... 10 years ago? Gonna lose an hour now looking up these old GIFs...

Re:Rube Goldberg machine in HTML forms by yolesaber on Thursday April 28, 2016 @01:01AM (#11586636)
The only way to experience it, imho

http://blueballfixed.ytmnd.com/

Re:Rube Goldberg machine in HTML forms by chris_wot on Thursday April 28, 2016 @08:20AM (#11588225)
Holy crap!
Re:Rube Goldberg machine in HTML forms by NegativeLatency on Wednesday April 27, 2016 @11:44PM (#11586441)
I wonder how much email this person is receiving from the mailto at the end
Re:Rube Goldberg machine in HTML forms by charlesdenault on Thursday April 28, 2016 @06:59AM (#11587825)
I'd say he missed out on an opportunity to use that button to build a viral feedback loop! I honestly thought it was an "email to friends" button.
Re:Rube Goldberg machine in HTML forms by Svip on Thursday April 28, 2016 @04:50AM (#11587340)
Considering this was written by a Dane (assuming from the TLD alone), the author might personally have referred to this as a »Storm P.-maskine«.[0] I know I would (being a Dane and all).

[0] https://en.wikipedia.org/wiki/Robert_Storm_Petersen

Re:Rube Goldberg machine in HTML forms by gadders on Thursday April 28, 2016 @04:57AM (#11587358)
Or for the Brits, a Heath Robinson contraption: https://en.wikipedia.org/wiki/W._Heath_Robinson
Re:Rube Goldberg machine in HTML forms by slazaro on Thursday April 28, 2016 @05:42AM (#11587516)
Or for the Spaniards, "Invento del Tebeo" (literally, "a comic invention") https://es.wikipedia.org/wiki/Los_grandes_inventos_del_TBO (link in Spanish)

Edit: Coincidentally, these inventions were attributed to a fictional professor from Copenhagen (since we're talking about Denmark).

Re:Rube Goldberg machine in HTML forms by asteadman on Thursday April 28, 2016 @02:26AM (#11586857)
Recently had to rube goldberg my HTML form POST's to work with API Gateway because of this issue: https://forums.aws.amazon.com/thread.jspa?threadID=205782. Work around I came up with was a ridiculous redirect chain utilizing JWT. This is much prettier though.

If anyone is interested, it seems like you can probably get away with ~20 temporary redirects before your browser starts complaining about redirect loops.

Re:Rube Goldberg machine in HTML forms by vardhanw on Thursday April 28, 2016 @02:26AM (#11586860)
This is linked in from http://brutalistwebsites.com/ which got discussed here sometime back - https://news.ycombinator.com/item?id=11517491.

Interview with the creator - http://brutalistwebsites.com/sebastianlyserena.dk/.

Re:Rube Goldberg machine in HTML forms by joe8756438 on Thursday April 28, 2016 @11:41AM (#11589672)
A while back a friend and I made something in the same spirit for a party invite: http://megazinemagazine.com/winternet/ We released a jquery plugin that renders a pixel font in HTML form elements: https://github.com/1800joe/LoResForm
Re:Rube Goldberg machine in HTML forms by partycoder on Thursday April 28, 2016 @01:55AM (#11586776)
It's not a chain reaction.
Re:Rube Goldberg machine in HTML forms by alphanumeric0 on Thursday April 28, 2016 @08:38AM (#11588327)
I'm pretty sure most frontend work with Javascript is already a Rube Goldberg machine.
Re:Rube Goldberg machine in HTML forms by gjolund on Thursday April 28, 2016 @09:50AM (#11588798)
The use of setTimeout makes this an animation, not a chain of events.
Re:Rube Goldberg machine in HTML forms by XaspR8d on Thursday April 28, 2016 @12:13AM (#11586526)
Err... how do you start it?

EDIT: Just a network hiccup apparently.

EDIT2: Though I really wish it played Danny Elfman's "Breakfast Machine" like the old days of the ball machine animation...

Re:Rube Goldberg machine in HTML forms by mizzao on Thursday April 28, 2016 @12:14AM (#11586529)
Do you have Javascript enabled?
Re:Rube Goldberg machine in HTML forms by fumadelbong on Monday May 09, 2016 @09:10AM (#11659520)
jandmor
Re:Rube Goldberg machine in HTML forms by onecooldev24 on Thursday April 28, 2016 @07:13AM (#11587880)
Really cool and awesome work
Re:Rube Goldberg machine in HTML forms by q065 on Wednesday May 04, 2016 @06:04AM (#11627293)
1
Re:Rube Goldberg machine in HTML forms by nizhi on Tuesday May 03, 2016 @06:52PM (#11624886)
ñññ
Re:Rube Goldberg machine in HTML forms by nizhi on Tuesday May 03, 2016 @06:54PM (#11624896)
:3
Re:Rube Goldberg machine in HTML forms by asdffdsa123 on Tuesday May 03, 2016 @06:34PM (#11624799)
Wat
Re:Rube Goldberg machine in HTML forms by bigtones on Thursday April 28, 2016 @01:41AM (#11586740)
Fantastic, I really enjoyed it.
Re:Rube Goldberg machine in HTML forms by ryui on Tuesday May 03, 2016 @04:20PM (#11623878)
fasdfa
Re:Rube Goldberg machine in HTML forms by prueba111111 on Tuesday May 03, 2016 @04:16PM (#11623844)
oryea
Re:Rube Goldberg machine in HTML forms by prueba111111 on Tuesday May 03, 2016 @04:16PM (#11623843)
prueba
Re:Rube Goldberg machine in HTML forms by gfsdgfdg on Tuesday May 03, 2016 @08:50AM (#11620099)
sdf
Re:Rube Goldberg machine in HTML forms by sideproject on Thursday April 28, 2016 @01:04AM (#11586644)
you rock.
Re:Rube Goldberg machine in HTML forms by eeq on Tuesday May 03, 2016 @11:16PM (#11625897)
eqeqeqe
Re:Rube Goldberg machine in HTML forms by eeq on Tuesday May 03, 2016 @11:16PM (#11625896)
eqeee
Re:Rube Goldberg machine in HTML forms by asakapab0i on Thursday April 28, 2016 @12:30AM (#11586561)
JQuery...
Re:Rube Goldberg machine in HTML forms by yolesaber on Thursday April 28, 2016 @12:39AM (#11586586)
Hundreds of lines of handcrafted artisanal JQuery...
Re:Rube Goldberg machine in HTML forms by carrja99 on Thursday April 28, 2016 @01:05AM (#11586650)
very artisanal