I got a macbook pro back in July and I just use homebrew to install the linux equivalents I need. I have a few VPS machines running Ubuntu 14.04 and all my code works fine between both environments
I really did want a real linux box, but the resolution and integration of the hardware and software on osx is really nice. I was using a asus netbook prior to this.