Hacker Newsnew | past | comments | ask | show | jobs | submit | hiichbindermax's commentslogin

Nitpick about 9.3 Short Circuit Evaluation: both things evaluate differently if you have empty strings. The if-else clause treats empty strings as valid while the or operator will treat them equivalent with None.


Similarly with 9.2, assignment using a walrus operator will also fail if the value is 0 (or anything falsy: https://docs.python.org/3/library/stdtypes.html#truth-value-...)


You can use `if (response := get_user_input()) is not None` if that's important. IME, empty strings and None would be treated the same way.


I love this kind of puzzle! How long does it take you to make one?



You can get these with the composition keys. Shift+AltGr = ˇ and then hit the letter to compose them


I use the version from the github page. They are updated much faster. So when I realized something broke there is usually already a fixed version up on github.


And the GitHub version warn when there is a new version


You could try out Rectangle [1]. Other alternatives would be magnet (paid) or veeer (free).

[1]: https://github.com/rxhanson/Rectangle


Delete your cookies for medium. Then you should be able to read it. Or don't allow cookies for medium in the first place.


Delete your cookies for medium. Or even better, don't allow the website to set any and you should be able to read most content there. Otherwise a private session could also help?


Disabling Javascript is a very easy way to deal with Medium. uBlock Origin is your friend.

I call this "progressive degradation" (have a perfect baseline, and degrade it with more advanced technology). [1,2,3]

[1] https://news.ycombinator.com/item?id=20898947

[2] https://news.ycombinator.com/item?id=23874802

[3] https://news.ycombinator.com/item?id=23108022


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: