Live data from Hacker News

Create React apps using Kotlin

github.com

31–40 of 68 posts

Re: Create React apps using Kotlin

#31
post #13
post #12

Earlier quoted context omitted.

Well, I did comment once on the Koltin Jetbrains forum, about how hard they make to download ... just kotlin ... outside of the jetbrains ide and their response, on their forum, was that they are intentionally make hard to avoid the jetbrains ide while using kotlin now technically you still can, kotlin is open source, and you can download it standalone, if you search hard enough i am not really sure, how jetbrains th…

I am happy JetBrains became a full-blown real software company (where I count only companies with their own programming language) instead of aping Atlassian (their main competitor), and Kotlin has some interesting ideas. They are closest to Borland we have these days; independent small company with quality development tools. Though the code completion quality dropped so much lately (e.g. in PyCharm it became complete…

>(e.g. in PyCharm it became completely useless)

Very weird; what happened ? In java/kotlin it is as great as ever in Android Studio

Re: Create React apps using Kotlin

#32
post #7

Can I use this outside IntelliJ (Atom perhaps)? I despise JavaScript, GWT is underwhelming and Kotlin seems like a nice way to bypass these issues + React is becoming a de-facto standard. IntelliJ became too big/slow/feature creeped and I am not having good time with the latest code completion changes, so I am considering dropping it (PyCharm as well) for something more light-weight.

> 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.

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

#33

I was trying to get this setup going the other day and found it a little fiddly with some of the Jetbrain’s documentation on Kotlin->JS being outdated it seemed and the sample application they have supplied having some issues with missing dependencies, specifically missing package versions on NPM. I’ll be trying this out straightaway, so many thanks for this!

What's the fix to config mgmt jitter, entropy?

Every time I set aside a few hours to do a React tutorial, I'm defeated by the stack.

I'm very late to docker. I always liked the idea, but didn't have the immediate need. But Python, trying to fix bugs in someone else's project, has now made that need urgent.

After spending WAY TOO MUCH TIME getting the exact right constellation of stuff installed. Switching from macports to homebrew, preinstalling the native libs, wiping all the misc failed python runtimes and starting over, bootstrapping pip, oops I screwed up once with sudo and now a hidden cache under /var/private/root is borking dependency resolution.

FFS.

I really hated Java & maven until I got a nodejs gig.

I really hated nodejs & npm until I had to fix someone else's python.

When does it get better?

Nix everywhere?

Re: Create React apps using Kotlin

#34

How is the debugging experience? Is there a debugging experience? I'm currently a typescript user and I like what VS code has going on with attaching to chrome and providing debugging within the ide. Source maps are okay but a seamless experience in the source language is better. Does the kotlin IDE have facilities for debugging what is going on in the browser?

Being a grumpy old man: it's not programming if I can't set a breakpoint.

Re: Create React apps using Kotlin

#35
post #13

Earlier quoted context omitted.

I am happy JetBrains became a full-blown real software company (where I count only companies with their own programming language) instead of aping Atlassian (their main competitor), and Kotlin has some interesting ideas. They are closest to Borland we have these days; independent small company with quality development tools. Though the code completion quality dropped so much lately (e.g. in PyCharm it became complete…

>(e.g. in PyCharm it became completely useless) Very weird; what happened ? In java/kotlin it is as great as ever in Android Studio

No idea; I do extensive tensorflow/keras/opencv/numpy/openai stuff and code completion there is a joke, I just get completely unusable hints. Maybe I am A/B tested by them or something, but I am forced to have browser with documentation/stack overflow opened these days. And IntelliJ used to be much better for me at around IDEA 12, since then code completion doesn't predict my typical choices at top places, I need to scroll down more and more. So that one is individual style-based. I also long for the days of simplicity as I refuse to keep huge amount of "how to do a certain thing in certain IDE" in my head; IDE should help me with the complexity of language and not impose another time sink on me.

Re: Create React apps using Kotlin

#36

Does this mean that Kotlin -> React -> React Native is feasible too? It's a bit ridiculous on its face, but is there a better way to run Kotlin on iOS? Kotlin is a godsend for Android but if you have to support both platforms one codebase is better

Yes, it's called Kotlin Native: https://github.com/JetBrains/kotlin-native Kotlin right now is a serious competitor for a full stack, any device language. An alternative may be F# which has Fable for Browser, Xamarin (mobile) and .net core for server. But Kotlin looks more integrated to me. Coming from a C#/F# background, Kotlin is really a joy to use.

Yeah, if they play it right they can be one-size-fits-all solution. A question is if they would take risks with such approach as their motto is to "implement stuff that is winning", i.e. copying things others did and that worked well (in commercial sense) and avoid experimental stuff that doesn't bring money in.

Re: Create React apps using Kotlin

#37

How is the debugging experience? Is there a debugging experience? I'm currently a typescript user and I like what VS code has going on with attaching to chrome and providing debugging within the ide. Source maps are okay but a seamless experience in the source language is better. Does the kotlin IDE have facilities for debugging what is going on in the browser?

Being a grumpy old man: it's not programming if I can't set a breakpoint.

I can remember having to debug some prototype hardware with LED's attached to address pins, you kids are spoiled these days! :)

Re: Create React apps using Kotlin

#38

How is the debugging experience? Is there a debugging experience? I'm currently a typescript user and I like what VS code has going on with attaching to chrome and providing debugging within the ide. Source maps are okay but a seamless experience in the source language is better. Does the kotlin IDE have facilities for debugging what is going on in the browser?

Being a grumpy old man: it's not programming if I can't set a breakpoint.

Talk to functional programming folks... :D

Re: Create React apps using Kotlin

#39

I was trying to get this setup going the other day and found it a little fiddly with some of the Jetbrain’s documentation on Kotlin->JS being outdated it seemed and the sample application they have supplied having some issues with missing dependencies, specifically missing package versions on NPM. I’ll be trying this out straightaway, so many thanks for this!

What's the fix to config mgmt jitter, entropy? Every time I set aside a few hours to do a React tutorial, I'm defeated by the stack. I'm very late to docker. I always liked the idea, but didn't have the immediate need. But Python, trying to fix bugs in someone else's project, has now made that need urgent. After spending WAY TOO MUCH TIME getting the exact right constellation of stuff installed. Switching from macpor…

I think Vagrant is for reproducible development environments.

Re: Create React apps using Kotlin

#40
post #7

Can I use this outside IntelliJ (Atom perhaps)? I despise JavaScript, GWT is underwhelming and Kotlin seems like a nice way to bypass these issues + React is becoming a de-facto standard. IntelliJ became too big/slow/feature creeped and I am not having good time with the latest code completion changes, so I am considering dropping it (PyCharm as well) for something more light-weight.

> 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.

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?
Post reply on HN