← Back to team overview

ubuntu-phone team mailing list archive

Re: Why js not c++?

 

On Thu, Oct 8, 2015 at 1:36 PM, Michi Henning
<michi.henning@xxxxxxxxxxxxx> wrote:
>> you can indeed build apps in C++ if you want, but C++ is more complex to
>> understand and write (if you ever did a dynamic web page in your life
>> you likely know the basics of js). C++ needs a (cross) compile
>> environment set up while js means you can just dump a txt (well, .qml)
>> file in place and it just works. Doing C++ is just a lot more work and
>> while you can use C++ I think people find it easier to simply use js (I
>> surely do, i can write a ready made QML app including rolling the click
>> and uploading it to the store with a plain text editor within 20min, I
>> (personally) cant do that in C++)) ...
>
> Writing a dynamic web page in C++ is a bit like writing a neural network in COBOL. Don't.
>
> Would I write a device driver in JS? Probably not.
>
> Would I try to tighten a Phillips head screw with a nail file? Probably not either.
>
> I think you get the drift… :-)
>

+1 :)

Please note that qml and c++ components are happily mixed together
with QML/Qt. If there is a serious performance issue with using pure
QML,
falling back to C++ is always possible.

Cheers,

  Thomas

> Michi.
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References