The fact that container package formats like #snap and #flatpak can somewhat contain the damages from bad code or bad coding practices should not be perceived as a license nor a permit to continue having bad software development and coding practices.
Yes this is a small rant after a convo where talking about a bad software practice someone says;
That is why flatpak is good, it isolates the system from that.