Agree with those two problems on the scientist side. I would also add that they often don't use version control.
I think a single semester of learning the basics of software development best practices would save a lot of time and effort in the long term if it was included in physics/maths university courses.