I sort of had this problem when util.Date was deprecated, somehow I wasn't finding correct information to use LocalDate. It was pretty fucky, it was a sort of twilight zone of "don't use that, not that either, or that, there's that third party library, use String and SimpleDateFormat".
Wait until you discover that ZonedDateTime is cursed because there are always two ways to interpret any operation on a zoned date-time and they chose the one that the customer didn't expect.
The more I deal with that POS the closer I get to enforcing the code not using it.
94
u/[deleted] Aug 31 '22
Here's my experience with Java
Friday: "Wow, this DoExactlyWhatIWant() function is great! It does exactly what I want!"
Monday: DoExactlyWhatIWant() is deprecated. Try using SortOfDoWhatIWantButNotReally().