Depending on what you are doing, you can also put everything in front of the amp. It's a trade off you can consider and drop 20 or 40 feet from your cable runs.
If you put stuff in front, you still need to keep the time-based stuff at the end of the chain. (Normally, that is. Sometimes desired effects are achieved by not following a standard signal chain.)
Gates normally come last, but with delay effects, you don't want to be re-gating repeats, so put the gate before the delays.
...so ever since then, I always hang on to the buckle.