I am currently a computer science student on my way into my second year. I was wondering whether anyone has any suggestions for sharing code between multiple computers? I mostly use visual studio on my windows desktop but it would be nice to be able to code on my macbook pro as well without going through a painful process of sending myself projects and such. Any suggestions? I should probably know this by now so sorry if it is a dumb question.
I too would recommend GitHub, though private repositories aren't free. If you'd prefer some privacy, and won't be collaborating with many people on your code, Bitbucket may be a better alternative.
Another alternative is to host a private Git repository from your desktop. Running the server inside a Linux VM is cleaner and should take around 256 MiB, but you can also put the SSH server directly on Windows. The only problem is that the desktop needs to be running when you want to access the repository, but this shouldn't be a problem if it's already running constantly.
Even if you use a private repository for most of your work, it would make sense to set up a bitbucket/GitHub/... account so you have an online portfolio you can point prospective employers at. It does appear that this kind of thing is becoming more and more expected...