These are chat archives for pozadi/kefir

27th
Apr 2015
Artem Kozlov
@aindlq
Apr 27 2015 06:56
@pozadi nice, especially I like ajax one.
Petr Myazin
@pqr
Apr 27 2015 08:30
example idea: pricing appliction. Editable table: buttons add/remove row; editable columns (input elements): price, quantity, VAT % ; reactive calculated columns: "VAT Amount" = price quantity VAT% / 100, "Amount" = price * quantity + "VAT Amount"; total values under the table reactive calculated: "Total Amount incl. VAT" = sum(Amount), "Total VAT" = sum(VAT Amount)
very practical business related example!
Roman Pominov
@rpominov
Apr 27 2015 09:43
@pqr so basically similar to ToDoMVC? I was trying to create a ToDoMVC example, but seems like FRP as it is not good for this kind of stuff.
Basically when you want to actively change the DOM, and at same time have event sources it the DOM you changing, FRP don't work very well.
It is possible, but there is better to tools for that king of stuff (React).
Roman Pominov
@rpominov
Apr 27 2015 09:50
Also perhaps with some extension on top of FRP it could be simpler (https://github.com/staltz/cycle)