On 7/13/20 9:10 AM, Jérôme Godbout wrote:
Hi,
If you write your algo into Javascript or you can edit it, you are so doing Qml
wrong! leave your algo into C++ please, your model/controler too shall be be
C++. Qml is for the GUI layer only, it so simple it is temping to add more
logic into it, but that's an error that will bit you in the long run.
When QML was first pitched back in the Nokia days, it was supposed to be
a script that ran through a pre-compiler generating the C++ widget code.
Given the designer back then had a nasty habit of corrupting XML files,
this was welcomed news.
Most of today's "Qt developers" attempt to work exclusively in QML and
JavaScript. I recently worked on a medical device where the off-shore
team tried to do 95+% of the device in QML and JavaScript. Eventually
that will pass FDA testing and be out in the field. I won't ever let it
be used on me. How many other devices have already rolled into the field
with that kind of code base? I certainly don't want any of them being
used on me at any point in the future but I have no way of identifying them.
Personally, I have __never__ walked into a shop that was using QML and
wasn't trying to do everything in JavaScript. I don't even speak with
clients that list QML as a requirement anymore because I already know
the train wreck I will be walking into.
If you have never rewrite any part of the code to allow better architecture
to take place you must be a coding god that can write code flawless or
something must horrible into those API. Needs and requirements evolved, code
need to evolve with them.
In the FDA medical device world you have to create The Four Holy
Documents up front before you begin coding. There is no hacking on the
fly and you don't make sweeping changes partway through. You create a
bullet proof medical device and then it has a 10-30 year life in the
field. Periodically you have to add support for some new sensor, but no
big sweeping changes.
I don't know what that medical device is that Harman keeps reaching out
about every 18 months or so, but it uses Qt3 under OS/2. According to
this article
https://www.americanbanker.com/news/os-2-sunset-with-big-atm-base-ibm-is-taking-it-slow
95% of ATMs were also running OS/2 in 2003. How often do you think banks
want to replace ATMs?
--
Roland Hughes, President
Logikal Solutions
(630)-205-1593
http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest