As @francois says, it is always a good idea to have a partition, mainly because you might have a contingency situation someday, and it will keep the kernel happy.
Modern kernels are however not that much dependent on having swap as in the past.
However, having a large enough root partition, more than enough RAM, and swap being rarely used, it does not need to be a partition. Create a 51MB/1G swap file inside the root partition if you want a simpler configuration.
You will only need larger swap files in production servers like application servers, databases or large web servers.
see Creating a Swap File