It’s not horrible, it’s different, has different goals and different audiences. Context is king, and the bulk of professional programmers criticizing scientist code is just lack of context and a different set of priorities.
From a more science based background i often think programmers write horrible code as i search in vain for where anything actually happens in a sea of abstractions.