Naming Apocalypse #1070
Replies: 1 comment 1 reply
-
In chat @bporterfield wrote
I think that is important too. |
Beta Was this translation helpful? Give feedback.
-
In chat @bporterfield wrote
I think that is important too. |
Beta Was this translation helpful? Give feedback.
-
Comprehension Debt
While we were figuring out the nouns and verbs of a malloy like approach to data, we used a lot of words that already have meanings, and before we ship to the world, I think we should tighten things up to clarify for ourselves when we are reading code, and for people just wandering into Malloy and wanting to use.
I have a personal vendetta against the "model" and "query". They mean too many things. In the end, if we use the word "query" anywhere, it should only mean the thing we are building to execute on the database engine.
This will involve re-naming things internally as well as fixing the external API.
Here are some thoughts on this, scribbled down so I can get back to the thing I am supposed to be working on. Some of this assumes that the distinction between a "source" and a "query" in the current language will be going away.
This is meant to spark discussion, there are some choices here that I disagreed with the moment I wrote them.
Model -> Frame
The thing you get when you compile a malloy file
Model Contents -> Entry
The thing you get when you look at named objects in the CMF (Compiled Malloy File)
In use, it would go something like this ...
If there are things like abstract sources ... you could do some sort of discriminators
To run some code on an existing frame ....
Query -> Pipeline
This is a pipeline with a source at the head and zero or more steps.
QuerySegment -> Stage
This is a "project", a "reduce", or an "index"
QueryQuery -> NamedPipe
This is a field in a source or a queryl which is a pipeline,
since it always has a name, this one is kind of easy
QueryField (and family) -> StageField
Beta Was this translation helpful? Give feedback.
All reactions