Linux as a server/headless OS has been fantastic for me. I have a home NAS running Linux that hasn't been rebooted in over a year and that was due to swapping out hard drives.
Linux as my desktop OS, not so much. I have to reboot my Linux laptop every few days for various reasons, including complete unresponsiveness to any keyboard input.
That's really weird. Which distro and hardware are you using? I can go months without rebooting. I mostly do so when Linux tells me it needs a reboot to apply some update.
Keep in mind I use my laptop for both coding and gaming (if it ever locks up it's because of a game -- which wasn't uncommon years ago when I used Windows, either).
Linux as my desktop OS, not so much. I have to reboot my Linux laptop every few days for various reasons, including complete unresponsiveness to any keyboard input.