juan_gandhi: (VP)
2014-06-09 02:15 pm

what I think about functional programming

Functional is a mapping from functions to scalar values. So, e.g. integrals, sums, products etc are functionals.

Functional programming probably just means that we have to write functionals and apply them to functions. That's what map/reduce does, for instance.

That's all, folks.
ottaka
juan_gandhi: (VP)
2014-05-04 11:41 am

the essence of non-functional programming...

... is passing parameters via "common variables", imitating "environment", which they are on most occasions not.

This is unavoidable if you have functions 100 lines long; you have those variables keeping this and that... then you split the code, but you have to keep those "shared variables", so there.

They are just parameters, you know. If you think of them this way, your architecture becomes clean and clear.