5 ms·
What the fuck does “Not functional enough” mean
As part of the interview process, I was asked to solve toy robot problem. Bitbucket repo url https://mkeshav@bitbucket.org/mkeshav/toy-robot.git.
Feedback received was,
1. It is not functional enough (functional refers to functional programming)
2. There should have been more unit tests
Can FP experts of interwebz review my code and tell me, why my solution is not functional enough?
My opinion is, it is either functional or not. Don't tell me, because it is not lazy. I do have free monad based implementation of this toy. I use it to teach FP concepts to other developers.
I would say it is over engineering in this context and hence did not submit it.
As far as unit test goes, coverage is 100%. I feel the reviewer is probably from a
dynamic language background and does not appreciate the real use of compiler.
I really want to know, am I missing something or the reviewer is an idiot?
Thanks in advance
- Ice_cream_suit 9y agoWhile I am no expert in robotics or in functional programming, at a quick glance your code seems rather imperative. You are probably already familiar with this but see https://github.com/fpinscala/fpinscala https://github.com/fpinscala/fpinscala for some examples of functional programming in Scala. Functionality like ugliness, is in the eye of the beholder, particularly when dealing with multi-paradigm languages like Scala. But certain idioms are expected...