Would developing your own Bitcoin Wallet be safer than using known ones like Electrum? It would obviously be much simpler, with no GUI, worse overall security but no one could get their hands on its source code. I have enough programming experience myself to make it but I'm wondering if it even makes sense to do so.
Thank for your help!
You said it yourself. Worse overall security. A virus capable will easily be able to sift through your private keys if it is stored in plaintext. In general, I doubt the wallet would be 100% secure.