4 ms·
> JavaScript: What they got right? It's functional. Really. It's really not, it's a language that encourages unrestricted mutable state which is very not funct
by freyrs3 13y ago
> JavaScript: What they got right? It's functional. Really.
It's really not, it's a language that encourages unrestricted mutable state which is very not functional.
- lambdasquirrel 13y agoIt's hard to agree or disagree with that. Javascript, by iyself, yes, you're right, but everyone codes with either coffeescript and/or underscore, so it's possible to do most of your work in a functional manner. jquery's selectors can be used in a fairly declarative manner when you do have to manipulate existing DOM elements, so in practice, it's not that bad.