They will both work, however I wouldn't choose either. The 13" MBP's resolution is low, making coding a cramped endeavor. If you want low price, I would go with 13" MBA with 8GB of RAM - better resolution, SSD and low cost. Though if you're looking at 13", the rMBP refurb is the best deal - higher resolution capabilities, baseline 8GB of RAM, dual thunderbolt.
If you want 15", the classic will do just fine but I recommend the anti-glare high res option as mentioned above.