News for hackers. Stuff that matters.
Re:What is reactive programming? by kazinator on Wednesday August 13, 2014 @09:26AM (#8172741)
This gives me an great idea. What if we put these variables into a grid displayed on the screen? Then you will be able to enter some values into some of the cells, and the dependent ones update themselves automatically. The elements of the grid could be regarded as array elements indexed by coordinate, and use relative or absolute addressing to refer to each other's coordinates, making it easy to replicate dependency rules across rows and columns, to generate entire tables which update themselves.
Re:What is reactive programming? by kyllo on Wednesday August 13, 2014 @09:55AM (#8172869)
What a novel idea!

Seriously though, Angular gives you the ability to do this in the browser, here's an example of how to implement an Excel-like spreadsheet using Angular: http://thomasstreet.com/blog/legacy/spreadsheet.html

Re:What is reactive programming? by sehr on Wednesday August 13, 2014 @10:04AM (#8172914)
It's not really unique to Angular is it?
Re:What is reactive programming? by kyllo on Wednesday August 13, 2014 @10:12AM (#8172956)
No, I think the other major client-side MVC frameworks (Backbone, Ember, React) are also geared toward this reactive paradigm.
Re:What is reactive programming? by kazinator on Wednesday August 13, 2014 @12:09PM (#8173570)
Kenny Tilton's "Cells" project (Common Lisp) implements CLOS slots that are linked to other slots and automatically update. I believe this precedes the reactive programming fad by many years.
Re:What is reactive programming? by pjc50 on Wednesday August 13, 2014 @09:47AM (#8172841)
The spreadsheet, the one "graphical programming language" to make it into widespread use by nonexperts.
Re:What is reactive programming? by VLM on Wednesday August 13, 2014 @10:54AM (#8173157)
And in practice "use relative or absolute addressing" is resolved via random number generation. Any later problems resulting from confusing the two can just be fixed by filing tickets with IT.

Also used as the corporate standard database management system and as what boils down to a mail merge client, and although this appears to outsiders as bad standup comedy, it is unfortunately merely factual.

Possibly one of the quickest ways to measure the dilbertian level of rot of an organization is to propose a small database and ask what tool they'd use to hold that information. Mysql, OK. Postgresql, eh, OK. Oracle, ummm. Excel, find the exit door and start running. Microsoft Word, Cthulhu take us to end the agony. I've seen all of the above. And survived. Barely. Perhaps not with my sanity intact.

edited: spreadsheets fit into the design pattern of jokes where you got a problem to fix, so you try to implement a spreadsheet to fix it, now you got two problems to fix. This is probably funnier in its original regex and perl and web framework variants.

Re:What is reactive programming? by throwaway283719 on Wednesday August 13, 2014 @09:28AM (#8172746)
Sounds excellent.
Re:What is reactive programming? by meowface on Wednesday August 13, 2014 @09:40AM (#8172805)
Clever.
Re:What is reactive programming? by taylodl on Wednesday August 13, 2014 @11:36AM (#8173367)
That's what Lotus Improv did, twenty years ago. It was too radical for users at the time and so sales were pretty much nonexistent.

https://en.wikipedia.org/wiki/Lotus_Improv

Re:What is reactive programming? by kazinator on Wednesday August 13, 2014 @02:36PM (#8174347)
That's also what VisiCalc did; released in 1981 on Apple II machines:

https://en.wikipedia.org/wiki/VisiCalc

Re:What is reactive programming? by seanmcdirmid on Wednesday August 13, 2014 @09:37AM (#8172790)
Scaling would be quite difficult. I'm sure you could hack maybe a Turing machine out of this paradigm, but it would be ugly and mostly an esoteric exercise.