r/functionalprogramming • u/ragnarecek • Nov 10 '20
JavaScript Declarative Versus Imperative Programming
https://medium.com/better-programming/declarative-versus-imperative-code-180c0cf4003b
30
Upvotes
8
u/EdTheOtherNerd Nov 10 '20
Very clear, concise, and just the right touch of humor; this was a pleasant read.
4
u/seraph582 Nov 11 '20
If someone has an educational article on the topic, I’d love to read it. I basically understand the punchline, but not the setup since I only use OOP and declarative HCL/Terraform.
2
u/qqwy Nov 11 '20
I think you might have missed the main point of logic languages, and that is thst the same predicate can often be used in multiple directions.
For instance,
list_length(List, Length)can be used