There are two kind of buyers, this smart guy:
and grandpa, who bought it for his grandson billy:
There are two kind of buyers, this smart guy:
and grandpa, who bought it for his grandson billy:
Ist ja wohl keine Frage dass hier Schadensersatz geleistet werden muss. Absolutes Behördenversagen. Wollen mir doch nicht erzählen die wissen nicht wo die Clubs anbauen, die wollen doch sonst jede Kleinigkeit wissen...
AdAway hat mittlerweile auch eine VPN-Alternative eingebaut, ist aber vermutlich ähnlich instabil wie der Rest.
Wenn du den root-Weg gehst, gibt es glaube ich addon.d
mit dem FU Magisk persistent machen kannst. Ansonsten Updates nur über sideload und Magisk hinterher, ist nervig.
Glaube die beste Alternative ist Pihole im privaten Netzwerk und unterwegs dann eine der VPN-basierten Apps immer wenn du eine Online-Zwang app öffnest, Browser sollte ja über Ublock safe sein..
Sir, I will make sure to never bother you with a PR and my terrible, terrible code ;)
I am for moving the community. It's a question of time anything breaks and the instance is gone. However I really like the name [email protected] and don't think a harrypotter@ community reflects its nature of being a meme community.
Most important thing is to not move to a large instance like lemmy.world, Lemmy is centralized enough.
Ich nutze RethinkDNS ausgiebig, hab aber leider 2 Probleme: Die app schaltet sich trotz uneingeschränkter Akku-Nutzung häufig von selbst aus. Noch schlimmer: Manchmal verliert sie die Internetverbindung, ohne sich zu informieren. Dann muss ich erst in die app gehen, sehe "Kein Internet", stoppen sie und starte sie nach ein paar Stunden erneut und hoffe es geht wieder... Diese VPN DNS-Blocker sind geil aber super umständlich.
This is what I would come up with:
try:
if len(foo) == 0:
...
except TypeError:
...
There is no need to add a None
check, as foo
being None
should be considered as a faulty input. Avoiding the possibility of foo
being None
from the beginning using static checks or testing is of course the preferred solution. But in reality we do not work in such optimal environments, at least I can say that from the perspective of data science, where often procedural, untested code is produced that runs only a few times. But I get your point and I think both paths are viable, but I am also okay with being in the wrong here,
I am not saying it's better, just that I don't like the proposed way :) I would argue that being "pythonic" has even less value than the Zen, which I quoted because it's true, not because it is some strict rule (which it isn't anyway).
You could argue I also need to write that extra code for the if not
case, as I explicitly have to check if it is None
if my program somewhere further down expects only lists.
Hunting for those sweet milliseconds is a popular game in the Python community ;) if this mechanism is that important for your program, you should definitely use it, I would do as well!
But None
has no len
if not foo:
-> foo could be an empty list or None
, it is ambiguous.
len(foo)
will lead to an exception TypeError
if foo
is None
, I can cleanly catch that.
It suggests I deal with a boolean when that is not the case. Explicit is better than implicit, and if not foo
to check for an empty list may be pythonic, but it's still implicit af
Haben Sie wirklich gedacht diese Geschichte wäre so passiert? Dann muss ich Sie leider enttäuschen. Hier haben sich unsere Autoren einen Streich mit Ihnen erlaubt.
Just use a bagpack smh