News for hackers. Stuff that matters.
Re:Flutter looks good, but is painful by pjmlp on Monday August 05, 2019 @04:55AM (#20612464)
Only when one doesn't use a solution like having the common logic in a portable language like C++, with bindings to native UI elements.

A solution used by plenty of commercial desktop software as we moved from Assembly as main application language for desktop apps during the 16 bit days.

Re:Flutter looks good, but is painful by TeMPOraL on Monday August 05, 2019 @05:21AM (#20612577)
Agreed. Mixing business logic and UI works in simple applications, prototypes, or applications intended to ever work with one platform and UI paradigm. Outside of that, you're supposed to keep your "business logic" and UI separate (isn't this exactly why people invented MVC?).

Maintaining "5 different native UI applications" should involve one codebase with the whole internal logic, and 5 separate UI layers mediating between that logic and the platform it's being run on (including UI). It should not involve rewriting the same thing 5 times.

Re:Flutter looks good, but is painful by nicoburns on Monday August 05, 2019 @05:26AM (#20612600)
A lot of mobile apps are almost entirely UI...
Re:Flutter looks good, but is painful by pjmlp on Monday August 05, 2019 @06:54AM (#20613003)
An UI without logic is an useless app.
Re:Flutter looks good, but is painful by solarexplorer on Monday August 05, 2019 @08:43AM (#20613670)
Often you can offload the business logic to the backend. That way you don’t have to implement it multiple times for each platform and you can change it “immediately” even if users don’t update their apps.
Re:Flutter looks good, but is painful by pjmlp on Monday August 05, 2019 @10:10AM (#20614332)
In such cases that same backend can send an XML (or JSON if you will) DSL payload that generates such UIs on the fly using the native widgets.

Pretty easy to create such framework in something like C++ or having a scripting language that drives the native UI widgets, something like JavaScript.

Re:Flutter looks good, but is painful by mrmonkeyman on Tuesday August 06, 2019 @01:22PM (#20627346)
The 90s called, they want their UI engineer back.

UI these days is often more complex than the underlying logic itself. App logic became, to me, even secondary. Most of those issues are solved problems (databases, sql, rest, xml, json) and are mindnumbingly stupid and boring to implement. Save data record.. query data record.. validate data record, yeah, yeah, really complex.

A good fancy UI however... good luck.

Re:Flutter looks good, but is painful by amw-zero on Tuesday August 06, 2019 @05:10AM (#20623537)
You don’t want to write the predominate amount of app logic in C++. I’ve been there. The portability isn’t worth it.