Comments

An interface is two things: it is a set of methods, but it is also a type.

When you first learn Go, interface is always introduced as a common methods for some types.

A lesser known feature is that interface{} is a type – the empty interface with no methods. Therefore all types have already implemented interface{}.

One good use is in map[string]interface{} – where the key is string and the value is any type. You can read more about interface values.

iOS
Comments

Every new version uploaded to iTunes Connect needs to have a different build number in order to differentiate the version.

Note: Build number (eg. 1234) is different from Version number (eg. 1.2).

The build number can be automatically increased in these few ways:

Continue reading →
Comments

After upgrading to Yosemite, your brew could run into an error:

/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0
Continue reading →