>Title says it all.
The title doesn't really say it all. It depends.
How much disk space are we talking about? More, or less, than will fit on Dropbox?
Do you have one person with accounts on both machines? Or is this sharing between different people?
You mention code, and moving it. Do you really mean "move" or do you mean something closer to copy, or sync? rsync maybe? Or stick the code in git, put it in a GitHub project, and clone onto each machine then use GitHub to manage keeping them in sync?
Maybe explain the specifics more and you might get some better answers.
Personally I lean heavily on GitHub and dropbox (for different use cases). But then also sometimes use scp for copying files. Would use rsync if I had to sync files.