News for hackers. Stuff that matters.
Re:Create React apps using Kotlin by nameless912 on Saturday November 04, 2017 @02:25PM (#15626248)
> React is becoming a de-facto standard

The Vue.JS community would beg to differ.

But yeah, if JetBrains could implement something like the Rust Language Server for Kotlin I would be so happy.

Re:Create React apps using Kotlin by warent on Saturday November 04, 2017 @04:52PM (#15626848)
Agreed with this. I use both React and Vue intensively, day to day. React and Vue both have pros and cons, but I would argue it's actually easier to optimize Vue apps.

Vue's reactive nature actually is superior, because something like Redux requires destroying, regenerating, and messaging around entire objects. This can create serious problems when, for example, trying to use Chrome APIs or manage component renders.

Also, although JSX is nice for developers, it's not friendly to designers. Vue, however, supports single file components that are very designer-friendly.

FWIW, Alibaba began creating their own native framework with Vue called Weex, which is now part of the Apache project. https://weex.apache.org/

Re:Create React apps using Kotlin by yawaramin on Saturday November 04, 2017 @07:42PM (#15627419)
Redux is not actually necessary for React, you can manage state without it.
Re:Create React apps using Kotlin by acemarke on Saturday November 04, 2017 @05:35PM (#15627024)
Can you clarify how Redux causes issues in those scenarios?
Re:Create React apps using Kotlin by mlsarecmg on Sunday November 05, 2017 @07:28AM (#15629116)
Beg to differ it can, but as it stands the statement is correct.

http://www.npmtrends.com/angular-vs-react-vs-vue-vs-@angular...

Even more so when you consider that Vue itself is a React clone underneath. Templates compile directly into createElement calls internally and if you'd strip off Vue's outward complexity, the api surface, the syntax parsers, the observable system, etc., what would remain is React.

Re:Create React apps using Kotlin by jhall1468 on Sunday November 05, 2017 @01:04AM (#15628364)
Well they can disagree, but React is vastly larger (in both usage and community), so I would say his comment stands.
Re:Create React apps using Kotlin by bitL on Saturday November 04, 2017 @05:29PM (#15626998)
I'll take a look at Vue.JS, thanks! Is there a way to use it from Kotlin or some other "sane" language as well?
Re:Create React apps using Kotlin by nameless912 on Saturday November 04, 2017 @06:45PM (#15627255)
It has pretty decent TypeScript bindings iirc, but the fundamental thing it does is prevent the need to mix HTML and JS inline. If you can hold your nose at Javascript, most of the project generators for Vue.JS seem to prefer using ES6/ESnext syntax so the language is much more tolerable than, e.g. Angular and Circa-2007 JavaScript.