简体   繁体   English

C ++ vs iOS / android的本机实现

[英]C++ vs native implementation of iOS/android

I'm developing an app for iOS and android that identifies songs. 我正在为iOS和Android开发一个识别歌曲的应用程序。 We have a matching engine in c++ that works well, but my question is about the rest of the app. 我们在c ++中有一个匹配的引擎运行良好,但我的问题是关于应用程序的其余部分。 We have a user interface design that allows the user to record, match and save, as well as share, edit, and see their recordings. 我们有一个用户界面设计,允许用户记录,匹配​​和保存,以及共享,编辑和查看他们的录音。
I'm not a coder - just a designer- and I'm getting conflicting advice about how to implement. 我不是一个程序员 - 只是一个设计师 - 而且我对如何实施提出了相互矛盾的建议。 One person wants to do the majority of the interface in c++ with just a thin native GUI skin, while the other says we should write in native IOS (swift) and Android and only have the engine in c++. 一个人想要用简单的原生GUI皮肤来完成c ++中的大部分界面,而另一个人说我们应该用本机IOS(swift)和Android编写,并且只有c ++引擎。 The argument for c++ is it will be a single code base to maintain - it would include doing the sharing, storing history, displaying sonograms, etc. The argument against is that in fact it will not be easier to maintain, and will also create a lot of problems making calls, for example, between the interface and the sharing module. c ++的论点是它将是一个单一的代码库来维护 - 它将包括进行共享,存储历史记录,显示超声波图等。反对的论点是,实际上它不会更容易维护,并且还会创建一个很多问题,例如,在接口和共享模块之间进行调用。
Hope this is clear - it's a very hard thing for me to assess as ignorant as I am! 希望这很清楚 - 对我来说,评估像我一样无知是一件非常困难的事情! Any advice would be greatly appreciated. 任何建议将不胜感激。

In my opinion, the way to go is to write the GUI the way it was meant to be. 在我看来,要走的路是按照原来的方式编写GUI。 Native iOS/Android will yield a much better user experience and will allow you to use the platform latest and greatest way of implementing a UI. 原生iOS / Android将产生更好的用户体验,并允许您使用该平台实现UI的最新和最佳方式。

Also, I am assuming that the engine will probably not be developped by the same people that develop the GUI itself, so the argument that it would be simpler to have a single code base doesn't really make sense. 此外,我假设引擎可能不会由开发GUI本身的人开发,因此,拥有单个代码库更简单的论点并不真正有意义。

Another solution could be to use Xamarin, so that you can consolidate iOS and Android development, while still having a common C++ engine. 另一种解决方案可能是使用Xamarin,这样您就可以整合iOS和Android开发,同时仍然拥有一个通用的C ++引擎。

Edit: Typo 编辑:错字

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM