logoalt Hacker News

fuzzzerdyesterday at 10:31 PM2 repliesview on HN

Are there people that would legitimately argue point 1?

If you are only looking at the call site, sure that could be confusing, but if you are looking at the definition as provided in your post, surely anyone that is able understand the concept of a function can see the problem?

I'm not arguing they don't exist, sure they do, but I'm confused as to how you came up with it as a litmus test? Is it that common?

Surely we can agree in a real scenario renaming it (or fixing implementation to match name) is likely appropriate, but to completely miss the error?

Hope this comes across as curiousity, because I am curious about this one from your list in particular.


Replies

650today at 1:55 AM

I've heard the parable, "If you didn't eat breakfast or lunch yesterday, how would you feel around 3pm?", a common response is apparently "but I did eat lunch and breakfast yesterday".

krackersyesterday at 10:59 PM

I think it's similar to the case of counterfactuals, hypotheticals, or steelmaning and how well you can handle them. ("Can you accept that there can be a function named multiplyBy5 that does something else instead").

But I think if someone already is comfortable with working with abstractions such as "function" the thing is trivial, so it's a bit of a weird litmus test.