[Pas2js] Pas2JS component design, any feedback
Michael Van Canneyt
michael at freepascal.org
Tue Jun 5 10:03:40 CEST 2018
On Tue, 5 Jun 2018, Ryan Joseph wrote:
>
>
>> On Jun 5, 2018, at 6:50 AM, warleyalex via Pas2js <pas2js at lists.freepascal.org> wrote:
>>
>> I've been thinking, it would be a nice idea to build a core framework build
>> on top of VueJS or F7 framework and or GreenSock libraries, just for
>> instance, when it comes to writing smart components, interesting components,
>> such as reactive components, it seems everybody ends up writing a framework,
>> it seems, likely waste a lot of time solving problems others have already
>> solved, VueJS here is a good alternative. The UI part could be implemented
>> on of TCustomComponent, both visual or non-visual components could be used.
>
> I don’t anything about modern web apps but it sounds like the entire
> industry has moved towards “reactive” components where macros in HTML are
> replaced by data from JavaScript. That’s what I know about React.js and
> just watched the VueJS intro video which seems to do the same thing. Is
> that correct? Sounds just like PHP (which I do know) but on the client
> side.
It is correct. Angular, aurora: they all do the same.
>
> Is it smart to write a wrapper on top of another framework though? In my
> experience this leads to the painful experience of things always being out
> of date and breaking, ultimately leading to using the original framework
> in the intended language.
The counter-argument is: why reinvent the weel ? To come up with something
as mature as react or Vue.js or angular would take a huge effort.
At least Vue.js is very stable in it's API.
>
> The aforementioned frameworks don’t use a visual IDE like Lazarus do they?
No, they do not. It's a completely different paradigm, although one could
argue that the "webcomponent" approach is of course what Delphi does since
day 1, so we've come full circle.
Just confirms my opinion that nothing really new appeared in IT in the last 30
years. More of the same, but bigger and faster :)
Michael.
More information about the Pas2js
mailing list