>I want to make a web program but I need to be able to switch from my desktop and laptop at any given time. What's the best approach to that?
The right way to do it is to use a version control system (git). It looks hard, but actually you'll only need to learn basic commands for your goals. Set up a master branch of development and sync with it on both of your devices.