[Pas2js] Executable Size Discussion Nr 2837202 ;)

Ulrich, Christian christian.ulrich at tcsag.de
Fri Nov 16 07:59:15 CET 2018


Hi,

I would like to discuss a bit how things can be handled.
At time I see a lot of effort to copy an Delphi7 Application 1:1 to the Web.
We make Widgetsets that can be build from the Form Designer with Standard Controls, an implementation of TDataSet is here and so on...
That results in an Javascript size of ~400kb for an Form with an DBLabel, DB Access and an Button...

When the Widgetset is build further, in the same manner we will be at 1mb Library Size in near Future.

I think a lot of "Delphi 7" Stuff is not nessesary in the web. At example TDataSet with full compatibility to Delphi.
An TWebDataSet that has FieldByName,Insert,Post,Delete... sould be enough.
But maybe its way better to use something like anguklar to update DBControls automatically and place just an JSJson Element somewhere and that's it...

The same happens to Controls. We need an Sidebar, Toolbar, Auto arranging Forms (automatic responsive handling of the Controls)
Is it really the right way to build an Sidebar out of Panels,Toolbars,Listboxes ? Or would it be nicer to have an integrated Component for that, which is also much smaller couse not 4 Controls have to be implemented to get this one usecase.
Is it really the right way to build Forms out of Edit Fields and Buttons and be in Anchoring hell to get this responsive ? Or would it better to have an integrated Form Component that handles the Edits itself like here: https://docs.dhtmlx.com/form__index.html

Just things that crosses my mind, and I want to discuss. Please don't see that as an attack to someone“s work. I really like pas2js and the new possibilities.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20181116/978817e1/attachment.html>


More information about the Pas2js mailing list