Re: Rocket Science
Dates would be easier if they were actual objects.
We've been using object-oriented programming for decades now, but dates are still stored as a fucking string.
With the seperator.
Do you have any idea how many different seperators are used all over the world ? I have found these : / - . \ ! (and when I say found, I mean having to repeatedly debug code that was working fine until a new use case was found).
If date/time values were stored as proper objects, with Year, Month, Day, Hour, Minute, Seconds, Milliseconds, and recoverable with the proper routines, then I strongly believe that all this kind of fuss would be eliminated.
But, even though Redmond is on version 11 of its perenially buggy software, it would apparently be too much of a hassle to record date/time values as the objects they are.
So we continue to get fucking strings, and having to parse them every time.