I like to run my Raspberry Pi wirelessly, this can be done easily by adding a compatible USB WiFi dongle. With the introduction of the new Raspberry Pi 3, the built-in WiFi interface save us the need to find a compatible WiFi dongle or in the case where compatible WiFi dongle is not available, one needs to compile their own drivers for the WiFi dongles.
Even with compatible wireless devices using drivers that come with the official Raspbian distribution, I often experience the issue of periodic disconnection. This seems to happen at random interval, sometimes the connection is recoverable but often the Pi needs a reboot. This is particularly annoying if you setup your Pi as a server and your clients in your network cannot establish a connection due to the disconnected wireless interface. Let me share with you how my Pi servers maintain their own connections automatically.