News for hackers. Stuff that matters.
Re:Show HN: Painless, productive views on iOS with Formotion... by _frog on Sunday August 12, 2012 @05:22PM (#4373693)
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.

Re:Show HN: Painless, productive views on iOS with Formotion... by 10char on Sunday August 12, 2012 @05:33PM (#4373714)
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-...)

Re:Show HN: Painless, productive views on iOS with Formotion... by flatline3 on Monday August 13, 2012 @01:38AM (#4374686)
> 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.

Re:Show HN: Painless, productive views on iOS with Formotion... by poblano on Sunday August 12, 2012 @09:46PM (#4374252)
How hard would it be to adapt this for Ruby written for iOS using RhoMobile? I'm looking into whether to start learning RubyMotion vs. RhoMobile, and don't know much about either yet.
Re:Show HN: Painless, productive views on iOS with Formotion... by tjarmain on Sunday August 12, 2012 @04:24PM (#4373537)
This is insanely awesome, thanks a lot!
Re:Show HN: Painless, productive views on iOS with Formotion... by DenisM on Sunday August 12, 2012 @04:02PM (#4373471)
I looked at page and could not figure out what it is. Is this a server-side html generator? And AJAX library? A native iOS control library? I guess I will never know.
Re:Show HN: Painless, productive views on iOS with Formotion... by 10char on Sunday August 12, 2012 @04:04PM (#4373478)
It's a library for RubyMotion http://RubyMotion.com
Re:Show HN: Painless, productive views on iOS with Formotion... by DenisM on Sunday August 12, 2012 @04:25PM (#4373544)
Perhaps I did not make myself clear, so let me try again:

The posted article does nothing to describe what it is about to an average person who will wander into it. Most people have no idea what is rubymotion, and which problem it solves, or why they should care. Having read up on it now, I suggest to try this instead:

Rubymotion is a toolchain for ruby developers to create native-looking, native-performing, AppSore-compliant iOS apps. Formotion is a RubyMotion library that provides for declarative UI layout description, making for much faster UI development. At long last, Ruby devs can create first-class iOS apps as quickly as they can create first-class web apps.

Re:Show HN: Painless, productive views on iOS with Formotion... by Kerrick on Sunday August 12, 2012 @04:35PM (#4373570)
Most jQuery Plugins don't explain what jQuery is. Why should a RubyMotion Library be responsible for explaining what rubyMotion is? At most, Formotion they should link the word "RubyMotion" in their headmast to the RubyMotion project website.
Re:Show HN: Painless, productive views on iOS with Formotion... by DenisM on Sunday August 12, 2012 @04:51PM (#4373626)
Because one is well known and the other one is obscure:

http://www.google.com/trends/?q=rubymotion,jquery

Re:Show HN: Painless, productive views on iOS with Formotion... by jcoder on Sunday August 12, 2012 @06:42PM (#4373853)
Ah it is googleable then. So whats the problem again?
Re:Show HN: Painless, productive views on iOS with Formotion... by xiaoma on Monday August 13, 2012 @02:15PM (#4377209)
For their target audience, ruby programmers who want to write iOS apps, RubyMotion is very well-known.

https://www.google.com/search?q=use+ruby+to+write+ios+apps

Re:Show HN: Painless, productive views on iOS with Formotion... by 10char on Sunday August 12, 2012 @04:45PM (#4373607)
Ah definitely, done. Thanks!