Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all traces of the web-enabled workshop version #56

Open
12 tasks
rradczewski opened this issue Dec 1, 2018 · 1 comment
Open
12 tasks

Remove all traces of the web-enabled workshop version #56

rradczewski opened this issue Dec 1, 2018 · 1 comment

Comments

@rradczewski
Copy link
Contributor

Some (if not all) implementations still have traces of the online version of the workshop. I didn't notice that before the workshop and then only during the exercise noticed that people where confused by the online-bits. Had to make it clear that we're working on the datasets in /data/*.json.

I propose we remove the web version. If we still want to force people to use incremental updates, we could change the boilerplates to not work with a sequence of events, but wrap them all in a fold.

  • c++
  • clojure
  • csharp
  • elixir
  • elm
  • fsharp
  • java
  • js
  • kotlin
  • php
  • python
  • ruby

Example for a constrained boilerplate:

// EventSource.js
class EventSource {
  constructor(file) {
    this.data = require(file);
  }

  project(projection) {
    return this.data.reduce(projection);
  }
}

// Projection.js
const Projection = (fn, initialState) => xs => xs.reduce(fn, initialState);

// eventCounter.js
const EventCounter = Projection((count) => count+1  , 0);

// Application
const dataSet0 = new EventSource('../data/0.json');
console.log(dataSet0.project(EventCounter));
@tcoopman
Copy link
Collaborator

tcoopman commented Dec 1, 2018

Agree on removing the web traces. Not sure about the boilerplate (see #55)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants