

and just like that google expands their walled garden and becomes apple 2
remember when the internet was an open platform and computers were yours to run programs you wanted?
and just like that google expands their walled garden and becomes apple 2
remember when the internet was an open platform and computers were yours to run programs you wanted?
phew, that was close!
… wait
Because what’s accurate here depends on the context, and the Python example doesn’t hide that from the programmer.
The same dilemma goes for month calculations: does “3 months ago” mean 90 days ago, 91.3 days ago, this many days into the target month, or this many days from the target month’s end (e.g. to account for 28, 29, 30, and 31-day months)?
yeah, that’s pretty much why timedelta doesn’t have the concept of months or years, just days and smaller units. I like it better this way.
The example of a string length function could be replaced by any other API
I don’t know about that, len
is a built-in – like str
, abs
, bool
. There are only a few of them and they’re well known by people familiar to the language (which seems to exclude the article author). Their use is more about the language itself than about what to expect from a particular API.
In fact, most Python APIs that go beyond built-in usage actually look much more object-oriented with “left-to-right” object.method()
calls. So this argument seems silly and goes away with some familiarity with that language.
that’s 5 cents per customer per year
some people really seem to think that shitting on the ones who actually do the job solves anything