Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Who among us is writing code today worried about how it will be used in 2052?

This decade I knowingly wrote code that will break in 2036 [1]. My supervisor was against investing the time to do it future-proof (he will be retired by 2036), and I have good reason to believe the code will still be around by that time. I don't think I'm the only programmer in that position.

[1] Library specific variant of the y2038 problem https://en.wikipedia.org/wiki/Year_2038_problem



- This decade I knowingly wrote code that will breaks in 2038

Sure, but how bad was it really? Something you could fix relatively quickly with a little time and money, or an instance of Lovecraftian horror unleashed upon the world like so much COBOL code?


Even then, mix in people switching jobs, losing the knowledge of where or what all these landmines are, and add similar but unrelated issues across your entire codebase. This stuff adds up. I like to at least add stern log messages when we are at 10%-50% of the limitation. It's saved my ass before, especially when your base assumption can be faulty.

In one of those scenarios, where we expected the growth of an integer to last at least 100 years, due to certain unaccounted for pathological behaviors, a user burned through 20% of that in a single day. But we had heavy warnings around this, so we were able to address the problem before it escalated.


I'm assuming this is C/C++ so I'm wondering if there isn't some compiler pragma to have it warn people still building the code in 2025 or so?


Ha! Rebuilding the code. The source will be lost and the binary will be irreplaceable in many circumstances.


Embed the source code in the binary.


Wow, these libraries are way too large

strip a.out




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: