6 ms·
I had a gig once where my predecessor was a Haskell guy and had written Haskell-in-Javascript :( The comments were things like "this is a simple functor that pr
by StavrosK 10y ago
I had a gig once where my predecessor was a Haskell guy and had written Haskell-in-Javascript :( The comments were things like "this is a simple functor that produces a monad that, when curried to a function, will return a lambda that will do what we need".
Needless to say, I wrote zero lines of code during those two weeks, and the company shut down shortly after that.
- thatcat 10y agoSo even if js is capable of being written with the structure of a functional language, doing so renders it incomprehensible to other js programmers?
- StavrosK 10y agoEh, most languages are capable of being written functionally, but bringing a completely different language's idioms in results in unmaintainable code. At the very least they needed to hire a Haskell dev, not a JS dev, even if the language itself was JS.
- dozzie 10y agoA sign of a good programmer is that he can write in Fortran in any language at hand.