Live data from Hacker News

Proton Native – React Native for the desktop

proton-native.js.org

11–20 of 295 posts

Re: Proton Native – React Native for the desktop

#11
post #4

> It is not only shorter, it is also easier to read and to edit, and can easily utilize the power of the state. Easier to read and edit is obviously subjective, but shorter is not and that front page is just straight up lying. The Qt example is most definitely shorter. What am I missing?

You can “skip” the whole “closing braces” stuff, then it’s definitely shorter.

I’m talking about this:

          
        
      
    );
  }
}

Re: Proton Native – React Native for the desktop

#13

The example in the getting started section comparing Python Qt isn't very convincing.

I tend to agree. I did years of Qt dev and I would never write something like that, nor have I seen it written like that.

It works I suppose, but it's very clearly written to be an easy-to-compare example, not a realist example. To really get an idea of what it would be like to use proton native v. Qt I'd like to see a small but complete project.

Re: Proton Native – React Native for the desktop

#15
post #11
post #4

> It is not only shorter, it is also easier to read and to edit, and can easily utilize the power of the state. Easier to read and edit is obviously subjective, but shorter is not and that front page is just straight up lying. The Qt example is most definitely shorter. What am I missing?

You can “skip” the whole “closing braces” stuff, then it’s definitely shorter. I’m talking about this: ); } }

Well, then they failed completely at their argument. I count 7 levels of indentation in the react code, when there are only 3 in the PyQt code.

Also, the paradigm is completely different in that react is React is déclarative whereas Qt, in this mode, is procedural. I would argue that QML would be a better comparison, and in this case I’m quite sure that qml wins.

So much for buzz words..!

Re: Proton Native – React Native for the desktop

#16

It's pretty fascinating how tech tends to spread and influence. We spent years trying to make the web more like traditional UI dev, and now we're making traditional UI dev like web. I would never have believed this if you'd told me about it in 2010.

Writing React makes me feel more like building for web using native paradigms.

Re: Proton Native – React Native for the desktop

#17

It's pretty fascinating how tech tends to spread and influence. We spent years trying to make the web more like traditional UI dev, and now we're making traditional UI dev like web. I would never have believed this if you'd told me about it in 2010.

> and now we're making traditional UI dev like web

It's been like that on Windows since 2006 with XAML. In fact, if you squint at typical JSX, it looks like XAML.

Disclosure: I work at Microsoft.

Re: Proton Native – React Native for the desktop

#19

It's pretty fascinating how tech tends to spread and influence. We spent years trying to make the web more like traditional UI dev, and now we're making traditional UI dev like web. I would never have believed this if you'd told me about it in 2010.

> and now we're making traditional UI dev like web It's been like that on Windows since 2006 with XAML. In fact, if you squint at typical JSX, it looks like XAML. Disclosure: I work at Microsoft.

Or across multi-platforms with XULRunner from 2006 to 2015.

Re: Proton Native – React Native for the desktop

#20
post #11
post #4

> It is not only shorter, it is also easier to read and to edit, and can easily utilize the power of the state. Easier to read and edit is obviously subjective, but shorter is not and that front page is just straight up lying. The Qt example is most definitely shorter. What am I missing?

You can “skip” the whole “closing braces” stuff, then it’s definitely shorter. I’m talking about this: ); } }

No, you can’t “skip” them. If you skip them, the code is broken. The lines may well be noise, and arguably that’s even worse, but you certainly can’t skip them – counting or otherwise.
Post reply on HN