Mac 开发 - 从 MacRuby 还是 Objective-C 开始?

发布于 2024-09-08 11:52:15 字数 261 浏览 4 评论 0原文

我想深入开发适用于 Mac 的应用程序,后来也开发适用于 iPhone 的应用程序。对于我这个 Ruby 专家来说,很明显我同时学习 MacRuby 和 Objective-C。问题只是我应该按照什么顺序来做。先学习 Objective-C 然后结合两个世界的知识开始学习 MacRuby 更容易,还是从 MacRuby 开始慢慢找到为 Mac 开发应用程序的方法更容易?

我对 Ruby 语言的理解相当好 - 5 年的经验,而且我对 C 也有不错的理解。以防万一这可以更容易地回答我的问题。

I want to dive into developing applications for the Mac and later also for the iPhone. For me as a Rubyist it is clear that I learn both, MacRuby and Objective-C. The question is only in which order I should do that. Is it easier to learn Objective-C first and then combine the knowledge of both worlds and start learning MacRuby, or is it easier to start with MacRuby to slowly find your way into developing applications for the Mac?

My understanding of the Ruby language is quite good - 5 years of experience, and I also have a decent understanding of C. Just in case that this makes it easier to answer my question.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

耳根太软 2024-09-15 11:52:15

首先学习 Objective-C。我处于你的位置,我尝试过使用 MacRuby,但没有取得什么成果。现在我已经完成了一些 Objective-C 开发,MacRuby 很容易,而且回到 ruby​​ 语法也让我松了口气。

Learn Objective-C first. I was in your position and I tried to do MacRuby and didn't get much of anywhere. Now that I've done some Objective-C development, MacRuby is easy, and it's a nice relief to get back to ruby syntax.

冰雪梦之恋 2024-09-15 11:52:15

直接选择 Objective-C,特别是如果您要进行 iPhone 开发。您已经了解 Ruby,所以不要再浪费时间了。

Go straight for Objective-C, especially if you're going for iPhone development. You already know Ruby so don't waste any more time.

一抹苦笑 2024-09-15 11:52:15

从 Objective C 开始。我尝试从 MacRuby 开始,但对方法名称中不必要的下划线感到困惑。学习 Objective C 后,我对 MacRuby 有了更好的理解。

Start with Objective C. I tried starting with MacRuby and was floored by the unnecessary underscores in method names. After learning Objective C, I understand MacRuby a lot better.

人间不值得 2024-09-15 11:52:15

在我看来,如果您正在考虑为 iPhone 开发应用程序,那么您将需要了解 Objective-C,所以您不妨从那里开始。我从未使用过 MacRuby,但如果您已经很好地掌握了 Ruby,那么学习起来似乎并不困难。

IMO if you are looking at developing applications for the iPhone then you will need to know Objective-C so you may as well start there. I've never used MacRuby but it sounds like it wouldn't be much of a learning curve if you already have a good grasp of Ruby.

白首有我共你 2024-09-15 11:52:15

我认为学习Objective-C的主要原因是,

1.Apple的参考,示例,世界上大多数Cocoa代码都是用Objective-C编写的,
所以,无论如何你必须阅读很多 Objective-C 代码,才能理解 Cocoa 框架。
一旦您了解了 Cocoa,在 ObjC 和 ruby​​ 之间返回和强制就很容易了。

2.MacRuby目前不支持iPhone/iPad。

I think main reason for learn Objective-C are,

1.Apple's Reference, sample, and most of Cocoa codes in the world are written in Objective-C,
so, anyway you have to read many Objective-C codes, to understand Cocoa frameworks.
Once you got knowledge of Cocoa, going back and force between ObjC and ruby is easy.

2.MacRuby does not support iPhone/iPad currently.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文