Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 18 22:20
    greenkeeper[bot] labeled #5391
  • Oct 18 22:20
    greenkeeper[bot] opened #5391
  • Oct 18 22:20

    greenkeeper[bot] on can-observable-mixin-1.0.3

    fix(package): update can-observ… (compare)

  • Oct 18 19:08
    cherifGsoul labeled #5390
  • Oct 18 19:07
    cherifGsoul opened #5390
  • Oct 18 18:45
    greenkeeper[bot] labeled #5389
  • Oct 18 18:45
    greenkeeper[bot] opened #5389
  • Oct 18 18:45

    greenkeeper[bot] on can-observable-bindings-1.3.0

    fix(package): update can-observ… (compare)

  • Oct 18 18:29

    matthewp on master

    Update dist for release (compare)

  • Oct 18 18:29

    matthewp on v6.1.3

    Update dist for release 6.1.3 (compare)

  • Oct 18 17:59

    matthewp on can-observable-array-1.0.2

    (compare)

  • Oct 18 17:59

    matthewp on master

    fix(package): update can-observ… Merge pull request #5388 from c… (compare)

  • Oct 18 17:59
    matthewp closed #5388
  • Oct 18 16:46
    greenkeeper[bot] labeled #5388
  • Oct 18 16:46
    greenkeeper[bot] opened #5388
  • Oct 18 16:46

    greenkeeper[bot] on can-observable-array-1.0.2

    fix(package): update can-observ… (compare)

  • Oct 18 12:45
    greenkeeper[bot] labeled #5387
  • Oct 18 12:45
    greenkeeper[bot] opened #5387
  • Oct 18 12:45

    greenkeeper[bot] on can-stache-element-1.0.2

    fix(package): update can-stache… (compare)

  • Oct 18 09:49
    chasenlehara edited #5384
Frank Lemanschik
@frank-dspeed
thats why often you will see usersPrimise propertys
and all kind of promise propertys
if you set them they are preserved persisted for the current running state
in general this is i think one of the most complex parts of canjs if your using the define-map observe able
you can return the same data in diffrent ways and it will get handled diffrent for example setting a object as value gets shared over instances
return the same value from a function then it gets cached
also your can-connect behaviors do matter
Kevin Phillips
@phillipskevin
if you find things like this confusing, please open issues
for example we're deprecating this:
setting a object as value gets shared over instances
there's a PR in now to do that in 3.0 and I think it is removed already in 4.0
so if there are other confusing things, we can look to remove them
Frank Lemanschik
@frank-dspeed
@phillipskevin i am only waiting now for justin to explain the view bindings and parsers
then i will implament my nils stream as observable
once i am able to do that
:D
i don't plan to use define-map or observe
i only use it as long as needed
i see convertable streams as the holy gral the only problems are the view updates via the canjs eco system
as that is no where explained all i know i know from reverse engineering the hard way
Frank Lemanschik
@frank-dspeed
i only need to find a better way as creating fragments for each variable that changes as this feels so useless
as i can archive the same via dom.select and edit
maybe jsx can help but i don't know how that should work i am doomed :)
Kevin Phillips
@phillipskevin
have you profiled it to confirm there's actually a performance benefit to not creating new fragments?
Frank Lemanschik
@frank-dspeed
performance nope :(
but i see it as double work
and un needed work
as from my view we return html we have html
so we can use after that the dom api for everything
as easy as select <span id="myName">Mr Myer</span>
and then select myName change innerText done
but i performance benchmarked domDiffing
and i think that could be a alternate i simply check if the dom matches if not sync it up async
that outperforms on bigger apps
as we can handle the view as Whole
it don't matters where the changes come from we only need to make sure that view matches whats expected
and many observations arn't needed this way
only the edit able content
Kevin Phillips
@phillipskevin
but you're doing a lot more DOM manipulation
Frank Lemanschik
@frank-dspeed
yes sure but my co workers from chrome and mozilla have improved on that also
and its not about real pefformance
for example often you don't even want to change something in less then a MS
Kevin Phillips
@phillipskevin
its not about real pefformance
what do you mean?
Frank Lemanschik
@frank-dspeed
Material design examples and research
they found out that it feels better to show some loading and transition
Kevin Phillips
@phillipskevin
sure
Frank Lemanschik
@frank-dspeed
even if its not needed there are also time frames that feel diffrent
Kevin Phillips
@phillipskevin
but that kind of thing shouldn't be done at the framework level I don't think
otherwise, you can never have things be fast