News for hackers. Stuff that matters.
Re:Whenever – typed and DST-safe datetimes for Python by stavros on Sunday April 13, 2025 @10:31AM (#43673085)
Again, the library in the article removes some stdlib footguns. The footguns are there, and if you use the stdlib, you need to remove (or avoid) them yourself. There's no free lunch, and you'll either need to remove them yourself (and test that code), avoid them (and constantly remember to not hit them), or use another library.

It's not a choice between "using a dependency" or "using something in the stdlib", where all other code remains the same, otherwise there would be no point to writing a library, as it would offer nothing over `datetime`.

Re:Whenever – typed and DST-safe datetimes for Python by ok_dad on Sunday April 13, 2025 @04:41PM (#43675684)
That’s why I’m a software developer though, because I learned the footguns in the standard library. I use it before third party libraries whenever I can. I can’t understand the fear, just learn your job.
Re:Whenever – typed and DST-safe datetimes for Python by stavros on Sunday April 13, 2025 @04:51PM (#43675767)
If your approach to footguns is "just learn your job", I'm sorry, but you aren't a very good software developer.
Re:Whenever – typed and DST-safe datetimes for Python by ok_dad on Tuesday April 15, 2025 @02:40PM (#43696824)
Well you know nothing about me so screw off.
Re:Whenever – typed and DST-safe datetimes for Python by stavros on Tuesday April 15, 2025 @02:46PM (#43696897)
You felt you knew enough about me to tell me to learn my job, so I figured you'd be open to similar feedback.
Re:Whenever – typed and DST-safe datetimes for Python by ok_dad on Tuesday April 15, 2025 @04:15PM (#43697847)
True, my bad. I apologize. I’m impressed by your grace with this comment.