iknowitwheniseeit

joined 2 years ago

Reading this made me wonder if I was having a stroke, because it seems like English but I don't recognize so many of the words. ๐Ÿ‘ด

[โ€“] iknowitwheniseeit@lemmynsfw.com 2 points 8 months ago (1 children)

Why did you mention them not being US citizens then? ๐Ÿค”

[โ€“] iknowitwheniseeit@lemmynsfw.com 8 points 8 months ago (3 children)

Could be Canadian, eh?

[โ€“] iknowitwheniseeit@lemmynsfw.com 3 points 8 months ago (3 children)

My own reading of that amendment is that it puts requirements on the US government, period. It does not limit things to US citizens.

Of course, I know that's not the way the courts interpret the amendment. ๐Ÿ˜”

World War 1 was so traumatic for Europe because the terrible weapons of mass destruction that they had been using to dominate the rest of the world were suddenly being used on them.

I think this is probably similar for people in the US who are not in a minority now, along the lines you describe.

[โ€“] iknowitwheniseeit@lemmynsfw.com 6 points 8 months ago (3 children)

Can you give some examples? Do you mean the Supreme Court legalizing gay marriage in 2015? The #metoo movement in 2017? Black Lives Matter protests in 2020?

What do you think has gone too far?

[โ€“] iknowitwheniseeit@lemmynsfw.com 2 points 8 months ago (1 children)

You can be both?

[โ€“] iknowitwheniseeit@lemmynsfw.com 2 points 8 months ago (4 children)

My point is that if your variable can be None then you need the same pattern for the length check.

So for the Pythonic version:

if (foo is not None) and not foo:
   ...

For the explicit length check:

if (foo is not None) and (len(foo) == 0):
  ...

Honestly you're probably better off using type hints and catching such things with static checks and not adding the None check.

[โ€“] iknowitwheniseeit@lemmynsfw.com 3 points 8 months ago (11 children)

You'd need to explicitly check for None if using the len() construct as well, so this doesn't change the point of the article.

[โ€“] iknowitwheniseeit@lemmynsfw.com 3 points 8 months ago (1 children)

My ad blocker has blocked all pictures on this article, so I can't say. ๐Ÿ˜„

Thailand has had a weird strictness around the king for a long time now.

We've had a similar ban in the Netherlands for a year or two now. Mobile phones were already not allowed in classes. Kids seem to have survived.

view more: โ€น prev next โ€บ