(for) k, v in dic.items()
which is just
k, v = (<key>, <value>) for every key value pair in the dictionary
595 karma · joined May 10, 2018
(for) k, v in dic.items()
which is just
k, v = (<key>, <value>) for every key value pair in the dictionary
How could that be improved? That's 3-4 LOC minimum in any other language
My main grip is python's ternary operators, since the True value is evaluated before the condition, if you are doing ternaries on things that might throw exceptions the False value has to come first
value = 0 if key not in dic else dic[key] * 5
rather than (throws indexerror if key isn't in dic)
value = dic[key] * 5 if key in dic else 0
The two most impactful of these loops are the Arctic sea ice reflectivity loss (less ice -> less incoming light reflected back into space -> more heat captured by earth -> less ice) and the Siberian arctic shelf methane loop, arguably the most devestating one because we already know it caused Earth's worst extinction[0], and it is beginning to happen again[1].
It will be refreshing to see if the scientific community's consensus on how silent to be about the severity of the climate crisis will change as the facts of how rapidly the feedback loops are progressing essentially implicate near-term (10-20 years) civilisational collapse.
More info from the World Research Institute on climate feedback loops:
https://www.wri.org/blog/2018/08/why-positive-climate-feedba...
[0]: https://www.independent.co.uk/environment/earth-permian-mass...
[1]: https://www.economist.com/science-and-technology/2018/04/28/...
Part of why SciHub has succeeded is just how easy it is. Copy/pasting an arbitrary DOI from any source will always beat most journals arcane login systems (especially on mobile) and their divine mission of obscuring "Download PDF" buttons.
[0] https://themoscowtimes.com/articles/russia-to-reap-benefits-...
That's a really small demographic who would fit both criteria. Recently unemployed people and students come to mind.
Importantly - Uber knows this fact very well and are doing everything they can to survive until fully autonomous self driving cars reach mass production.
[0] https://www.chicagotribune.com/business/ct-biz-uber-driver-w...
Youtube competes with Netflix the same way your shower length preference competes with Netflix. The disconcerting (if not narcissistic) elephant in the room being that service providers are viewing any activities that cause you to spend time away from their service as "competition" at all.
Sure I can trawl through your post history to try to better understand through what lens you see the world, but I don't have the time to do that for every single comment that I read on HN/Reddit.
I was dissuaded from installing it because I assume the products quality would reflect how little the founders seem to understand people in thinking that it's necessary to accurately detail what a poor start to the day would look like.
The video should be a simple gif demonstrating how an email with a negative tone is detected and turned into a positive tone. People are smart enough to figure out how that could be useful.
Everything you mentioned after this were mechanisms, however inefficient or poorly documented, that support your functioning day-to-day and are practically irrelevant for supporting your argument that you don't have a subjective first person experience. If you explained those mechanisms and "documented" them then all you would be doing is explaining one way your consciousness is fed data whilst still leaving the original question on the table.
At the heart of what constitutes you as an "I" is someone who can experience eating chocolate or taking a warm shower. There is a you that feels what it is like to do these activities.
Source: Me.
Ultimately it exposes the underlying machinery of your own consciousness in a way that you've never experienced before.
How you'll react to that sort of exposure is anyone's best guess. Tread really, really carefully with psychedelics. They are not to be taken lightly in the same way that weed or alcohol can be.
That being said, when in the right environment, it can be a fantastic, eye-opening experience.
Seems like bad usability.
see the python requests library documentation for a good example