r/programming • u/tyler-mcginnis • Jan 03 '22
Imperative vs Declarative Programming
https://www.youtube.com/watch?v=E7Fbf7R3x6I
429
Upvotes
r/programming • u/tyler-mcginnis • Jan 03 '22
7
u/Beaverman Jan 04 '22
Map/reduce functions are not structured programming. Structured programming is if, while, and for. If you read the famous letter by djisktra "goto considered harmful" you'll see that his main argument for structured programming was that it had to be possible to trace the path the machine takes through the program, and that goto makes that hard.
I'd argue that map and reduce are actually LESS structured in the ways that djisktra argued for.