F
F
First Last2015-02-21 20:39:38
JavaScript
First Last, 2015-02-21 20:39:38

How is form-slapping in JavaScript different from form-slapping in JAVA, C#, QT?

By shaping I mean creating a GUI. I ask because data binding (two way and one way) frameworks are now popular in the web frontend. And then there are Dirty checking (example: Angular) and Change listeners (implemented in Knockout and Backbone). This is in addition to AJAX. In desktop GUI applications, signals and slots, the event delegation model, are popular. A lot of things. Where can I find a comparison of approaches to have everything in one place? Clearly, clearly and hardcore to. I'm also interested in your thoughts on this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kartio, 2015-02-21
@kartio

In fact, everything is in a heap in the question, different levels of application work are affected, that is, different levels of abstraction:
1) event handling: signals and slots (as I understand it about Qt), message queue and event handlers in MFC and .NET Windows Forms. In Javascript, for each DOM element, you can similarly specify a handler for each event.
2) Application architecture: usually it is either MVC or MVVM (that is, in fact, we are talking about MV * approaches), it is these approaches that implement frameworks (angular, knockout, backbone, and so on), Flux from Facebook is also actively promoting now. Desktop ones also have MVVM, for example, in Microsoft WPF
3) Change control in models: this is already all sorts of dirty checking, defineProperty, observer and the like, that is, in fact, how changes in models are tracked.
4) AJAX is just a technology for communicating client-side javascript with a browser.
And the comparison should start with the application architecture, point 2, everything below is the details of the implementation of a specific framework, and already below - a specific platform (how events work and are processed, how data is processed)

S
Saboteur, 2015-02-21
@saboteur_kiev

For starters, JavaScript is executed by the browser, and the "shaping" eventually creates an html page.
Java, C#, QT create visual elements in a different way, in which a browser is not needed, either a java machine or a specific platform (windows with libraries, etc) is needed.
This is the first and main difference.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question