Re:“Ask 'why' five times about every matter”
by ajuc on Monday May 09, 2016 @05:25AM
(#11658475)
It's supposed to be
not
[ Parent
| on HN ]
Careful, enough why()'s and you invariably get nil. This is a pointer your employer probably doesn't want you to follow.
I usually get "Because BIG BANG".
But good point - you want the why function to write the intermediate answers somewhere as a side effect.
Re:“Ask 'why' five times about every matter”
by mrspeaker on Monday May 09, 2016 @09:38AM
(#11659719)
I'd be interested to know why(Because BIG BANG)
Re:“Ask 'why' five times about every matter”
by johnchristopher on Monday May 09, 2016 @06:18AM
(#11658673)
Do not ask `Why?` Be cautious with `How?` `Why?` leads inexorably to paradox.
Re:“Ask 'why' five times about every matter”
by zappo2938 on Monday May 09, 2016 @05:39AM
(#11658537)
When I'm interviewing for a job at VW and they ask this question, I can deflect with my curry skills.
compiler error at line 1. unmatched parenthesis.
... oh don't worry it's a loosely bracketed language.
Re:“Ask 'why' five times about every matter”
by marcosdumay on Monday May 09, 2016 @05:09PM
(#11663228)
That's one of the best points of Haskell:
why . why . why . why . why $ theMatter
Actually that is point-free
Re:“Ask 'why' five times about every matter”
by TazeTSchnitzel on Monday May 09, 2016 @05:54AM
(#11658598)
In a stack language:
theMatter why why why why whyI think its more like:
Answer Why(Answer question) {
if(validDivisibleQuestion(question){
return Why(question);
}
}
I guess this is how our mind handles stuff too, and because of the stack issues is why working things on papers works better than doing it in mind.Well, that's possible. But sometimes also the whys are mutually recursive.
"Why is X unelectable? Because realistically no one will vote for him. And why will no one vote for him? Because he is unelectable"
I think the worst case scenario is an answer that forms a question, which lead to the answer framing the very question.
Infinite recursion. Basically.
You could keep the second form but use a ditto operator instead;
why(theMatter);
why(%);
why(%);
why(%);
why(%);A bug that I will blame on unclear requirements.
Re:“Ask 'why' five times about every matter”
by christogreeff on Monday May 09, 2016 @05:54AM
(#11658597)
Why?