Genie Discord forum

Author AvatarMonty Hall
3/16/2023, 8:47:25 PM

Changing "n_" on the server works as expected. Changing n_ on the browser changes it on the server. I was under the impression that this isn't supposed to happen.

Author AvatarMonty Hall
3/16/2023, 8:54:25 PM

I changed to the following and it works

Author AvatarMonty Hall
3/16/2023, 8:55:02 PM

If I recall, doing something similar for "private" fails. Let me double check.

Author AvatarMonty Hall
3/16/2023, 8:58:04 PM

Yeah, this doesn't work. "i" isn't private

Author AvatarMonty Hall
3/16/2023, 8:58:34 PM

Ironically, "i__" does work.

Author AvatarMonty Hall
3/16/2023, 9:03:42 PM

So in summary: "blah_" doesn't do read only, "blah :: XXX=YYY, NON_REACTIVE, READONLY" does. "blah__" is private and works but "blah:: XXX=YYY, NON_REACTIVE, PRIVATE" doesn't.

Author AvatarMonty Hall
3/16/2023, 9:05:39 PM

Just following the docs

Author AvatarMonty Hall
3/17/2023, 12:40:10 AM

I find reading the source to stipple conjunction to the demo's are pretty helpful.

Author AvatarMonty Hall
3/17/2023, 12:40:44 AM

almost seems like I don't even need to use @vars. I can simply just create a @handler and it'll create and update the model for me.

Author AvatarMonty Hall
3/17/2023, 12:41:07 AM

It's like the new stipple really reduces the amount of code needed to get up and running. Radical code reduction.

Author AvatarMonty Hall
3/17/2023, 12:44:59 AM

That said. Looking at the old stipple gave me a sense on how the system works - and I can appreciate the update.

Author AvatarPere
3/17/2023, 10:06:35 AM

you can also use @in, @out and @private to define writeable/readonly/private variables

Author AvatarPere
3/17/2023, 10:07:59 AM

with the new API we tried to reduce the amount of code, s you said. However there's more abstraction going on as you don't need to manually define a ReactiveModel anymore. We'll have to explain all of this in the docs so that users can know how it works under the hood