Qodly is a cool name. Qodly Script, the name “Script” has sometimes the meaning of a non complete programming lang. Maybe it would be better to name it “Qodly” or “Qodly Lang”. JavaScript evolved over many years to a programming language from a scripting language.
The “new” keyword to create an instance of a class is not used in modern programming languages very often. It’s easier and shorter to create an instance, eg. pers = cs.Person(“firstName”, “Lastname”) without the “new” keyword.
Declaring and assigning data to a variable in one line would be helpful.
eg. var myVar : string = “hello” or with type inference eg. myVar := “hello”
Some instances (File) from the 4D.libs are created without and others (HTTPRequest) with the “.new()” keyword. What is the idea in this case?
Is Qodly runtime a lightweight subset of the 4d-Lang without all the legency commands?
What is the size of the Qodly runtime compared eg. with Python?
I tried the WebFormItem.hide() method and like you mentioned it is executed on the server. I think to start a request to the server for a task that happens only on the client is an unnecessary roundtrip. Manipulation on the UI that don’t need to send an upload to the server can be executed by the JS framework.
The developer could decide where to call the function (client/server). So QodlyStudio could offer a function-type (eg. Client, UI) in the menu for only WebFormClient and WebFormItemClient methods. These classes will call the mapped JS classes/methods.
We agree and will be improving this area for sure. Stay tuned!
For this kind of suggestions, don’t hesitate to write a post in the Ideas - Qodly Community category!