35 karma · joined January 28, 2019
FYI: I guess there is a minor typo in the README example: the argument of the second call to fib() in the non-coros version of the code should be "n-2" and not "n-1".
(paraphrasing the famous car industry’s slogan "There is no replacement for displacement")
Love the walking cat gif http://vcfmw.org/friends.html
“Dear Earth,
it came to my attention that you are running a website called “marssucks.com” where you state some not so nice things about me. While I think that I understand why you are doing this it still hurts me to read that e.g. I am so terrible that “Matt Damon ate his own feces just to leave me”.
So I kindly ask you to take down the “marssucks.com” site. For a planet as rich and lush as you there should be other ways then making derogatory remarks about me to convince your inhabitants to treat you in a good way.
Love from your brother Mars”
That one made me laugh, however, I wondered if an AI would consider this question as a bit too personal for a pickup line.
[1] https://nacto.org/docs/usdg/relationship_between_speed_risk_...
I completely agree. I just wondered if there has been done any research where programmers are presented with some code they've never seen before and then the time is measured until they have understood the code (e.g. can correctly answer some test questions regarding the function of the code). In such a scenario one could try to find a "best" style guide, i.e. a style guide where most programmers understand new code the quickest. Have you ever heard of such research?
Over the past years I've seen many programmers struggle with the combination of "data aggregation" and NULL. In the beginning I thought that these programmers should just "RTFM", but as this problem occurs so often it might very well be that the practical implementation of aggregation and NULL is "a bit off".
I like your "set" approach a lot, however, we still have "sum({1, 1, {}})" unequal to "1+1+{}" and "sum({}) = 0" which, while consistent, I think are somewhat counterintuitive and I am pretty sure will lead to misunderstanding.
Having said that, I suspect that any decent and consistent approach to this problem is subject to a very reduced form of John Lydgate's famous quote, that is "You can only please some of the programmers some of the time".
Many thanks for your time and this interesting and insightful conversation.
So, I still think that the definition "sum({}) = 0" has more potential to hide errors than the definition "sum({}) = {}" would have.
This would not happen if "sum({a, b})" was defined as "{a} + {b}" (which is what a user would intuitively assume). However, this definition is also not very practical as any one occurence of {} in the sum would render the whole thing to {} (which is not what a user would expect).
I guess the handling of "{}" will always stay a bit tricky.