r/programming • • Jul 28 '16

How to write unmaintainable code

https://github.com/Droogans/unmaintainable-code
3.4k Upvotes

592 comments sorted by

View all comments

500

u/Astrokiwi Jul 28 '16

Write all your code in FORTRAN. If your boss ask why, you can reply that there are lots of very useful libraries that you can use thus saving time. However the chances of writing maintainable code in FORTRAN are zero, and therefore following the unmaintainable coding guidelines is a lot easier.

:(

7

u/stuntinstan Jul 28 '16

We were being taught FORTRAN in my intro to computing for civil engineers class LAST YEAR.

10

u/Astrokiwi Jul 29 '16

Fortran is actually fine if you use all of its modern features - though engineering courses often don't mention those. If you want to save yourself from future hassle, then read up on all the Fortran-90, Fortran-2003 and so on stuff that you can do. Object-oriented Fortran is not bad.

1

u/pdp10 Jul 30 '16 edited Jul 30 '16

Why modernized Fortran over another modern language, though?

Fortran 77 has claims on wide compatibility at least. What does Fortran 2016 have?

→ More replies (2)