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…
I’m not sure about Click’nLoad or Debrid, but aria2 does all the other things you just listed.
oh there are plenty such. kget, aria2, uget, and motrix off the top of my head. but people use jdownloader for the same reason they use windows – it’s what they know.
Tell me they didn’t. Tell me this isn’t an actual slide. This is just too funny.
The libre difference, where immediately upon starting up, your desktop manager throws an Oops!, and it shows the current power consumption in the status bar despite having no idea what the current power consumption is.
(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
If apt-get
detects that a package you told it to install is also available as a snap it’ll silently install that instead and you have to edit the Linux equivalent of the registry to get it to not do that
Canonical wants to be Microsoft so goddamn bad they can taste it
nah, that’s code that does something slightly different every time you run it. that’s a different beast.