All the code I have seen written by academics, PhDs especially is some of the worst code I have ever seen aha. All finished the night before some deadline for submission and "works" on their machine.