725 karma · joined Jan 12, 2012 (14y ago) · 264 submissions
comment 2mo ago · link · parent
So if Canada tries to make friends with anyone other than the US, it's a hostile act?
Makes it all the more obvious that USA is Canada's abusive partner, that they should have broken up with a long time ago.
comment 3mo ago · link · parent
Other than the current tariff narrative, it's fairly standard CIA play when we look at what they did to Latin America already.
comment 2y ago · link · parent
comment 4y ago · link · parent
There is justification for it for sure (see https://github.com/osmandapp/OsmAnd/issues?q=is%3Aissue+slow... for a few), and I love OSM out of principle, but as a product, it will remain my last resort until the user experience is tolerable.
comment 4y ago · link · parent
1. There is no citation on the sentence, "Recent evidence has found that no level of alcohol consumption is safe for health." This is really the only line we are interested in.
2. There is no comparison on the effects of alcohol on the body by dosage (and frequency), which is, again, what is required from the brief to make that claim.
Again, while I don't necessarily disagree with what's in the report, and that it is already established that drinking too much is not good for the heart, considering many otherwise toxic substances have a hormetic zone, it is critical that a study like this rules out the its existence for ethanol.
comment 4y ago · link · parent
I use "Find Usages" on foo to see where it is used. Once you see where it is used, you know what the types can be. It's not great, but it's also something that can be progressively remedied.
In the event that the function is not as trivial as your example suggests, the author should have written a docstring to help you understand what it is trying to do, in addition to type annotations that will make it more readable.
In this example, bar can either be a function, a class, or any object with __call__(), so the type information is less important in this case, than actual docstrings that express intent.
comment 4y ago · link · parent
There should be one-- and preferably only one --obvious way to do it.
the author used two different ways of hyphenating (three, if you count the whole PEP 20). PEP 20 is clearly not meant to be taken as law. Nor PEP 8. Nor PEP 257.People frequently mistake "one obvious way" with "one way". There are lots of ways to iterate through something, for example, but there is really one obvious way. And the philosophy here still applies: when you read anyone else's python code, the obvious way is probably doing the obvious thing. I think that is the more appropriate takeaway from PEP 20.
comment 4y ago · link · parent
The stimulating nature of extremism makes it really hard for a new platform to be pro-"sensible free speech".
comment 5y ago · link · parent
comment 5y ago · link · parent
This "low profile blue switch" uses a click bar, so the click you hear does not correspond to the actuation point exactly---which I am a bit bummed about---but I hear the majority of low profile clicky switches currently have the same implementation/issue.
comment 6y ago · link · parent
* The error code C2006 assumes there is a clear divide between "smaller" and "larger" strings. What is smaller, and what is larger? Is 1000 large? Is 5000 large? Is 1000000 large? If I want my comment to be capped at 5000 characters to encourage healthy discussions but prevent spamming, is it large?
* If a field has no "known format" and that's where it draws the line between CharField and TextField, then why is the error C2006 still raised when TextField(max_length=5000) is used? Why does the validator recommend allowing anyone to insert entries of unlimited size?