Earlier quoted context omitted.
Forgive my ignorance of iOS, but do the current Objective-C based tools deliver "An interactive shell [...] for introspection, live coding and debugging" ? If RubyMotion can actually deliver a real first-class REPL that works, that would be a pretty huge deal. Lack of a REPL is the biggest reason why I dislike mobile (Android) development.
Yes, it's called GDB or LLDB, depending on your compiler. Not live coding though, but I don't know if that's a big deal.
RubyMotion - Ruby for iOS
131–140 of 250 posts
Re: RubyMotion - Ruby for iOS
#132Earlier quoted context omitted.
In RubyMotion, you can do something like: def animate(*args) UIView.begin_animation yield(*args) UIView.commit_animation end animate(myButton, &buttonAnimateBlockFromSomewhereElse) animate(myView, myOtherView, &genericAnimateBlockFromSomewhereElseWithTwoArgs) animate do # Do something locally ignoring args end And, yes, you can do the same thing with Obj-C and some creative casts...but it's nicer in RubyMotion! (ymmv…
You do it this way: [UIView animateWithDuration:1.0f animations:^{ self.view.alpha=0.0f; }]; Not so hard.
I think I'll try and write up a demo app to explain what I mean...
Re: RubyMotion - Ruby for iOS
#133Earlier quoted context omitted.
Goodness - what a hateful, stereotyping, and narrow-minded comment. I'm enjoy ruby and spend a lot of time writing it, but would never pass judgement like this on anyone who uses another language. I've never interacted with anyone writing in any language that has an attitude like this - let's hope that you are an edge case...
Honestly, I'm part of the mostly-silent majority of polyglot programmers that choose the best language for the job and have grown increasingly weary of Rubyists wheel invention and focus on rock star programming and rock star rants. It's the only community that I find socially insufferable, and while an unpopular opinion here, I don't relish the notion of Rubyist culture. Culture aside, simply technologically, Ruby h…
- Despite the opinion clearly being unpopular here, I stand by it: the ruby community is toxic-at-best, and totally technogically uninteresting.
Individual Ruby developers may be very nice people, but that doesn't make the technology any more notable or novel, and doesn't change the general tenor of the Ruby community, which seems to be driven by larger than life personalities and a general lack of solid applied computer science.
Re: RubyMotion - Ruby for iOS
#134so, we need a mac for this. right?
Re: RubyMotion - Ruby for iOS
#135Earlier quoted context omitted.
You do it this way: [UIView animateWithDuration:1.0f animations:^{ self.view.alpha=0.0f; }]; Not so hard.
But what if I want to have my animations in one object, and my elements to animate in another? Yes, you can have an Obj-C method return a block, but you're going to have to do some nasty casting if you want to be able to call those blocks with an arbitrary number of arguments. (That, or box everything up in an NSArray, which kinda sucks.) I think I'll try and write up a demo app to explain what I mean...
I think you are over thinking things.
Re: RubyMotion - Ruby for iOS
#136Earlier quoted context omitted.
Yes, it's called GDB or LLDB, depending on your compiler. Not live coding though, but I don't know if that's a big deal.
Yes, it's a big deal. Being able to live code completely changes (and dare I say, improves) one's ability to construct rather complicated structures that work because the small building blocks are live-tested. It's fantastic.
It's not a big deal*
* former smalltalker
Re: RubyMotion - Ruby for iOS
#137Earlier quoted context omitted.
Goodness - what a hateful, stereotyping, and narrow-minded comment. I'm enjoy ruby and spend a lot of time writing it, but would never pass judgement like this on anyone who uses another language. I've never interacted with anyone writing in any language that has an attitude like this - let's hope that you are an edge case...
Honestly, I'm part of the mostly-silent majority of polyglot programmers that choose the best language for the job and have grown increasingly weary of Rubyists wheel invention and focus on rock star programming and rock star rants. It's the only community that I find socially insufferable, and while an unpopular opinion here, I don't relish the notion of Rubyist culture. Culture aside, simply technologically, Ruby h…
Re: RubyMotion - Ruby for iOS
#138That being said, it could be great, I have no idea.
Re: RubyMotion - Ruby for iOS
#139Re: RubyMotion - Ruby for iOS
#140http://www.rubymotion.com/developer-center/guides/project-ma...
No XCode. Instead of obscure and impenetrable project files, a convention over configuration Rakefile. Clean and Ruby-like workflows and repositories.
While you can certainly configure an Xcode workspace to program in RubyMotion, we do not provide any support for Xcode out-of-the-box. We do not believe that Xcode makes a good environment for Ruby development (or development in general). Ruby also makes it very easy to write great Domain-Specific Languages that can be used as elegant alternatives to graphical user interface or data modeling tools. [1]
Laurent Sansonetti gets it. I've been writing iOS code for three years and have never been able to figure out how to have a frictionless workflow around XCode, everything about it is convoluted. The idea of automating frequent development tasks with Ruby generators and DSLs sounds exciting and promising.