Usually it takes some days or weeks until you have curated your community subscriptions. Even more so on Lenny as it’s pretty small yet.
Usually it takes some days or weeks until you have curated your community subscriptions. Even more so on Lenny as it’s pretty small yet.
I love Dark! It’s pretty slow at start but it get’s pretty exciting. Also it is 3 seasons and then finished, which is rare for a show.
But maybe you have heard about herumstreunern? I feel like the border is much more fuzzy than in English.
OP is German. The direct translation of stray is Streuner in German. A Streuner is not necessarily a pet without owner here, but can also mean “a pet wandering around alone”. So this is likely lost in translation ;)
ARE YOU SERIOUS?
I guess people with actual micropenisses will feel great about this
I may get downvoted, but as a German I need to say this comic is way over the top. As long as people aren’t getting gassed and need to work till death in concentration camps because of their race, calm a bit down.
He literally doesn’t care about his reputation. I asked him once why he became boss, and he said “at one point you may notice your boss is shitty at his job so you need to do it on your own”. Also he is an ex programmer doing project management, which is very refreshing compared to ex project manager who are doing project management.
You’re doing great and I’m glad you exist
There are two kind of buyers, this smart guy:
and grandpa, who bought it for his grandson billy:
Sir, I will make sure to never bother you with a PR and my terrible, terrible code ;)
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
I don’t like it very much, my variable could also be None
here
Absolutely agree. I just use it for some simple stuff like “every nth row in a pandas dataframe slice a string from x to y if column z is True” or something like that. These logics take time to write, and GPT usually comes up with a right solution or one that doesn’t need a lot of modification.
But debugging or analyzing an error? No thanks
I think there was a bot 1 year ago, but it went home. I guess it’s not to easy to write a bot that watches the whole lemmyverse… but yeah we should get it back at one point.
ls -la
, strictly.