Objective-c或Swift [英] Objective-c or Swift

查看:103
本文介绍了Objective-c或Swift的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我对iOS和OS X开发非常感兴趣,我打算开始研究它。我遇到了新的编程语言Swift。

我想知道,是否开始学习objective-c或Swift,开始我的iOS和OS X开发职业生涯。我已经是一个使用PHP的开发人员了。



请指教。

Hi I'm very much interested in iOS and OS X development, and I'm planning to start on studying for it. I came across the new programming language "Swift".
I was wondering, whether to start learning objective-c or Swift for start my career in iOS and OS X development. I'm already a developer which uses PHP.

Please advice.

推荐答案

首先,这完全取决于你。 Wes Aday的关于随机陌生人的说明非常正确。



但该怎么办?这是通常的自我引用问题:要了解您是否想要确定是否要学习某种语言,您必须......学习它。这就是你可以做的事情:学习这两者,直到你知道你感兴趣的是哪一个。如果你愿意,你可以随时忘掉。



其他一切都取决于你的目标,值得一提的一个重要部分是:你想学习编程吗?是的,可以使用一些语言,而不是真正理解一般的编程,但我不建议这样做。因此,如果你想学习编程,你也应该明白这两种语言都不是标准化的,而且很少在Apple世界之外使用,而Apple世界本身与编程的其余部分几乎是自相隔离的(即使编程的其余部分是对Apple系统开放)。如果你添加你的PHP(几乎不能被认为是严肃的语言),这三种语言都很难给你足够的背景来理解编程。但是你不认真学习另一种语言吗?

First of all, this is totally up to you. The note by Wes Aday, about "random stranger", is quite correct.

But what to do? This is the usual self-referenced problem: to learn if you want to know for sure if you want to learn a language or not, you have to… learn it. This is what you can do: learn the both until you know which one you are interested or not. You can always unlearn if you want to.

Everything else depends on your goals, and one important part worth mentioning is: do you want to learn programming or not? Yes, it's possible to use use some language without really understanding programming in general, something which I would not advise though. So, if you want to learn programming, you should also understand that both languages are not standardized and rarely used outside of Apple world, which is itself pretty much self-isolated from the rest of programming (even though the "rest of programming" is open to Apple systems). If you add your PHP (which hardly can be considered as "serious" language), all three languages will hardly give you enough background to understand programming. But don't you take learning yet another language too seriously?



一种不影响编程思路的语言,不值得知道


A language that doesn't affect the way you think about programming, is not worth knowing

-SA


假设您只想为IOS / Mac而不是其他平台(Windows,Android等)开发,那么Swift应该是您的选择;



这是更新的,但我认为打算成为Objective C的替代品 - 最终。所以现在学习它会比从Objective-C转换的其他人更有优势。



学习Swift时几乎肯定需要查看一些Objective-C代码(许多例子仍然只有那种语言)所以在某些方面熟悉它会很有用,但我会坚持使用Swift。
Assuming you only want to develop for IOS / Mac and not for other platforms (Windows, Android etc.) then Swift should be your choice;

It is newer, but is I think intended to be the replacement for Objective C - eventually. so learning it now you will be at an advantage over others converting from Objective-C.

While learning Swift you will almost certainly need to look at some Objective-C code (many examples will still be in that language only) so it will be useful to become familiar with it in some ways, but I'd stick with Swift.


这些语言不同。它们都是用LLVM翻译的,但Swift有更好的优化。也可以在这些语言之间桥接。 Swift在很多方面都是Objective-C的压缩版本。



对于初学者,我建议使用Objective-C,因为它是通用语言,并且有很多代码可用。



查看着名的 Ray Wenderlich 的网站。对于像你这样的初学者来说,视频计划是一项有趣的投资。
These languages arent so different. They are both translated with the LLVM, but Swift has better optimization. Also is "bridging" between these languages possible. Swift is in many way a "compressed" version of Objective-C.

For a starter I would recommand Objective-C because it is the common language and a lot of code is available.

Take a look at the website of the famous Ray Wenderlich. For a starter like you is the Video plan an interesting investion.


这篇关于Objective-c或Swift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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