News for hackers. Stuff that matters.
Re:Nativescript: Build truly native apps with JavaScript by wlindner on Thursday March 05, 2015 @12:07PM (#9152050)
How does Nativescript compare to Appcelerator Titanium or React Native? I know React Native hasn't been released, but they described their approach at the recent React Conf and was curious if it's similar.
Re:Nativescript: Build truly native apps with JavaScript by jakejake on Thursday March 05, 2015 @01:18PM (#9152683)
I don't know about React native, but I used Titanium for a while and this looks very similar. The biggest conceptual difference from what I can see is that Nativescript allows you to make calls to any native API method. With Titanium you can only call those native APIs that have been wrapped.

With Titanium, I suppose you could say that the cross-platform wrapper API and the product are one in the same. Nativescript promotes their abstracted cross-platform API as a kinda optional add-on to the platform.

That's just my thoughts after looking at it for 5 minutes.

Re:Nativescript: Build truly native apps with JavaScript by fokinsean on Thursday March 05, 2015 @02:04PM (#9153068)
I just took a look at Titanium and holy moley their documentation was overwhelming. I haven't used a "native" hybrid app framework yet (only have experience with ionic), but NativeScript looks a bit more accessible to me than Titanium does.
Re:Nativescript: Build truly native apps with JavaScript by sheraz on Thursday March 05, 2015 @02:25PM (#9153202)
I say the documentation is pretty ok once you get familiar with how the API is laid out. And for everything else they have the developer QA section, which is like a self-hosted stack-overflow.

I've been building a couple of simple apps on it the last few months, and it has been a pleasure.

I should be clear here -- I've been using Titanium, not Alloy.

Re:Nativescript: Build truly native apps with JavaScript by fokinsean on Thursday March 05, 2015 @02:35PM (#9153264)
A self hosted QA is pretty awesome. I think another thing that threw me off was how every section I clicked opened up a tab.

I'm still new to the hybrid app world and have only used ionic. I want to eventually try one of these "native" frameworks though.

Re:Nativescript: Build truly native apps with JavaScript by jv22222 on Friday March 06, 2015 @12:56AM (#9155793)
I agree, Titanium classic is really great to work with once you get up and running. I tried Alloy but quickly realized it slows things down and makes it harder to develop.

So, lesson for me was use titanium classic and NOT Alloy.

Also, I would advise building your own small framework with views (things like title bars etc). Just makes it so much easier to make it look and work exactly how you want on iOS and Android.

Re:Nativescript: Build truly native apps with JavaScript by pbreit on Thursday March 05, 2015 @02:29PM (#9153231)
They lost me with the switch to Alloy.
Re:Nativescript: Build truly native apps with JavaScript by sheraz on Thursday March 05, 2015 @04:50PM (#9154074)
Exactly, I started on Alloy and quickly found that there was too much magic in going from templates to js code.

Once I took a step back to Titanium it all felt a lot more sane. Yes it is a little more verbose, but at least I can follow the data flow in code.

Appcelerator is going through some changes as of this week[1] which I hope will improve the documentation and ecosystem around the product.

[1] - http://techcrunch.com/2015/03/04/appcelerator-slashes-staff/

Re:Nativescript: Build truly native apps with JavaScript by pbreit on Thursday March 05, 2015 @06:14PM (#9154562)
Also, their by far best evangelist, Kevin Whinnery, left for Twilio a year or two ago.
Re:Nativescript: Build truly native apps with JavaScript by albemuth on Thursday March 05, 2015 @01:27PM (#9152767)
Titanium's Hyperloop/Ti.next tackles this problem, too bad the timeframe for release seems to always be 6 months from whenever you happen to check.
Re:Nativescript: Build truly native apps with JavaScript by 1971genocide on Thursday March 05, 2015 @12:58PM (#9152527)
Not everyone is a fan of react.js, this is a nice alternative for people who want to use vanilla js.
Re:Nativescript: Build truly native apps with JavaScript by Svenstaro on Thursday March 05, 2015 @01:08PM (#9152597)
Or Cordova/Ionic/PhoneGap?
Re:Nativescript: Build truly native apps with JavaScript by IanDrake on Thursday March 05, 2015 @01:28PM (#9152769)
Those are rendered with a webview. Nativescript is rendered with native components.
Re:Nativescript: Build truly native apps with JavaScript by fokinsean on Thursday March 05, 2015 @01:52PM (#9152981)
How do "native" hybrid apps such as, react native, titanium, etc. access the native components of the phone?

I have been developing a side project using ionic and have had a fairly positive experience so far, but from what I understand ionic/phonegap apps are just wrapped web browsers is that right?

Re:Nativescript: Build truly native apps with JavaScript by yesimahuman on Thursday March 05, 2015 @02:16PM (#9153141)
It's pretty much identical at a high level: there is a proxy layer that is much like a message passing system. A component (web view, JS engine, etc.) says, "Take a photo with the camera" and the proxy layer calls the native code needed to take the photo with the camera.

The actual camera data is just abstract data, it doesn't care if it was generated from a JS call or from a native call.

PhoneGap and Cordova are, at the core, just a standard proxy layer and plugin API. The other "pure JS" solutions have their own custom layers.

Re:Nativescript: Build truly native apps with JavaScript by fokinsean on Thursday March 05, 2015 @02:30PM (#9153239)
That's pretty cool, thanks for the insight!