Very often, I just create a new folder and test things out in there. I use remote upload and then edit and refresh the page to see if it works. Now, one time when I was asked to work on a friend's website, he told me to change the IP for his domain in my HOSTS windows file. He had a clone of his website on another server, so I could edit everything and still visually see my work. Is it ideal to work like this? What's a good strategy for programming when developing websites? e.g. Back up before you begin working, working on the files in a separate directory, etc...
I know everyone has their own style and I understand there's no right way. I'm simply just interested in everyone's common practices and I hope to pick up a few tips here and there and incorporate it to my own style.