News for hackers. Stuff that matters.
Re:Ask HN: Is phonegap/cordova still relevant? by kyriakos on Wednesday October 12, 2016 @01:50PM (#12695040)
If I am not mistaken doesn't with Xamarin mean you need to build the UI code once for each platform?
Re:Ask HN: Is phonegap/cordova still relevant? by Sidetalker on Wednesday October 12, 2016 @02:19PM (#12695283)
Xamarin provides a bunch of generic controls that act as bridges to their corresponding platforms. It has enough flexibility that you can build the UI code from scratch for each platform, but you could probably put together a simple form based application with a single UI source.
Re:Ask HN: Is phonegap/cordova still relevant? by sharemywin on Wednesday October 12, 2016 @01:55PM (#12695076)
This says you can share 96% of the code base across platforms:

https://www.xamarin.com/forms

Re:Ask HN: Is phonegap/cordova still relevant? by pdappollonio on Wednesday October 12, 2016 @01:58PM (#12695118)
Xamarin Forms dev here. This is true. I wrote an audiotour app and I was able to reuse everything. The only thing I couldn't reuse was the audio player because of differences between platforms, but still you can use plain old Xamarin.Android and Xamarin.iOS. Pretty good results and you save ton of time.
Re:Ask HN: Is phonegap/cordova still relevant? by sharemywin on Thursday October 13, 2016 @08:29AM (#12700252)
curious is there design pattern for that? could you still have one code base similar to how different processors are compiled? or some kind of wrapper component? seems like there should be someone to write the code once and not need to make a copy.
Re:Ask HN: Is phonegap/cordova still relevant? by izacus on Wednesday October 12, 2016 @03:13PM (#12695683)
Yes, and that is why those apps look and feel better - you use OS native widgets that users are familiar with and feel as their OS does.

Meanwhile you still can share most of the code in the app.

Re:Ask HN: Is phonegap/cordova still relevant? by bo0mb on Wednesday October 12, 2016 @04:22PM (#12696137)
That's where React Native comes in ;)

Build for IOS/Android/UWP/Ubuntu/OSX all in the same base.