Attacking a PoW system costs more than a bad actor would receive in reward for attacking the system.
There’s good book I can recommend that you might enjoy as a programmer if you want to learn more about this: Mastering Bitcoin by Andreas Antonopolis. He is a Greek CS nerd who got into it during the Greek financial crisis and explains this all very well.
It’s strange to me to be a professional programmer and have no interest in highly secure programmable money and distributed systems for consensus, but you do you. I am not here to change your mind.