untangled

NEW CHANNEL: #fulcro
cjmurphy 2017-06-13T01:13:11.133936Z

@tony.kay: An easier read for first timers than previous documentation because there are no longer gaps. I really like it. If you needed to shorten it the om/computed in depth explanation could be put elsewhere - for getting started all application programmers need to know is that functions passed down to child components are to be handled differently: you can get a long way without knowing exactly why that's the case. That's my proofreading feedback.

tony.kay 2017-06-13T01:13:36.137166Z

I can’t get away from computed, because of thecallback I need 😕

tony.kay 2017-06-13T01:13:55.139344Z

It would be confusing to use it without some kind of nod to why

tony.kay 2017-06-13T01:14:29.143578Z

or did you mean to just kind of trim it down?

tony.kay 2017-06-13T01:15:05.148055Z

I guess that is what you’re saying….sorry didn’t read carefully enough

tony.kay 2017-06-13T01:16:05.156033Z

Thanks for proofing it! I think the new additions also make it seem more approachable. No parsers needed anywhere, until you start wanting to convert queries to graph walks of SQL

tony.kay 2017-06-13T01:16:44.161189Z

and even that could be done as a transform instead of a parse

cjmurphy 2017-06-13T01:17:09.164312Z

What is great about it is the flow - telling a story and filling missing bits in as go.

tony.kay 2017-06-13T01:17:41.168500Z

Yeah, I had tried to do that in the quick tour in the dev guide, but I think it was too light

tony.kay 2017-06-13T01:17:54.170187Z

not sure how many times I have to write this before I like it 😜

tony.kay 2017-06-13T01:18:35.175401Z

3000 lines of code, 20,000 lines of docs

2
cjmurphy 2017-06-13T01:19:04.179212Z

The first time users needs to go away having understood all, or almost all. The computed stuff is difficult and not absolutely required.

cjmurphy 2017-06-13T01:19:57.186035Z

Esp - 'wrong way' - I must admit I didn't read that part.

tony.kay 2017-06-13T01:21:13.195596Z

Thing is I’ve just spent several pages telling that you “just pass stuff as props”. I’ll re-read it and see if I can make it shorter without feeling like I’m going to lose people

tony.kay 2017-06-13T01:21:25.197099Z

There’s a fine balance between boredom and confusion

tony.kay 2017-06-13T01:21:35.198249Z

and unfortunately that line is different for everyone

tony.kay 2017-06-13T01:21:47.199683Z

I’d rather have more bored and less confused

cjmurphy 2017-06-13T01:23:52.215076Z

I've never really 'got' what's going on with computed, so perhaps it is hard for others too. All I know is as an app programmer I follow the rule - "if its not props I use computed".

tony.kay 2017-06-13T01:24:18.218391Z

perhaps if you read “wrong way” part…

tony.kay 2017-06-13T01:24:32.220569Z

but I hear you, rules are easy to follow

tony.kay 2017-06-13T01:24:37.221421Z

you don’t need to know why

cjmurphy 2017-06-13T01:24:38.221565Z

Yes I will now 🙂

tony.kay 2017-06-13T01:24:42.221982Z

I get stuck on the why

tony.kay 2017-06-13T01:24:49.222909Z

I don’t like magic

cjmurphy 2017-06-13T01:26:04.232652Z

But the line is important - between what user of framework needs to know and what builder of the framework needs to know.

tony.kay 2017-06-13T01:26:47.237952Z

agreed. Understanding computed is one I think the user should know..even though I see your point that there is a rule to follow. Cause if you don’t follow the rule, it looks like it works…until it doesn’t

tony.kay 2017-06-13T01:27:12.240962Z

and a lot of devs will run with things that look like they work, then get bogged down when they do “weird things”

tony.kay 2017-06-13T01:27:57.247286Z

and there’s nothing I dislike more that banging my head against a wall when trying to get something done. I guess that’s why I want to knw why…helps me debug

tony.kay 2017-06-13T01:29:11.256254Z

Perhaps I’ll move the why to a section marked optional, and simplify the main flow to just state the rule…“if you want to make stuff up that didn’t come from the query engine and pass it to a child, put it in computed”

tony.kay 2017-06-13T01:36:52.316338Z

i just re-read it. I reworded one sentence, but otherwise I still like it as-is

tony.kay 2017-06-13T01:37:11.318585Z

the explanation is pretty simple, if anything I could make a diagram or something.

tony.kay 2017-06-13T01:37:35.322027Z

I reworded this:

The problem is that Om can optimize away a re-render
of a parent when it can figure out how to pull just the data of the child on a refresh, and in that case the
callback will get lost because only the database data will get supplied to the child!

tony.kay 2017-06-13T01:40:29.342751Z

A few more tweaks and now I’m definitely happier with it. Thanks for the feedback

mitchelkuijpers 2017-06-13T14:27:51.358957Z

I have an ident that points to a ident that I use in a form that then breaks on untangled.ui.forms/validate-form Are idents that point to idents supported in om.next or am I breaking stuff? Or maybe I found a issue on form-support in untangled

tony.kay 2017-06-13T20:03:57.049323Z

An ident is supposed to point to a table entry

tony.kay 2017-06-13T20:04:09.053538Z

I don’t think a talble entry is supposed to be anything other than a map

tony.kay 2017-06-13T20:04:14.055300Z

@mitchelkuijpers

tony.kay 2017-06-13T20:05:18.078445Z

you’d have to look at the implementation of db->tree in Om, but I suspect it isn’t