Use powerful refactoring commands to safely make small and large-scale changes.
Undo any refactoring with command + Z.
Download Android Studio 1.1
Download and install Android Studio for Mac.Setup Unit Testing Support in Android Studio
Check Enable Unit Testing support under Gradle > Experimental in the Android Studio preferences.
Open up Build Variants and set the Test … Read more
On a recent project, my team inherited a large, lightly-tested Java/Spring codebase. As we began to modify the code test-first, we ran into two common obstacles that prevent unit testing in Java:Class methods Objects instantiating other classes (using the…
Last week, JetBrains released RubyMine 6.0. The most significant feature is multi-project support; perfect for component-based Rails architectures. However, in this post, we’ll look at OS X keyboard shortcuts for some of the other new features.
RubyMine includes several commands to simplify working with Rails views. In this post, we’ll look at OS X keyboard shortcuts for view navigation, creation, and previewing; ERB code generation and refactoring; and HTML code generation and navigation.
Duck typing is a style of programming that relies on what an object does, rather than on what it is. Avoiding class dependencies results in highly flexible code. Ruby’s conversion protocols, used throughout the core and standard libraries, are a … Read more
My first steps in learning Go were simple “scripts”; programs compiled and immediately executed by the go command-line tool. This was a great way to quickly get started; kind of similar to using a REPL. However, I soon wanted to … Read more
In our last post, we looked at the basic concurrency building blocks in Go: goroutines and channels. Goroutines are independently executing functions which use channels to communicate. In this post, we’ll take a deeper look at a few other … Read more
The Go language includes several unique features, many of which are found in other languages. The most interesting one however, is its support for concurrent programming. Instead of a traditional approach using locks and mutexes, concurrency in Go is based … Read more
By selectively hiding and showing sections of code, code folding allows you to focus on what’s relevant, while ignoring irrelevant details. Code folding is also a useful way for quickly getting a high-level overview of a large section of code. … Read more