TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The RubyMotion Way

82 点作者 10char将近 13 年前

8 条评论

flatline3将近 13 年前
&#62; <i>Rubyists get a lot of flak for the kind of DSLs and black magic method_missing tricks the above libraries use; but you know what, maybe that attitude is just what Objective-C has been missing.</i><p>I politely disagree. Objective-C hasn't been missing risky and error-prone approaches that merely attempt to save a few characters at the cost of correctness. Extensions like 'when' are vague, and could just as easily be co-opted for KVO as they could for UIControl event handling.<p>Also, the example is not accurate. In Objective-C, you'd control-drag from the button to your action method, using Interface Builder.
评论 #4216029 未加载
评论 #4216172 未加载
smoody将近 13 年前
" If you've tried projects in Ruby and just didn't like it, RubyMotion probably won't change your mind. But if you've ever wanted to make iOS or Mac apps but didn't want to get over the hump that is Objective-C, maybe this will get you going."<p>Can RubyMotion itself be used to create Mac apps in addition to iOS apps?
评论 #4215679 未加载
评论 #4215606 未加载
DarwinOS将近 13 年前
I sometimes wish rubymotion and macruby had named parameter with default value, something like<p>def functions(with, this: syntax="default value") end<p>but over all, I think rubmyotion rocks and I hope and brings some great Objective-c/Cocoa world into ruby-world and vice-versa.
评论 #4215986 未加载
评论 #4217321 未加载
mapgrep将近 13 年前
If you want a deeper dive into RubyMotion, the creator was just on The Changelog podcast - <a href="http://thechangelog.com/post/25928209107/episode-0-8-2-ruby-motion-macruby-and-more-with-laurent" rel="nofollow">http://thechangelog.com/post/25928209107/episode-0-8-2-ruby-...</a><p>He actually left Apple to launch RubyMotion -- a commercial product, by the way -- after creating MacRuby and developing/maintaining it for several years.
dogan将近 13 年前
iOS development is not only objective-c and Cocoa Touch. XCode, interface builder, instruments are also big helpers and sometimes there can be memory problems that you can only trace with instrument.
评论 #4216009 未加载
评论 #4216588 未加载
评论 #4216169 未加载
petercooper将近 13 年前
Why the tricky horizontal scrolling on this page? (In Chrome and Firefox, at least. Oddly, Safari presents it as a regular vertical page..)
评论 #4215950 未加载
danso将近 13 年前
Are there examples of products that were developed with RubyMotion?
评论 #4216502 未加载
评论 #4216885 未加载
Void_将近 13 年前
&#62; (after the code preview) Pretty nice right?<p>Yes, very nice. And also very annoying.<p>Using these little shortcuts everywhere is confusing. There is no order in things.<p>ObjC is beautiful. There are classes, instances, methods, blocks. And everything has its place.<p>This is a mess, Rails is a mess, most of Ruby code is a mess.<p>Proceed with the downvotes.
评论 #4215961 未加载