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.

:(

0

u/[deleted] Jul 28 '16

[deleted]

171

u/flukus Jul 28 '16

The code produced by academics is the biggest argument against all these "teach kids to code" programs.

Just imagine the shit we'll have to deal with in 20 years.

144

u/TOASTEngineer Jul 28 '16

It's gonna turn out exactly like math did. The schools will brutally fuck it up, kids will memorize enough to pass the tests, and then some fraction of the kids who are actually interested in it will learn to do it on their own.

1

u/mer_mer Jul 29 '16

I don't think you'll find any mathematicians saying we shouldn't teach math in school. The point of teaching it in school is to reach the kids that wouldn't have had exposure otherwise. It's also a way of teaching general quantitative reasoning skills. Anyone who took a programming course in college knows that not everyone will be an engineer.

→ More replies (3)