3 ms·
I have seen people store dates in string form, in memory, converting to and from string form as they are updated. It hurts to read code like that.
by alayne 14y ago
I have seen people store dates in string form, in memory, converting to and from string form as they are updated. It hurts to read code like that.
- chimeracoder 14y agoInstead of telling you about the worst one I've seen in an API implementation, I might as well just show you the code it took to turn it into a correct timestamp: https://gist.github.com/4438567 https://gist.github.com/4438567 (Yes, they gave TWO separate UNIX timestamps, neither of which corresponded to the actual time of interest).
- deleted 14y ago[deleted]