by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 30 20:51
    dependabot[bot] labeled #6
  • Jul 30 20:51
    dependabot[bot] opened #6
  • Jul 30 20:51

    dependabot[bot] on npm_and_yarn

    Bump elliptic from 6.4.0 to 6.5… (compare)

  • Apr 27 09:50
  • Mar 16 19:54
    dependabot[bot] labeled #5
  • Mar 16 19:54
    dependabot[bot] opened #5
  • Mar 16 19:54

    dependabot[bot] on npm_and_yarn

    Bump minimist from 1.2.0 to 1.2… (compare)

  • Nov 07 2019 17:31
    dependabot[bot] labeled #4
  • Nov 07 2019 17:31
    dependabot[bot] opened #4
  • Nov 07 2019 17:31

    dependabot[bot] on npm_and_yarn

    Bump cached-path-relative from … (compare)

  • Jan 31 2019 02:07
    huachaoliu starred cyclejs/cyclejs
  • Jan 30 2019 18:16
    demurgos starred cyclejs/cyclejs
  • Jan 30 2019 17:39
    r281GQ starred cyclejs/cyclejs
  • Jan 30 2019 15:45
    LuciNyan starred cyclejs/cyclejs
  • Jan 30 2019 09:10
    Linkjun starred cyclejs/cyclejs
  • Jan 28 2019 20:39
    GilbertoHdz starred cyclejs/cyclejs
  • Jan 27 2019 21:07
    romankrru starred cyclejs/cyclejs
  • Jan 27 2019 16:30
    sleepyfran starred cyclejs/cyclejs
  • Jan 27 2019 14:27
    shesek opened #874
  • Jan 27 2019 14:21
Akaan Qualrus
@akaan
This works but the component is difficult to test because I need to craft a suitable DragEvent with a file attached to it outside the browser (maybe with jsdom ?).
I wonder if the file reading should be seen as a side effect and moved to a driver. That would be a driver taking a Stream<DragEvent> or a Stream<File> as sink and output a Stream<string> as source ?
Paul Snively
@paul-snively
@akaan: I think the driver impulse is a good one. That is generally the context in which Cycle.js expects effects to happen.
@akaan: As you've surmised, part of the point is the inversion of control it has with respect to run. So testing is easier, e.g. mocking is easier (or unnecessary).
@akaan: That said, there's new development in Cycle.js aiming to simplify the driver concept even more, partly so as to reduce the need to mock even further.
@akaan: (They're reinventing monads... shhhhhhhh!) ;-)
Jan van Brügge
@jvanbruegge
streams are already monads (empty() is return and map().flatten() is bind), the addition now are basically "pure" monads that are interpreted in terms of streams (like StateT in Haskell)
aka nicer interfaces for e.g. HTTP
Paul Snively
@paul-snively
Yes, Stream clearly is. I'm thinking of drivers.
PEZO
@ZoliPeto_twitter
@paul-snively could you please elaborate on that driver/monad idea and/or give me some references to read more about ?
Akaan Qualrus
@akaan
Monadic programming style in Cycle.js ? I will look into it !
Jan van Brügge
@jvanbruegge
we were talking about this I am currently working on: cyclejs/cyclejs#929
it will allow to change this:
Jan van Brügge
@jvanbruegge
function main(sources) {
    const res$ = sources.HTTP.select("manIhateNamingThings").flatten();

    return {
        DOM: res$.map(view).startWith("loading"),
        HTTP: xs.of({
            url: "/wherever",
            method: "GET",
            category: "manIhateNamingThings"
        })
    };
}

into the more readable

function main(sources) {
    return {
        DOM: sources.HTTP.get("/whatever")
            .map(view)
            .startWith("loading")
    };
}

Internally, the same happens as in the first piece of code, because HTTP.get is interpreted as a request and a response stream

PEZO
@ZoliPeto_twitter
Thanks for the example!
Jan van Brügge
@jvanbruegge
That also means that you don't need MockXXXSource any more, because the sources are pure and the drivers just take and return a normal stream
@cycle/run and @cycle/http are pretty much done already, I just need to port over the last few missing tests: cyclejs/cyclejs#930
At least I think the code is quite readable
definitely better than the current run
siassaj
@siassaj
@jvanbruegge plan's been set mang
my mrs has applied to council to start work on a house to build in estonia
i'm gonna be running round eu eating pork & mayonnaise very soon
what's the go with > $100eu /hr gigs
they exist eh?
Jan van Brügge
@jvanbruegge
maybe? i havent done consulting for some time, have been quite busy
PEZO
@ZoliPeto_twitter
@jvanbruegge May I ask where are you currently working at / what are you working on?
Jan van Brügge
@jvanbruegge
I work part time for Futuricrle to cover rent and other expenses (simple steady job without fluctuations in income) and doing my master's degree
(aside from working on cycle and haskell)
*Futurice
PEZO
@ZoliPeto_twitter
Thanks! Are you using cycle at futurice or in your masters?
siassaj
@siassaj
I did a masters once
Jan van Brügge
@jvanbruegge
i did a seminar once where i presented Cycle, but that was pretty much the only time in university
myself did not use cycle within futurice yet, but I also did not really do any frontend work yet, at the moment for example I am working on a backend in Haskell
PEZO
@ZoliPeto_twitter
Thank you!
Jan van Brügge
@jvanbruegge
but i know there were projects that used Cycle
PEZO
@ZoliPeto_twitter
Are you aware of any (paid) Cycle project I could join to as a remote dev?
Jan van Brügge
@jvanbruegge
no, not at the moment
PEZO
@ZoliPeto_twitter
Thanks
André Staltz
@staltz
Hey y'all, I'm looking for a frontend developer to work with me on an existing Cycle.js / RxJS web app currently serving thousands of users and customers. Well-paying contract work, remotely. 👌
Email me to start a conversation. Show me your GitHub or GitLab or other portfolio. I'll send an interview exercise
cc @ZoliPeto_twitter
PEZO
@ZoliPeto_twitter
@staltz I will do that asap! Thank you for mentioning!
PEZO
@ZoliPeto_twitter
@staltz just sent you the email
siassaj
@siassaj
Is it weird that I don't have a portfolio
but work as a tech lead
André Staltz
@staltz
Not too weird :)
siassaj
@siassaj
at some point i need to reduce my responsibilities here and start taking some work in europe
im the best goddamn techlead you ever done seen i'll get eu work ez
Piotr Brzeziński
@brzezinskip
Hey :wave: its been a year or so since last time I played with cycle. Till then I improved my FP skills a lot so I think I'll be able to give it another shot now without struggling as much as I did :)
Jan van Brügge
@jvanbruegge
I wrote a blog article about the new design for the Cycle.js rewrite: https://dev.to/jvanbruegge/redesigning-a-framework-daa