But from experience I know that almost all engineering professions put on their pants one leg at a time.
There is certainly a large difference between theoretical and applied physicists and computer science lacks this discrimination, but engineering is often about cutting corners where nobody takes a closer look.
If a colleague of mine calculates some optics, he puts some numbers in a special software and waits a few hours.
There is a lot of mundane work until there is a problem where you can apply computer science. Programming beside the very basics isn't explicitly taught as part of the curriculum. I think it is just a matter of experience and having understood the fundamentals at least at one point in your life.
And being surprised about the lacking code quality in "professional" environments is certainly be a regular experience.
That aside, nearly any modern game is a fairly complex construct.
I know some self-taught programmers that certainly eclipsed the "hobby" phase.