且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有没有Objective-C和Java或iPhone和Android之间的巨大差异?

更新时间:2023-01-04 18:01:10

我不会浪费时间去寻找iOS和Android之间的共性。

I wouldn't waste time trying to find commonality between iOS and Android.

跨平台几乎总是浪费时间和资源,除非跨平台能力,是中间的应用程序功能。即对于具有定制的操作系统和工作非常紧密地与硬件平台如iPhone和Android尤其如此。

Cross-platform is almost always a waste of time and resources unless the cross-platform capability is central to the apps functioning. That is especially true for platforms such as iPhone and Android which have custom OS and work very tightly with the hardware.

跨平台开发环境中增加而不是降低复杂性长期性的。是的,这听起来很整洁,但通常你得到你想要轻松的90%,然后你打一个路障,破坏你的节余,然后开始把你的洞。只是有很多妥协和方形钉塞进圆孔。

Cross-platform development environments add rather than reduce complexity long term. Yeah, it sounds neat but usually you get 90% what you want easily and then you hit a roadblock that destroys all the savings you made and then starts putting you in the hole. There are simply to many compromises and square pegs jammed into round holes.

除非你的应用程序在理论上可以工作,从一个普通的网页,跨平台是不适合你。

Unless your app could in theory work from a generic web page, cross-platform is not for you.

在Objective-C和Java的具体情况,尽管Java是由Objective-C的后裔,他们没有现代化的互操作性。不能使用code,从一个在另一个。

In the specific case of Objective-C and Java, although Java is descended from Objective-C they have no modern interoperability. You can't use code from one on the other.

您应该花时间去学习每个平台的特定的API。有没有捷径可走。

You should spend the time to learn each platform's specific API. There are no shortcuts.