4 ms·
"He wrote them like math formulas, and didn't understand that they got executed in order." So he had a talent for functional programming, then?
by SNvD7vEJ 11y ago
"He wrote them like math formulas, and didn't understand that they got executed in order."
So he had a talent for functional programming, then?
- JoeAltmaier 11y agoCute, but not quite. Those are still executed in some order. Not like algebra which is a set of expressions that are all true over all time.
- halflings 11y agoThen declarative programming, maybe? You don't care as much about execution order when doing declarative programming like Prolog. (unless you're writing code "procedural-style")
- JoeAltmaier 11y agoThat's it! He could have found a niche there.
- geoelectric 11y agoGiven that I have a hell of a time wrapping my own (algorithmic-oriented) mind around that kind of programming, that's not necessarily a weakness. It is an interesting contrast in ability though.
- ta0967 11y agoThose are still executed in some order. in all languages? i don't think so. def x = y where y = a * b a = 21 b = x
- hk__2 11y agoin all non-declarative languages.
- cbd1984 11y agoFunctional means that sequence doesn't matter. Haskell is functional, Lisp largely isn't.
- nmrm 11y ago>Those are still executed in some order. Not really. E.g. there's no ordering in function composition that isn't also in high school math. Also, you shouldn't depend on e.g. maps processing elements in a given order. My impression is that statement ordering is easier for mediocre but competent programmers than it is for excellent programmers. The reason is that writing correct imperative code is non-trivial, but writing correct-y imperative code is pretty easy. So someone who's carefully thinking things through while learning will have a more difficult time with simple assignments, because -- at least while learning -- they're essentially trying to construct the correctness proof in their head. And that's pretty hard for imperative code.
- JoeAltmaier 11y agoConfused. Array iteration is sequential, and common in every functional language, right?
- cbd1984 11y agoFunctional means that sequence doesn't matter. Haskell is functional, Lisp largely isn't.
- deleted 11y ago[deleted]