anybody who really wants to learn to code will just install linux on an old clunker. every uni and highschool student i know who means business does this.
It's called secure boot and there's nothing magical about it. It's already here. You have it in "your" CPU. For now, you can still disable it after it boots the signed UEFI/bootloader. It won't be long until that option is gone forever.
Also, you cannot experiment in a safe environment. Safe environments are adequate if your are infantile. But you stay that way if you don't get freedom.