Page file (swap) is advantageous when you run a lot of programs at once and the sum of the memory required by the programs is bigger than available physical memory minus memory used for other purposes. I'd say if sum of the memory required the programs > 50% of your physical RAM. It does not hurt much to leave it enabled (just in case) and a reasonable size is 2x your physical RAM. But with the amount of memory people have in their systems now, I see little need for it. Swap was invented in the old times, when memory was very expensive to allow programs to use more memory than there actually was.
Ram disk is beneficial if you need a small, super-fast hard disk for a special purpose. For example when compiling a very large project, where the compiler creates and accesses a lot of temporary files. In other cases, it hurts, because it blocks Windows from using the memory you dedicate to it. It is better to simply leave the applications running.