This is the kind of thing I'm talking about.
A FreeCodeCamp account presumably offers more functionality beyond just the newsletter, and the majority of people would sign up for that functionality and not the newsletter.
Yet, there is no way to opt-out directly, and you have to go through extra steps to do so after the fact.
This is also in breach of the GDPR which mandates that consent for non-essential data processing (marketing communications fall into that) should be opt-in (so pre-ticked checkboxes are already forbidden) and freely given (so there is no penalty for declining, you can’t refuse to open an account for them if they decline consent).