HN2new | past | comments | ask | show | jobs | submitlogin

This is one of those things that makes Rubymotion am increasingly attractive prospect for me as an iOS developer. I wouldn't be ready to move off my familiar Objective-C stack quite yet, but if more projects like this one come along i might just consider it.

One thing I'm curious about is the support for TDD when using Rubymotion, there's a lot of Rspec clones out there for Objective-C but they all feel a bit hacky due to the language's less than stellar support for DSLs. On top of that, testing doesn't seem to be all that big a deal in the iOS world. I'm wondering if a healthy dose of the Ruby ethos changes this.



Yes! RubyMotion ships with a port of Bacon, which removes all the friction from testing in the traditional iOS stack (setting up Xcode, adding multiple targets, verbosity...). Just have to add tests in ./specs and run 'rake spec'

Glance at the docs, especially the section about testing views. Much cleaner API than anything in Objective-C: http://www.rubymotion.com/developer-center/articles/testing/

(also a recent blog post on testing if you're still curious: http://blog.rubymotion.com/post/26489000626/functional-view-...)


> This is one of those things that makes Rubymotion am increasingly attractive prospect for me as an iOS developer.

I've written form-creation and model-syncing code that looks almost exactly like this, but in ObjC.

I'm just not seeing it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: