Re:Would You Bet $100M on Your Pet Programming Language? (2007)
by jacquesm on Saturday December 27, 2014 @11:42PM
(#8805262)
It's ok to add tests for code you didn't write.
Re:Would You Bet $100M on Your Pet Programming Language? (2007)
by lifeisstillgood on Sunday December 28, 2014 @07:49PM
(#8808083)
I was just meaning that a single line of code with "end of day" in it would almost certainly not meet my needs.
It is worthwhile exploring the date-time-calendar libraries and adding tests and third party addons that meet my needs - yes. But I will almost certainly need to do work - out of the box rarely works for something so complicated as dates. And that extends to a hell of a lot of other stuff to
Mostly I guess I am grumpy that "do what I mean" does not work very well.
Now I would never ever trust that this nice person got end of day right for my 100M project. Because they cannot. Is that end of day as in close of business or as in midnight? Is that end of day as in the time some we start that process in ? Or end of day as some arbitrary cut off for a global company (frequently in my experience it's a New York day whereas every library starts using UTC). Don't start on leap seconds, leap days, process allocates that can kick off your code on a machine in HK or NY.
Really this stuff needs to be written as a stdlib in the organisation using it. Datetime might be verbose but I can read that code and see what it does in any python program - "end of day" is something I need to go and find the underlying library for.