These are chat archives for ractivejs/ractive

3rd
Jul 2017
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:15
Guys!! How u all doing?
I was just checking everything around
on edge
on change event got removed right?
Chris Reeves
@evs-chris
Jul 03 2017 18:16
change event was replaced by recursive observers in 0.9
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:16
I was just about to open the changelog
Chris Reeves
@evs-chris
Jul 03 2017 18:17
They're a bit more fine grained than the change event
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:17
I agree
Chris Reeves
@evs-chris
Jul 03 2017 18:17
but if you need an analog, ractive.observe('**', ...) should do
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:17
Anyway to "observe" for dom changes?
Yea, just did the same. It worked
Any way*
It's not important, but I was doing different data manipulation
Chris Reeves
@evs-chris
Jul 03 2017 18:18
what sort of dom changes?
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:18
and was calculating how long took for each method to get me the right data.
Sorry i just got a network disconnect. lol
I just wanted to add how long took Ractive to get the change parse it and render it
I have an array with 10k objects, I'm drawing them differently, just wanted to see if there is any way to measure different code
Chris Reeves
@evs-chris
Jul 03 2017 18:21
ractive is synchronous, so you can just measure before and after the ops
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:23
so, after this.set should be enought? that's great to know. (Sorry i should really look into the source code more)
Chris Reeves
@evs-chris
Jul 03 2017 18:23
should be
the promises are only there for transitions
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:24
Last for today. Is edge, 1.0, going to have any breaking api changes from 1.edge to next 1 final version? ie, if I migrate all my applications to 1 now, or should I wait ? :sparkles:
Chris Reeves
@evs-chris
Jul 03 2017 18:25
yes, it will break 😁
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:25
xD
Chris Reeves
@evs-chris
Jul 03 2017 18:25
it's pretty much the same as 0.9 now though
Juan C. Andreu
@andreujuanc
Jul 03 2017 18:26
I'm runing .8 in most of my apps. I have no issues whatsoever.
0, cero, zero, nada
xD
+1
Juan C. Andreu
@andreujuanc
Jul 03 2017 19:01
{{ filterDayAndSort(^^/^^/.list, ./) }}
that, just that . Just sexy
I'm converting a page that takes 3 min to render , server side, plus some js. Into a ractive + webservices one that renders everything in 30ms
Chris Reeves
@evs-chris
Jul 03 2017 19:06
wow
3 min?!
Juan C. Andreu
@andreujuanc
Jul 03 2017 19:07
Yeap
Renders some sort of Gantt
Normally is "fast", but some customers have a ridiculous amount of non normalized preventives tasks (factory maintenance ones), and those B#$%^& can't change the way they work, so everything started to grow exponentially .
some tests I did in aspnet MVC was not so slow, but this form was made years ago in web forms D:
keeps a copy of all server side controls serialized in some kind of tumor called viewstate.
Chris Reeves
@evs-chris
Jul 03 2017 19:11
ah, good old webforms
Juan C. Andreu
@andreujuanc
Jul 03 2017 19:12
8 years webapp, runs like a beast tho.
Ill share the playground link when I finish doing testing for this
notthing awesome, probably lot's of bad practices, but its just a proof of concept for my next meetings with my developers
Chris Reeves
@evs-chris
Jul 03 2017 19:19
always love examples of use in the wild 😀
Juan C. Andreu
@andreujuanc
Jul 03 2017 22:11
Fastest I could code: https://goo.gl/p1GVrb
Working on next prototype, which will set a virtual 2d list, and only render whats on screen.
Gonna take more time to make since cells have to be set of a certain size
(click on any row to expand it)