Install command line tools and xcode
This is the first step to prepare your machine for the rest of the installations. You can download this, and xcode together. You can actually get away with only installing command line tools if you aren't doing any mobile development. It saves quite a bit of space. Xcode is heavy.