Did you make a lot of mistakes when first starting your job?

Fortran will seemingly never die, sadly. Nor will the F77 style coding standards it seems like.

I dug into a module today trying to look ahead to something I could be dealing with a month from now and... wow. The entire file is one big subroutine that's about 4k lines that look like: C CHECKS IF THING1 = THING2, THEN CLEAR EFFECT OF THING1 IF ( .NOT. LHPSNS1 .OR. LHPSNS2) !do stuff.

There are dozens of blocks like this too, and they all look like virtual duplicates of one another.

I can't tell which things are part of the common block, which ones are local, what their data types are, what they do... The changes I expect to need to make amount to maybe 10 lines in the end but because it's so unintelligble, it'll likely take me a week to do so, and I'll still probably get it wrong somehow.

/r/AskEngineers Thread Parent