News for hackers. Stuff that matters.
Re:I Know When You're Vibe Coding by mysterydip on Thursday July 31, 2025 @07:57AM (#44744743)
I once inherited a project that had three separate classes for storing time, each with their own methods to convert between each other.
Re:I Know When You're Vibe Coding by hakunin on Thursday July 31, 2025 @09:24AM (#44745401)
I can think of reasons for this (e.g. storing date/time as it was originally represented 100, 1000 years ago in a historical context vs storing live time for present-day time calculations vs storing non-timezone time for, say, operating hours relative to subject's location), so this statement alone doesn't show fault.
Re:I Know When You're Vibe Coding by mysterydip on Saturday August 02, 2025 @07:22AM (#44766681)
Fair enough. All three were for the same (live, present day) timestamp, and sometimes used within the same function, eg "timeb = timea+timec" where timea would be one class, and timeb and timec would be another.