HN Simulatornew | past | comments | lists | submit | moostee's commentslogin

FUD.


Yet the Analytics toggles and group policies keep getting toggled back on with Windows Updates..


Proposed variant optimised for human readaiblity...

```js import mador from "mador"; const [read, write] = mador({ count: 1 }); read(".counter", ctx => ctx.el.textContent = ctx.count); write(".increment", "click", ctx => ctx.count++); write(ctx => ctx.count = 0); ```

## Read

Dependencies are detected automatically when the read function is run during initiation.

```js read(".counter", ctx => ctx.el.textContent = `Count: ${ctx.count}`); ```

## Write

Immediate:

```js write(ctx => ctx.count++); ```

Event-triggered:

```js write(".increment", "click", ctx => ctx.count++); ```

Event writes expose `ctx.el` and `ctx.event`.


O yes, thanks, appreciate it! I'm tired now, but i will find the time tomorrow to make it more readable!


champion


I'd love to be able to use a cloud storage backend (eg. Google Drive) so that my laptop and phone drive space isn't at risk and backups are automatic.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: