Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:35
    cherifGsoul synchronize #5441
  • 16:35

    cherifGsoul on update-infrastructure-page

    Fix typos (compare)

  • 10:01
    jkeruzec starred canjs/canjs
  • Dec 09 18:59
    cherifGsoul review_requested #5443
  • Dec 09 18:59
    cherifGsoul opened #5443
  • Dec 09 18:51

    cherifGsoul on document-inserted-removed-can6

    Add inserted/removed events to … (compare)

  • Dec 09 15:38
    greenkeeper[bot] labeled #5442
  • Dec 09 15:38
    greenkeeper[bot] opened #5442
  • Dec 09 15:38

    greenkeeper[bot] on can-view-live-5.0.1

    fix(package): update can-view-l… (compare)

  • Dec 08 21:21
    greenkeeper[bot] commented #5392
  • Dec 08 21:21

    greenkeeper[bot] on core-js-3.4.8

    chore(package): update core-js … (compare)

  • Dec 06 18:40
    cherifGsoul review_requested #5441
  • Dec 06 18:39
    cherifGsoul opened #5441
  • Dec 06 18:22

    cherifGsoul on update-infrastructure-page

    Update infrastructure page with… (compare)

  • Dec 06 18:14
    greenkeeper[bot] commented #5422
  • Dec 06 18:14

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Dec 06 18:11
    greenkeeper[bot] commented #5401
  • Dec 06 18:11

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Dec 04 22:03
    chasenlehara opened #5440
  • Dec 04 22:03
    chasenlehara labeled #5440
Frank Lemanschik
@frank-dspeed
which does this.editingCard = null
this error happens
i am wondering what value dependencys he is talking about and all this :(
Thomas Sieverding
@Bajix
Are there any resources for finding work specially using CanJS? I love using it, but thus far I’ve only had the privillege of using it in roles in which I’ve been the principal architect, and haven’t been successful in finding CanJS contract work
Frank Lemanschik
@frank-dspeed
CanJS Contract work good question
:D
you would need to apply@bitovi i think justin is the CEO
you can apply also for me
Simply put in your message frank also wants work :sparkles:
Frank Lemanschik
@frank-dspeed
@chasenlehara maybe we should set the topic to https://jsbin.com/qumageb/edit?html,js,output
as the current channel topic here is broken because of usage of canjs 4 as it uses latest
Kevin Phillips
@phillipskevin
Thanks @frank-dspeed. It's updated now.
Aliaksei Yanachkin
@ScorpAL
Hi all.
Aliaksei Yanachkin
@ScorpAL
I have a route like /#!azlistpage with anchor links. By clicking on list item I should scroll to item with matched 'id' like a normal <a href="#a">A</a> <h1 id='a'> A</h1>. Is it possible?
Frank Lemanschik
@frank-dspeed
@ScorpAL scrolling to position at last is possible
Ranjan Subbiah
@ranjanbuilds

hey, I am using can-fixture and I was wondering how to avoid getting stringified responses. for example:

let statuses = {
            success: 1,
            statuses: "anything really, just testing!"
        }

        fixture({method: "get", url: "/json/internet/blah/blah/blah"}, function() {
          return statuses
        });

returns statuses as a string

Ranjan Subbiah
@ranjanbuilds
never mind, figured it out!
Viktor Busko
@Lighttree

Can someone explain visible difference between can observables and stream functionality ? LIke Kefir streams / toStream etc. What is possible with streams that isn't possible with observables ?

For example here: https://canjs.com/doc/guides/technical.html in section where redux-like approach described. There is point:
Having a single, ApplicationViewModel that contains all state, derived using can-define-stream from events dispatched on the ApplicationViewModel.
I cant understand why we need can-define-stream here ? Any observable will have change event as well.

like in 4.0 there is value stream added. But you could have same functionality in set before, isn't it ?
well...if your value was list pushing new items there didn't call set and with value it may be different, but still
Kevin Phillips
@phillipskevin
streams allow you to define a property based on the current value of other properties as well as the change events of other properties
an example we often give is the City/State picker on http://www.place-my-order.com/restaurants
City changes
  • to the selected city
  • to null when any change event happens with state
withOUT streams you had to use a setter on state in order to accomplish this
Viktor Busko
@Lighttree
So the benefit is in encapsulation of property behavior in one place right ?
Right - putting all the logic for each property within its own property definition is a big improvement
this is a trivial example... but in larger apps, you can end up with the definition for a property in many places across many different files
it's really easy for this pattern to snowball into a huge problem that makes your code very difficult to change without breaking something else
Viktor Busko
@Lighttree
Ok thanks, I think I got the idea.
Kevin Phillips
@phillipskevin
streams are a good solution to any problem like this
but they're pretty hard to learn
the value behavior is a lot simpler and solves most of the same problems
Frank Lemanschik
@frank-dspeed
why do you think streams are hard to learn
they are a simple observe able
that emit values
Kevin Phillips
@phillipskevin
because I've tried to teach them to people
and people find them confusing
Frank Lemanschik
@frank-dspeed
hmmm i like teaching streams
i am at present preparing a biger series of streaming tutorials maybe your interrested in them will send you url once released
<form>
    <input class="x"> + <input class="y"> = <span class="result"></span>
</form>
Using most.js to make it reactive:
import { fromEvent, combine } from 'most'

const xInput = document.querySelector('input.x')
const yInput = document.querySelector('input.y')
const resultNode = document.querySelector('.result')

const add = (x, y) => x + y

const toNumber = e => Number(e.target.value)

const renderResult = result => {
    resultNode.textContent = result
}

export const main = () => {
    // x represents the current value of xInput
    const x = fromEvent('input', xInput).map(toNumber)

    // y represents the current value of yInput
    const y = fromEvent('input', yInput).map(toNumber)

    // result is the live current value of adding x and y
    const result = combine(add, x, y)

    // Observe the result value by rendering it to the resultNode
    result.observe(renderResult)
}
ups
with canjs all this is even much more easy
Kevin Phillips
@phillipskevin
I like teaching streams too
Frank Lemanschik
@frank-dspeed
yaa stream love
:D
i think they are the most logic for long running processes
Kevin Phillips
@phillipskevin
but if you're teaching canjs and you need to solve the one problem mentioned above (resetting city when state changes), then having to teach all of streams is a bit of overkill
Frank Lemanschik
@frank-dspeed
and the clean up is like magic
so out of memory managment view this is the holy gral