Linux is not really fragmented anymore, there is a lot of distros but they're all compatible with each other. Flatpak solved app distribution and systemd standardized the lower levels. If you build something on Ubuntu it will almost definitely work on Fedora and Arch with no code changes. 10 years ago that was impossible.