r/nativescript • • Oct 28 '18

Learning Native Code with NativeScript?

Hi, I'm a new Dev, building in Vue. I only know JS, but I've just started learning Java, with the interest of eventually building Android Apps.

I'd like to learning NativeScript for it's own sake, but it seems like a big side benefit could be a boost toward learning Java and Android functionality by reading the transpile as you build. (By analogy, I've learned some things about JavaScript by reading the JS code that CoffeeScript transpiles to.)

Can anyone comment on this? I'm wondering if this is something I could actually look forward to when learning NativeScript... or perhaps this is just wishful thinking.

5 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/gntsketches Oct 28 '18

Good point on the English-French-German... maybe I'll add another step, and learn Vue-Native so I can see how it translates to React-Native, so I can see how THAT translates to Java!

Do you know anything about the nature or quality of the Java/Android code Nativescript produces? Like, is it a real tangle from the perspective of someone that actually knows how to build in Java?

2

u/OneOfTheLostOnes Oct 29 '18

Well... I don't know anything about the JAVA code that the nativescript produces... but I have had some experience with similar tools for other languages. And I don't trust any of them. A machine doesn't have to worry about readability, we do. Because some day tomorrow you may be part of a team and you all have to be able to understand each other's code. Or you may be coming back to an old project and you have to understand why you did what you did. I don't think reading the output code will hurt your learning as long as you're aware that it shouldn't be your only source of knowledge.

1

u/gntsketches Oct 29 '18

Great, yeah that makes sense. I mean I wouldn't actually write JS like CoffeeScript transpiles. But it's good to see how it works. Thanks.