SmartReactives: a .NET library that detects when an expression changes its value

by steenreemon 5/28/16, 1:20 PMwith 23 comments
by primigenuson 5/28/16, 2:39 PM

This looks similar to how Meteor's ReactiveVar package, and lower-level Tracker library, works: https://docs.meteor.com/api/reactive-var.html

It's certainly helped make building real-time user interfaces that update when the data changes significantly easier in my opinion, because you're able to express your intent in code more closely to what you mean rather than having to write all the connecting reactive boilerplate yourself.

by maxxxxxon 5/28/16, 2:09 PM

This is neat. I did something similar to this a while ago for WPF databinding and calculated properties in business objects. Does it support INotifyPropertyChanged?

One of the problems I found is that a lot of team members don't really like to think on that level of abstraction. So it was hard to introduce it team wide and have people keep using it.

by sharpercoderon 5/28/16, 2:54 PM

Why use this instead of or with Rx.NET?

by sandGorgonon 5/28/16, 2:43 PM

Does anyone know if you can do this in reactjs? It would be awesome to build a excel like spreadsheet with user-input formulas.

by nunyabuiznesson 5/28/16, 3:21 PM

If you're using JavaScript, MobX [1] is a library available that implements this pattern, which I find a bit easier to use than Meteor's Tracker yet also comes with super-performant React bindings.

[1] https://github.com/mobxjs/mobx

by newtypeon 5/28/16, 11:36 PM

I wrote something that does this too! I'm looking forward to seeing the differences in our implementations :D

by polskibuson 5/28/16, 4:33 PM

I wonder how does this compare to Jane's Street Incremental library?