

ah sweet, code that does something slightly different every time i compile it
ah sweet, code that does something slightly different every time i compile it
Because to a certain extent Python is duck typed. Python has no concept of interfaces, unless you count the abc
module combined with manual isinstance()
checks, which I’ve never seen anyone do in production. In order to be passed to some function that expects a “file-like object”, it just has to have methods named read()
, seek()
, and possibly isatty()
. The Python philosophy, at least as I see it, is “as long as it has methods named walk()
and quack()
, it’s close enough to a duck for me to treat it as one”.
Duck typing is distinct from weak type systems, though.
For the last time, Python is not weakly typed. It is dynamically typed. The statement 5 + "hello"
results in a type error. Bash is weakly typed, and that same addition results in 5hello
i can at least take solace in the fact that brain dead lemmings are 100% bark and 0% bite
I can’t see through the paywall either, but if it’s like any of the hundreds of other articles that have been written on this topic, the answer is probably TikTok
can somebody please remind me why i still have a lemmy account?
by that logic, every citizen of the united states is a fascist, because they could have been mobilizing and weren’t
Elon Musk tweeted “Imagine a new all-powerful woke AI”
i’m honestly not sure which belief is more brain-dead: that anything that is woke is bad, or that all-powerful AI is a credible threat
And “right wing” as defined by someone who calls anyone to the right of Bernie Sanders a fascist…
Huh. Neat feature. That’s in C# I assume?
(i’m gonna do something evil)
Sounds like you’d really like Nix.
The second one isn’t valid syntax in any programming language I’m familiar with. What does it do?
why would you call it anything other than the ternary operator
so like the autopilot in Elite Dangerous. will it get you there? sure. will it get you there fast? …not exactly.
…either an empty string, a single character, or the same sequence of characters repeated more than once?
A couple years ago Sega noticed they could make more money if they copied Nintendo’s homework with regard to legal strategy, and the world is the worse for it
You know what? I’m gonna Sonarr and Jellyfin even harder
ohhh nooooo, who could possibly have seen this coming
not like that repo was getting constantly vandalized as people realized it contained copyrighted code that the winamp owners didn’t have the rights to which the project managers were halfheartedly playing whack-a-mole with
FFmpeg has FFV1 which is lossless
nah, that’s code that does something slightly different every time you run it. that’s a different beast.