Hey lainz,
Is not only JavaScript. Is that you get a better styled application.
Try to make all the components a web can offer, I think you can't and also me that did some bgracontrols for LCL can't.
Let me see if I understand your point: Unless someone can do the presentation layer the way a browser can, we're stuck with something subpar on the logic layer, but hey, we have a magnificent presentation layer, right?
Animations, full HighDPI Support without problems, scalable graphics, internationalization. All made really simple without the need to compile, just reload the app in the fly. That's faster developed stuff in less time. Every time you hit compile in the Lazarus IDE I already I'm viewing the changes I did in the live reload website.
Yeap, you bet it's made simple, well kinda right?
No one is using pure JavaScript, right? How many frameworks are there after jQuery got out?
How flat or steep is the learning curve for those frameworks?
Of all these frameworks and shiny things, how many standards have emerged? None?
Of all those frameworks that have died, how much code can we build upon to make it better without having to re-invent the wheel? None?
But hey, let's sacrifice standards and OS supported API's because... How did you say it? Ah yes "
Is that you get a better styled application."
And then you say "
That's faster developed stuff in less time. Every time you hit compile in the Lazarus IDE I already I'm viewing the changes I did in the live reload website.".
I admit that the false sense of productivity that an interpreted language gives you feels real. But it's not!!
But explain to me how is that most of the interpreted languages are now trying to ditch the dynamic types in favour of static types, you know, like TypeScript and even the newest of PHP(8 and up)?
Well, it's probably because someone has finally understood that the immediate reward of pressing F5 on a Browser is crap when a client is on the phone every 5 minutes because their site is down because of a stupid mistake due to dynamic types. And then no one can find out to fix it because they don't think about dynamic types. Do you want me to link to the widespread hilarious examples of that in JavaScript?
The fact that when you have static types, you have less error prone code out of the gate.
The fact that the coder that falls for the rapid reward of F5, won't implement tests and while it looks good, it performs like crap.
Should I go on?
The same is going for Android with Flutter live reload.
So the main issue is that we need to evolve the widget set into something more HMTL5+CSS and replace the JS with a compiled language, Dart...
So you agree with me under the condition that we have a dynamic presentation layer that comes from a server somewhere.
So again, you're focusing on the presentation layer. Why is the presentation layer that important?
And what happens when the compiled part of that can't cope with the dynamic presentation layer? Don't we have to swap that?
Of course for low level stuff and limited hardware is not good, there is the place for Lazarus. But for the rest I don't see the point of not using HTML+CSS+JS.
Well, if you give me a solution where someone invents a widget set that can be made by pure HTML5+CSS and then we just have to attach the same events to ObjectPascal instead of JS, will you be happy?
You see, at the moment the HTML5+CSS+JS widget set landscape is a bit of a wild west.
There are no standards. There are no widget sets per se. There's a new framework being invented every day.
I've lived through jQuery. Then it was, what? <insert list of JS frameworks that have been popular since jQuery and ending in Vue>. When is this wild west gonna end?
With all this early adopter and AHHH SHINY attitude it's a no brainer that clients aren't really adopting it. On the contrary, they're getting quite frustrated that past 1 year, their website isn't maintainable because the fad is gone and no one wants to update "
yesterday's code".
In comparison, in the present, we have the Windows widget set, GTK, QT and KDE. That's 4 sets, over a period of how many years?
My whole argument is that you shouldn't tear the whole house down just because the presentation layer needs a revamp.
And the Browser is getting to the point where it's being used like the Java or .NET runtime. But without the speed or optimizations of a programming language!!
And if you base all your coding in a binary that you need to carry around but is crap at speed and memory management, is the presentation layer
THAT important?
Cheers,
Gus