June Update #269
Replies: 4 comments 1 reply
-
I think it's critical that we do not change the behaviour (or our behaviour) with For w.r.t. dialogs, yeah! makes total sense! Dialogs here we go! One thing though: what about the |
Beta Was this translation helpful? Give feedback.
-
I take back my hesitance with still leaves the |
Beta Was this translation helpful? Give feedback.
-
in the meantime ... @DrRataplan and me discussed and simply renaming from 'Instance()' to 'data()' clashes with XPath data function and should be avoided Leaves us with these options: I like the terseness of b. much less typing and easy to read but of course we need to make sure then that these variable resolve correctly when data get exchanged etc. For the concern raised about blurry distinction between 'data' vars and vars created by i guess we can easily forget about it if we consider the fact the author still decides:
The author can simply use a convention to make a distinction if wanted. In the end both types are not really different - a var always points to some nodes and this applies for whole data as well as any other XPath expression. My vote is for just creating variables for all data elements using their id as name. |
Beta Was this translation helpful? Give feedback.
-
hm - what do we do for |
Beta Was this translation helpful? Give feedback.
-
This month we've been working on fx-connection that will bring websocket support to Fore.
<fx-connection>
can optionally being bound to data or be interacted with by using events.As formats we plan to support 'xml', 'json' and 'text' and messages will automatically be converted from/to these.
Some first demos are basically working and the base implementation is already stable but it needs a bit more refinement and testing before rollout.
In the course of doing this, i wondered if we should also consider to wrap other APIs like webworker or WebRTC. If somebody shows interest in this please speak up and let us know about your potential use case.
Beyond that we have refined some demos a bit more and started also to work on the upload support. Connection and upload are considered main priorities for now.
a glimpse towards Fore 3.0
Maybe there will another 2.x release but i started some work towards 3.0.
This release will be breaking by removing some
<fx-
elements where a better, native HTML alternative exists. For instance we've discussed the<fx-instance>
element before as being unluckily named - it always requires extra explanation to sayit's a data-container
. Further HTML already defines the<data>
element. Though it's purpose is to define key/value pairs mainly it does not prohibit child content and would be a more natural match for the purpose. This means that<fx-instance>
will just be replaced with the native HTML element.Example:
This comes to the price to use
data-
prefixes for the attributes (as the standard requires for custom attributes) but otherwise is more expressive than the old syntax and builds directly on an already existing element.This is probably only one change that will go into 3.0. The
<fx-dialog>
is another candidate as HTML defines this also in the meantime. - we'll critically review other candidates. The rationale behind it is to give already existing elements priority over custom elements and simplify either the codebase and the usage of Fore by building upon the common ground.drop it or keep it
Of course the question arises if we should just keep the
<fx-instance>
element and add the use of<data>
as an additional option. However i decided against it:Enough reasons i hope to justify a 'hard' break requiring users to update their pages when upgrading to 3.0
Making these changes is still a pile of work but at least will shrink the codebase and bring us closer to the platform.
That's it for this month. Comments and thoughts welcome.
Beta Was this translation helpful? Give feedback.
All reactions