Talk:Evaluate binomial coefficients: Difference between revisions

Functional code does require more concepts. In lieu of angry deletion, I suggest that you ask for clarification.
(Functional code does require more concepts. In lieu of angry deletion, I suggest that you ask for clarification.)
Line 30:
: It reads like some other languages code, poorly translated into run-able but not idiomatic Python.
: I suggest you improve your code generation Hout. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 15:42, 21 February 2019 (UTC)
:: The quality of code is a function of what it is optimised for. Mine is optimised for reliability, high levels of code reuse, and speed of writing. Perhaps there is a context for which yours is well optimised (more for the parade ground than for the real battle-ground is my impression) but it would not work well in mine (not least because it appears to yield the wrong result with slightly surprising frequency. Perhaps you feel that its (occasionally chimeral) adherence to a cherished style is adequate compensation for this uncertain reliability ?).
:: More constructively, the terms which you mutter during your deletion frenzies ('obfuscated', 'convoluted') may well express a structuring difference between imperative and functional modes of coding. Writing imperative code has the advantage of requiring very few concepts (sequence, branching, mutation and looping), which give it a usefully low entry barrier.
Functional coding has much less need of sequence, and even less of mutation or looping, but it does require a number of other concepts – significantly more than are needed to practise the imperative mode. The higher conceptual entry barrier of functional method has been shown to yield faster coding and lower bug counts, but can of course be a source of confusion and perhaps even irritation to those who haven't needed or wanted to cross it.
:: Can I suggest that the next time you find something puzzling or unfamiliar (Applicative functors ? Currying ? Monads ?) that in lieu of angry deletion, you experiment instead with eliciting clarity ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 16:06, 21 February 2019 (UTC)
9,659

edits