Could Apple bet on the App Store revenues and licensing revenues and give away the iPhone OS to third parties? Will we ever see a Motorola or HTC built phone running the iPhone OS? Will we ever see inexpensive chinese phones running it?… Let’s see what that would mean to Apple.
Code blocks with optional arguments in Ruby 1.8.x
Ruby 1.9 has some cool new features. One of them is the ability to define default values for the arguments passed to code blocks, like in the following example: pow = proc { |a, b = 2| a**b } pow.call 3, 3 # 27 pow.call 3 # 9 This is very useful, for instance, when… →