哪个更好?本机应用程序或混合应用程序? [英] Which is better? Native App or hybrid App?

查看:157
本文介绍了哪个更好?本机应用程序或混合应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个简单的应用程序适用于iOS,Android和Windows Phone。

I want to develop a simple App for iOS, Android and windows phone.

我只是想知道,一个简单的HTML5,JS和CSS组合能够在所有这些平台上工作。

I just wondered that a simple HTML5, JS and CSS combination can work in all of these platforms.

我想知道的哪一个将是有效的?

随着时间的推移和编码没问题。但如果我能实现与HTML5,JS本身的一切,我会选择混合动力的发展。我想知道的本地和混合例如发展之间的主要区别(我知道,主要区别在于HTML5,JS支持跨平台)。

No problem with time and coding. But if i can achieve everything with HTML5-JS itself, i will chose Hybrid development. I want to know the major difference between the Native and Hybrid Development with example(I know that the main difference is HTML5-JS supports cross platform).

请注意:我不是一个游戏程序

Note : I am not making a game app.

推荐答案

在我的经验,喜欢的PhoneGap等这些跨平台解决方案从未真正撑起来的预期,除非你正在开发的应用程序是超级简单。即使像过渡动画和小UI调整基本的东西会使用这些工具一场艰苦的战斗。

In my experience, these cross-platform solutions like PhoneGap and others never really hold up to expectations unless the app you're developing is super simple. Even basic things like transitional animations and small UI tweaks will be an uphill battle using these tools.

本机开发可能需要更长的时间(如果您正在为超过1平台的应用程序),但好处是,你得到完全控制你正在做什么。性能方面,本机开发还在,而且可能永远是遥遥领先的跨平台开发,仅仅是因为它没有被嵌套在一个浏览器中的开销,或任何其他运行时间pretive平台。

Native development might take longer (if you're building an app for more than 1 platform), but the advantage is that you get full control over what you're making. Performance-wise, native development is still, and will probably always be, far ahead from cross-platform development, simply because it doesn't have the overhead of being nested within a browser, or any other run-time interpretive platform.

此外,从我的经验,能够神话写code一次,有它在所有平台上的工作瞬间是sort'v圣杯。许多人声称,他们已经做到了这一点,但你总是会发现自己写特定平台的code(形式为如果资源管理器,如果Safari,如果Chrome等等)。

Also, from my experience, the myth of being able to write code once and have it work on all platforms instantly is a sort'v holy grail. Many people claim to have achieved it, but you will always find yourself writing platform specific code (in the form of "if explorer, if safari, if chrome" etc).

我的建议,编写你的应用程序一个稳固的架构。构建应用程序,一旦在一个平台,在设计制定出所有的毛刺,然后复制设计到其他平台。这需要你稍微长一点,但您的应用程序的实力,并灵活地添加/更改功能,并在你的应用程序等小东西将是值得的。

My advice, write a solid architecture for your app. Build the app once in one platform, work out all the glitches in the design, then copy the design to other platforms. It'll take you a little bit longer, but the strength of your app, and the flexibility to add / change features and other small things in your app will be worth it.

作为一个例子,拿Facebook的。他们的previous应用程序(如果你还记得)是一个跨平台的应用程序。这是缓慢的,无反应,会崩溃所有的时间和几乎是不可用的。大约一年多前,无数的投诉后,他们发布了一个更新他们的原生应用,突然,所有这些问题消失了(当然,至少大部分)。

As an example, take Facebook. Their previous app (if you remember) was a cross-platform app. It was slow, non-responsive, would crash all the time and was practically unusable. About a year or so ago, after countless complaints, they released an update with their native app, and suddenly, all those problems disappeared (well, at least most).

这篇关于哪个更好?本机应用程序或混合应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆