Released by Berkley in 1989 making it at least 27 years old already, there are lines of code in there probably going back to the 1977 release, because this of course goes back to old school Berkley System Distribution release. 40 years old, next year, then. Can't see it's going to be modified much in the next 10 years.
I expect there is code being written today that will be considered useful enough to still be used in 50 years. I know a guy who worked on weather modelling for the Met Office - I bet his code is still in the models being run in 50 years time. It might have been modified, but there is a real chance his code stays intact.
Code has a half-life, not a use-by date. Work on code that embraces that, and write code with that attitude.
If you're working on some crappy app or site you _know_ will be dead in 2 years time, you might be OK with that. You might not. If you're not, go look for the careers where the half-life is extended.
Banks, power plants & other utilities, satellites, etc. spring to mind, sure, but even the more mundane.
If you're on OS X/macOS, here is the source code to the command line utility `cat`: http://opensource.apple.com//source/text_cmds/text_cmds-71/c...
Released by Berkley in 1989 making it at least 27 years old already, there are lines of code in there probably going back to the 1977 release, because this of course goes back to old school Berkley System Distribution release. 40 years old, next year, then. Can't see it's going to be modified much in the next 10 years.
I expect there is code being written today that will be considered useful enough to still be used in 50 years. I know a guy who worked on weather modelling for the Met Office - I bet his code is still in the models being run in 50 years time. It might have been modified, but there is a real chance his code stays intact.
Code has a half-life, not a use-by date. Work on code that embraces that, and write code with that attitude.
If you're working on some crappy app or site you _know_ will be dead in 2 years time, you might be OK with that. You might not. If you're not, go look for the careers where the half-life is extended.